Develop and Download Open Source Software

Browse CVS Repository

Diff of /malonnote/main.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3 by maloninc, Sun Jul 31 02:40:05 2005 UTC revision 1.4 by maloninc, Thu Sep 29 04:15:30 2005 UTC
# Line 3  Line 3 
3  #include <wx/wx.h>  #include <wx/wx.h>
4  #include <wx/image.h>  #include <wx/image.h>
5  #include <wx/snglinst.h>  #include <wx/snglinst.h>
6    #include <wx/xrc/xmlres.h>
7  #include "mnDef.h"  #include "mnDef.h"
8  #include "mnFrame.h"  #include "mnFrame.h"
9  #include "mnController.h"  #include "mnController.h"
10    
11    extern void InitXmlResource(); // defined in mnResource.cpp generated by wxrc
12    
13  class mnApp: public wxApp {  class mnApp: public wxApp {
14  public:  public:
# Line 24  IMPLEMENT_APP(mnApp) Line 26  IMPLEMENT_APP(mnApp)
26    
27  bool mnApp::OnInit()  bool mnApp::OnInit()
28  {  {
29            
30          const wxString appName = wxString::Format(wxT(MN_APP_NAME) wxT("-%s"), wxGetUserId().c_str());          const wxString appName = wxString::Format(wxT(MN_APP_NAME) wxT("-%s"), wxGetUserId().c_str());
31    
32      m_checker = new wxSingleInstanceChecker(appName);      m_checker = new wxSingleInstanceChecker(appName);
# Line 35  bool mnApp::OnInit() Line 37  bool mnApp::OnInit()
37      }      }
38    
39      wxInitAllImageHandlers();      wxInitAllImageHandlers();
40      mainFrame = new mnFrame(0, -1, wxT(""));          wxXmlResource::Get()->InitAllHandlers();
41            InitXmlResource();
42    
43        mainFrame = new mnFrame(0);
44    
45          /* set controller object as event handler */          /* set controller object as event handler */
46          mnController* controller = new mnController(mainFrame);          mnController* controller = new mnController(mainFrame);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26