about_dialog.cpp

Go to the documentation of this file.
00001 /*
00002  *  Copyright (C) Massimo Cora' 2005 <maxcvs@email.it>
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018 
00019 #if defined(__GNUG__) && !defined(__APPLE__)
00020 #pragma implementation "about_dialog.h"
00021 #endif
00022 
00023 // For compilers that support precompilation, includes "wx/wx.h".
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     // Bitmap retrieval
00144     return wxNullBitmap;
00146 }
00147 
00152 wxIcon AboutDialog::GetIconResource( const wxString& name )
00153 {
00154     // Icon retrieval
00156     return wxNullIcon;
00158 }

Generated on Tue Dec 26 10:32:38 2006 for Omnimeeting by  doxygen 1.4.7