00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #if defined(__GNUG__) && !defined(__APPLE__)
00021 #pragma implementation "version_dialog.h"
00022 #endif
00023
00024
00025 #include "wx/wxprec.h"
00026
00027 #ifdef __BORLANDC__
00028 #pragma hdrstop
00029 #endif
00030
00031 #ifndef WX_PRECOMP
00032 #include "wx/wx.h"
00033 #endif
00034
00037
00038 #include "version_dialog.h"
00039
00040 #define OMNIMEETING_VERSION "Omnimeeting version 0.3"
00041
00044
00049 IMPLEMENT_DYNAMIC_CLASS( VersionDialog, wxDialog )
00050
00051
00055 BEGIN_EVENT_TABLE( VersionDialog, wxDialog )
00056
00059
00060 END_EVENT_TABLE()
00061
00066 VersionDialog::VersionDialog( )
00067 {
00068 }
00069
00070 VersionDialog::VersionDialog( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
00071 {
00072 Create(parent, id, caption, pos, size, style);
00073 }
00074
00079 bool VersionDialog::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
00080 {
00083
00085 SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS);
00086 wxDialog::Create( parent, id, caption, pos, size, style );
00087
00088 CreateControls();
00089 GetSizer()->Fit(this);
00090 GetSizer()->SetSizeHints(this);
00091 Centre();
00093 return TRUE;
00094 }
00095
00100 void VersionDialog::CreateControls()
00101 {
00103 VersionDialog* itemDialog1 = this;
00104
00105 wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL);
00106 itemDialog1->SetSizer(itemBoxSizer2);
00107
00108 wxBoxSizer* itemBoxSizer3 = new wxBoxSizer(wxHORIZONTAL);
00109 itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
00110
00111 wxStaticText* itemStaticText4 = new wxStaticText( itemDialog1, wxID_STATIC, _("Omnimeeting version 0.1"), wxDefaultPosition, wxDefaultSize, 0 );
00112 itemBoxSizer3->Add(itemStaticText4, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxADJUST_MINSIZE, 5);
00113
00114 wxBoxSizer* itemBoxSizer5 = new wxBoxSizer(wxHORIZONTAL);
00115 itemBoxSizer2->Add(itemBoxSizer5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
00116
00117 wxStaticText* itemStaticText6 = new wxStaticText( itemDialog1, wxID_STATIC, _("http://www.sourceforge.net/projects/omnimeeting"), wxDefaultPosition, wxDefaultSize, 0 );
00118 itemBoxSizer5->Add(itemStaticText6, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxADJUST_MINSIZE, 5);
00119
00121 }
00122
00127 bool VersionDialog::ShowToolTips()
00128 {
00129 return TRUE;
00130 }
00131
00136 wxBitmap VersionDialog::GetBitmapResource( const wxString& name )
00137 {
00138
00140 return wxNullBitmap;
00142 }
00143
00148 wxIcon VersionDialog::GetIconResource( const wxString& name )
00149 {
00150
00152 return wxNullIcon;
00154 }