2 /// \file EvoDefaultDlg.cc
3 /// Successful defaults detected dialog
4 /// The configuration dialog used to configure Evolution sources
8 Copyright (C) 2011-2013, 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>
30 BEGIN_EVENT_TABLE(EvoDefaultDlg
, wxDialog
)
31 EVT_BUTTON (Dialog_EvoDefault_ManualConfigButton
,
32 EvoDefaultDlg::OnManualButton
)
35 EvoDefaultDlg::EvoDefaultDlg(wxWindow
*parent
)
36 : wxDialog(parent
, Dialog_EvoDefault
, _W("Evolution Success"))
41 void EvoDefaultDlg::CreateLayout()
43 wxSizer
*topsizer
= new wxBoxSizer(wxVERTICAL
);
45 wxBoxSizer
*msgsizer
= new wxBoxSizer(wxHORIZONTAL
);
47 // I'd love to add a portable, system ICON_INFORMATION here,
48 // but I don't know how in wxWidgets :-( Please send me a patch.
49 //msgsizer->Add( someicon );
52 new wxStaticText(this, wxID_ANY
, _W("Successfully auto-detected Evolution configuration!")),
53 0, wxALIGN_LEFT
| wxTOP
| wxLEFT
| wxRIGHT
, 10);
55 topsizer
->Add(msgsizer
, 0, 0, 0);
56 topsizer
->Add( new wxStaticLine(this),
57 0, wxTOP
| wxLEFT
| wxRIGHT
| wxEXPAND
, 10);
59 wxBoxSizer
*buttons
= new wxBoxSizer(wxHORIZONTAL
);
60 buttons
->Add( new wxButton(this, Dialog_EvoDefault_ManualConfigButton
,
62 0, wxALIGN_LEFT
| wxEXPAND
, 0);
63 buttons
->AddStretchSpacer(1);
65 wxButton
*ok
= new wxButton(this, wxID_OK
, _T("Ok"));
67 buttons
->Add( ok
, 0, wxALIGN_RIGHT
| wxEXPAND
, 0);
69 topsizer
->Add(buttons
, 0, wxALL
| wxEXPAND
| wxALIGN_RIGHT
, 10);
72 topsizer
->SetSizeHints(this);
76 void EvoDefaultDlg::OnManualButton(wxCommandEvent
&event
)
78 EndModal(Dialog_EvoDefault_ManualConfigButton
);