2 /// \file EvoDefaultDlg.cc
3 /// Successful defaults detected dialog
4 /// The configuration dialog used to configure Evolution sources
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>
29 BEGIN_EVENT_TABLE(EvoDefaultDlg
, wxDialog
)
30 EVT_BUTTON (Dialog_EvoDefault_ManualConfigButton
,
31 EvoDefaultDlg::OnManualButton
)
34 EvoDefaultDlg::EvoDefaultDlg(wxWindow
*parent
)
35 : wxDialog(parent
, Dialog_EvoDefault
, _T("Evolution Success"))
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 );
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
,
61 0, wxALIGN_LEFT
| wxEXPAND
, 0);
62 buttons
->AddStretchSpacer(1);
64 wxButton
*ok
= new wxButton(this, wxID_OK
, _T("Ok"));
66 buttons
->Add( ok
, 0, wxALIGN_RIGHT
| wxEXPAND
, 0);
68 topsizer
->Add(buttons
, 0, wxALL
| wxEXPAND
| wxALIGN_RIGHT
, 10);
71 topsizer
->SetSizeHints(this);
75 void EvoDefaultDlg::OnManualButton(wxCommandEvent
&event
)
77 EndModal(Dialog_EvoDefault_ManualConfigButton
);