omnimeeting.cpp

Go to the documentation of this file.
00001 /*
00002  *  Copyright (C) Massimo Cora' 2005 <maxcvs@email.it>
00003  *  Copyright (C) Fabio Zecchini 2005 <zio.zec@gmail.com>
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00018  */
00019 
00020 #if defined(__GNUG__) && !defined(__APPLE__)
00021 #pragma implementation "omnimeeting.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 "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     // Remove the comment markers above and below this block
00086     // to make permanent changes to the code.
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 

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