-// 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;
- }
-
- inline void SetAppName(const wxString& name) { m_appName = name; };
- inline wxString GetClassName(void) const { return m_className; }
- inline void SetClassName(const wxString& name) { m_className = name; }
- wxWindow *GetTopWindow(void) const ;
- inline void SetTopWindow(wxWindow *win) { m_topWindow = win; }
-
- inline void SetWantDebugOutput(bool flag) { m_wantDebugOutput = flag; }
- inline bool GetWantDebugOutput(void) { return m_wantDebugOutput; }
-
- // Send idle event to all top-level windows.
- // Returns TRUE if more idle time is requested.
- bool SendIdleEvents(void);
-
- // Send idle event to window and all subwindows
- // Returns TRUE if more idle time is requested.
- bool SendIdleEvents(wxWindow* win);
-
- inline void SetAuto3D(const bool flag) { m_auto3D = flag; }
- inline bool GetAuto3D(void) const { return m_auto3D; }
-
- // Creates a log object
- virtual wxLog* CreateLogTarget();
-
-#if USE_WXCONFIG
- // override this function to create a global wxConfig object of different
- // than default type (right now the default implementation returns NULL)
- virtual wxConfig* CreateConfig() { return NULL; }
-#endif //USE_WXCONFIG