caenscope.cpp

Go to the documentation of this file.
00001 
00002 // Name:        caenscope.cpp
00003 // Purpose:     
00004 // Author:      NDA
00005 // Modified by: 
00006 // Created:     04/03/06 13:09:06
00007 // RCS-ID:      
00008 // Copyright:   CAEN S.p.A All rights reserved.
00009 // Licence:     
00011 
00012 #if defined(__GNUG__) && !defined(__APPLE__)
00013 #pragma implementation "caenscope.h"
00014 #endif
00015 
00016 // For compilers that support precompilation, includes "wx/wx.h".
00017 #include "wx/wxprec.h"
00018 
00019 #ifdef __BORLANDC__
00020 #pragma hdrstop
00021 #endif
00022 
00023 #ifndef WX_PRECOMP
00024 #include "wx/wx.h"
00025 #endif
00026 
00029 
00030 #include "caenscope.h"
00031 
00034 
00039 
00040 IMPLEMENT_APP( CAENScopeApp )
00042 
00047 IMPLEMENT_CLASS( CAENScopeApp, wxApp )
00048 
00053 BEGIN_EVENT_TABLE( CAENScopeApp, wxApp )
00054 
00057 
00058 END_EVENT_TABLE()
00059 
00064 CAENScopeApp::CAENScopeApp()
00065 {
00068 }
00069 
00074 bool CAENScopeApp::OnInit()
00075 {    
00077     // Remove the comment markers above and below this block
00078     // to make permanent changes to the code.
00079 
00080 #if wxUSE_XPM
00081     wxImage::AddHandler(new wxXPMHandler);
00082 #endif
00083 #if wxUSE_LIBPNG
00084     wxImage::AddHandler(new wxPNGHandler);
00085 #endif
00086 #if wxUSE_LIBJPEG
00087     wxImage::AddHandler(new wxJPEGHandler);
00088 #endif
00089 #if wxUSE_GIF
00090     wxImage::AddHandler(new wxGIFHandler);
00091 #endif
00092     MainFrame* mainWindow = new MainFrame( NULL, ID_MAIN_FRAME );
00093     mainWindow->Show(true);
00095 
00096     return true;
00097 }
00098 
00102 int CAENScopeApp::OnExit()
00103 {    
00105     return wxApp::OnExit();
00107 }
00108 

Generated on Mon Mar 19 17:14:07 2007 for CAENScope by  doxygen 1.4.6-NO