00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #if defined(__GNUG__) && !defined(__APPLE__)
00020 #pragma implementation "about_dialog.h"
00021 #endif
00022
00023
00024 #include "wx/wxprec.h"
00025
00026 #ifdef __BORLANDC__
00027 #pragma hdrstop
00028 #endif
00029
00030 #ifndef WX_PRECOMP
00031 #include "wx/wx.h"
00032 #endif
00033
00036
00037 #include "about_dialog.h"
00038
00040
00042
00047 IMPLEMENT_DYNAMIC_CLASS( AboutDialog, wxDialog )
00048
00049
00053 BEGIN_EVENT_TABLE( AboutDialog, wxDialog )
00054
00057
00058 END_EVENT_TABLE()
00059
00064 AboutDialog::AboutDialog( )
00065 {
00066 }
00067
00068 AboutDialog::AboutDialog( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
00069 {
00070 Create(parent, id, caption, pos, size, style);
00071 }
00072
00077 bool AboutDialog::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
00078 {
00081
00083 SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS);
00084 wxDialog::Create( parent, id, caption, pos, size, style );
00085
00086 CreateControls();
00087 GetSizer()->Fit(this);
00088 GetSizer()->SetSizeHints(this);
00089 Centre();
00091 return TRUE;
00092 }
00093
00098 void AboutDialog::CreateControls()
00099 {
00101 AboutDialog* itemDialog1 = this;
00102
00103 wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL);
00104 itemDialog1->SetSizer(itemBoxSizer2);
00105
00106 wxBoxSizer* itemBoxSizer3 = new wxBoxSizer(wxHORIZONTAL);
00107 itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
00108
00109 wxStaticText* itemStaticText4 = new wxStaticText( itemDialog1, wxID_STATIC, wxT( "In alphabetical order:" ), wxDefaultPosition, wxDefaultSize, 0 );
00110 itemBoxSizer3->Add(itemStaticText4, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxADJUST_MINSIZE, 5);
00111
00112 wxBoxSizer* itemBoxSizer5 = new wxBoxSizer(wxHORIZONTAL);
00113 itemBoxSizer2->Add(itemBoxSizer5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
00114
00115 wxStaticText* itemStaticText6 = new wxStaticText( itemDialog1, wxID_STATIC, wxT( "Current lead developer: Cora' Massimo <maxcvs@gmail.com>" ), wxDefaultPosition, wxDefaultSize, 0 );
00116 itemBoxSizer5->Add(itemStaticText6, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxADJUST_MINSIZE, 5);
00117
00118 wxBoxSizer* itemBoxSizer7 = new wxBoxSizer(wxHORIZONTAL);
00119 itemBoxSizer2->Add(itemBoxSizer7, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
00120
00121 wxStaticText* itemStaticText8 = new wxStaticText( itemDialog1, wxID_STATIC, wxT( "Past developer: Zecchini Fabio <zio.zec@gmail.com>" ), wxDefaultPosition, wxDefaultSize, 0 );
00122 itemBoxSizer7->Add(itemStaticText8, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxADJUST_MINSIZE, 5);
00123
00125 }
00126
00131 bool AboutDialog::ShowToolTips()
00132 {
00133 return TRUE;
00134 }
00135
00140 wxBitmap AboutDialog::GetBitmapResource( const wxString& name )
00141 {
00142
00144 return wxNullBitmap;
00146 }
00147
00152 wxIcon AboutDialog::GetIconResource( const wxString& name )
00153 {
00154
00156 return wxNullIcon;
00158 }