12DIALOG_ABOUT_BASE::DIALOG_ABOUT_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) : wxDialog( parent, id, title, pos, size, style )
14 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
16 wxBoxSizer* bSizerMain;
17 bSizerMain =
new wxBoxSizer( wxVERTICAL );
19 wxBoxSizer* bSizerTitle;
20 bSizerTitle =
new wxBoxSizer( wxHORIZONTAL );
23 bSizerTitle->Add( 0, 0, 1, wxEXPAND, 5 );
25 m_bitmapApp =
new wxStaticBitmap(
this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
26 bSizerTitle->Add(
m_bitmapApp, 1, wxALIGN_CENTER|wxALL, 5 );
28 wxBoxSizer* b_apptitleSizer;
29 b_apptitleSizer =
new wxBoxSizer( wxVERTICAL );
31 m_staticTextAppTitle =
new wxStaticText(
this, wxID_ANY,
_(
"App Title"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL );
33 m_staticTextAppTitle->SetFont( wxFont( 14, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD,
false, wxEmptyString ) );
37 m_staticTextCopyright =
new wxStaticText(
this, wxID_ANY,
_(
"Copyright Info"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL );
41 m_staticTextBuildVersion =
new wxStaticText(
this, wxID_ANY,
_(
"Build Version Info"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL );
45 m_staticTextLibVersion =
new wxStaticText(
this, wxID_ANY,
_(
"Lib Version Info"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL );
50 bSizerTitle->Add( b_apptitleSizer, 10, wxALL|wxEXPAND, 5 );
53 bSizer5 =
new wxBoxSizer( wxVERTICAL );
56 bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
58 m_btCopyVersionInfo =
new wxButton(
this, wxID_COPY,
_(
"&Copy Version Info"), wxDefaultPosition, wxDefaultSize, 0 );
63 m_btReportBug =
new wxButton(
this, wxID_COPY,
_(
"&Report Bug"), wxDefaultPosition, wxDefaultSize, 0 );
68 m_btDonate =
new wxButton(
this, wxID_COPY,
_(
"Donate"), wxDefaultPosition, wxDefaultSize, 0 );
71 bSizer5->Add(
m_btDonate, 0, wxALL|wxEXPAND, 5 );
74 bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
77 bSizerTitle->Add( bSizer5, 0, wxEXPAND, 10 );
80 bSizerTitle->Add( 0, 0, 1, wxEXPAND, 5 );
83 bSizerMain->Add( bSizerTitle, 0, wxEXPAND, 5 );
85 m_notebook =
new wxNotebook(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
89 bSizerMain->Add(
m_notebook, 2, wxEXPAND | wxALL, 5 );
91 wxBoxSizer* bSizerButtons;
92 bSizerButtons =
new wxBoxSizer( wxHORIZONTAL );
94 m_btOk =
new wxButton(
this, wxID_OK,
_(
"&OK"), wxDefaultPosition, wxDefaultSize, 0 );
97 bSizerButtons->Add(
m_btOk, 0, wxALL, 5 );
100 bSizerMain->Add( bSizerButtons, 0, wxALIGN_RIGHT|wxRIGHT|wxLEFT, 5 );
103 this->SetSizer( bSizerMain );
virtual void onDonateClick(wxCommandEvent &event)
wxStaticText * m_staticTextBuildVersion
wxStaticBitmap * m_bitmapApp
wxStaticText * m_staticTextCopyright
virtual void onCopyVersionInfo(wxCommandEvent &event)
DIALOG_ABOUT_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("About"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(570, 500), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStaticText * m_staticTextLibVersion
wxButton * m_btCopyVersionInfo
wxStaticText * m_staticTextAppTitle
virtual void onReportBug(wxCommandEvent &event)
virtual void OnNotebookPageChanged(wxNotebookEvent &event)