version_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 
00020 #if defined(__GNUG__) && !defined(__APPLE__)
00021 #pragma implementation "version_dialog.h"
00022 #endif
00023 
00024 // For compilers that support precompilation, includes "wx/wx.h".
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     // Bitmap retrieval
00140     return wxNullBitmap;
00142 }
00143 
00148 wxIcon VersionDialog::GetIconResource( const wxString& name )
00149 {
00150     // Icon retrieval
00152     return wxNullIcon;
00154 }

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