lib: added implicit ctor converter from DatabaseDatabase to DBListType
[barry/progweb.git] / desktop / src / EvoDefaultDlg.cc
blob975b1423c9a768d7d1a61fdf8e3054256aff041f
1 ///
2 /// \file EvoDefaultDlg.cc
3 /// Successful defaults detected dialog
4 /// The configuration dialog used to configure Evolution sources
5 ///
7 /*
8 Copyright (C) 2011-2012, Net Direct Inc. (http://www.netdirect.ca/)
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 See the GNU General Public License in the COPYING file at the
20 root directory of this project for more details.
23 #include "EvoDefaultDlg.h"
24 #include "windowids.h"
25 #include <wx/statline.h>
27 using namespace std;
29 BEGIN_EVENT_TABLE(EvoDefaultDlg, wxDialog)
30 EVT_BUTTON (Dialog_EvoDefault_ManualConfigButton,
31 EvoDefaultDlg::OnManualButton)
32 END_EVENT_TABLE()
34 EvoDefaultDlg::EvoDefaultDlg(wxWindow *parent)
35 : wxDialog(parent, Dialog_EvoDefault, _T("Evolution Success"))
37 CreateLayout();
40 void EvoDefaultDlg::CreateLayout()
42 wxSizer *topsizer = new wxBoxSizer(wxVERTICAL);
44 wxBoxSizer *msgsizer = new wxBoxSizer(wxHORIZONTAL);
46 // I'd love to add a portable, system ICON_INFORMATION here,
47 // but I don't know how in wxWidgets :-( Please send me a patch.
48 //msgsizer->Add( someicon );
50 msgsizer->Add(
51 new wxStaticText(this, wxID_ANY, _T("Successfully auto-detected Evolution configuration!")),
52 0, wxALIGN_LEFT | wxTOP | wxLEFT | wxRIGHT, 10);
54 topsizer->Add(msgsizer, 0, 0, 0);
55 topsizer->Add( new wxStaticLine(this),
56 0, wxTOP | wxLEFT | wxRIGHT | wxEXPAND, 10);
58 wxBoxSizer *buttons = new wxBoxSizer(wxHORIZONTAL);
59 buttons->Add( new wxButton(this, Dialog_EvoDefault_ManualConfigButton,
60 _T("Manual Cfg...")),
61 0, wxALIGN_LEFT | wxEXPAND, 0);
62 buttons->AddStretchSpacer(1);
64 wxButton *ok = new wxButton(this, wxID_OK, _T("Ok"));
65 ok->SetDefault();
66 buttons->Add( ok, 0, wxALIGN_RIGHT | wxEXPAND, 0);
68 topsizer->Add(buttons, 0, wxALL | wxEXPAND | wxALIGN_RIGHT, 10);
70 SetSizer(topsizer);
71 topsizer->SetSizeHints(this);
72 topsizer->Layout();
75 void EvoDefaultDlg::OnManualButton(wxCommandEvent &event)
77 EndModal(Dialog_EvoDefault_ManualConfigButton);