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 "omnimeeting.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 "omnimeeting.h"
00039
00042
00047
00048 IMPLEMENT_APP( OmnimeetingApp )
00050
00055 IMPLEMENT_CLASS( OmnimeetingApp, wxApp )
00056
00061 BEGIN_EVENT_TABLE( OmnimeetingApp, wxApp )
00062
00065
00066 END_EVENT_TABLE()
00067
00072 OmnimeetingApp::OmnimeetingApp()
00073 {
00076 }
00077
00082 bool OmnimeetingApp::OnInit()
00083 {
00085
00086
00087
00088 #if wxUSE_XPM
00089 wxImage::AddHandler( new wxXPMHandler );
00090 #endif
00091 #if wxUSE_LIBPNG
00092 wxImage::AddHandler( new wxPNGHandler );
00093 #endif
00094 #if wxUSE_LIBJPEG
00095 wxImage::AddHandler( new wxJPEGHandler );
00096 #endif
00097 #if wxUSE_GIF
00098 wxImage::AddHandler( new wxGIFHandler );
00099 #endif
00100 MainFrame* mainWindow = new MainFrame( NULL, ID_MAIN_FRAME );
00101 mainWindow->Show(true);
00103
00104 SetTopWindow( mainWindow );
00105
00106 return true;
00107 }
00108
00112 int OmnimeetingApp::OnExit()
00113 {
00115 return wxApp::OnExit();
00117 }
00118