- DECLARE_DYNAMIC_CLASS(wxApp)
- wxApp(void);
- inline ~wxApp(void) {}
-
- static void SetInitializerFunction(wxAppInitializerFunction fn) { m_appInitFn = fn; }
- static wxAppInitializerFunction GetInitializerFunction(void) { return m_appInitFn; }
-
- virtual int MainLoop(void);
- void ExitMainLoop(void);
- bool Initialized(void);
- virtual bool Pending(void) ;
- virtual void Dispatch(void) ;
-
- virtual void OnIdle(wxIdleEvent& event);
-
-// Generic
- virtual bool OnInit(void) { return FALSE; };
-
- // No specific tasks to do here.
- virtual bool OnInitGui(void) { return TRUE; }
-
- // Called to set off the main loop
- virtual int OnRun(void) { return MainLoop(); };
- virtual int OnExit(void) { return 0; };
- inline void SetPrintMode(int mode) { m_printMode = mode; }
- inline int GetPrintMode(void) const { return m_printMode; }
-
- inline void SetExitOnFrameDelete(bool flag) { m_exitOnFrameDelete = flag; }
- inline bool GetExitOnFrameDelete(void) const { return m_exitOnFrameDelete; }
-
-/*
- inline void SetShowFrameOnInit(bool flag) { m_showOnInit = flag; }
- inline bool GetShowFrameOnInit(void) const { return m_showOnInit; }
-*/
-
- inline wxString GetAppName(void) const {
- if (m_appName != "")
- return m_appName;
- else return m_className;
- }