1 ///////////////////////////////////////////////////////////////////////////// 
   4 // Author:      Vaclav Slavik 
   6 // Copyright:   (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com) 
   7 // Licence:     wxWindows licence 
   8 ///////////////////////////////////////////////////////////////////////////// 
  14 #pragma interface "app.h" 
  20 //----------------------------------------------------------------------------- 
  22 //----------------------------------------------------------------------------- 
  24 class WXDLLEXPORT wxApp
; 
  25 class WXDLLEXPORT wxLog
; 
  26 class WXDLLEXPORT wxEventLoop
; 
  28 //----------------------------------------------------------------------------- 
  30 //----------------------------------------------------------------------------- 
  32 class WXDLLEXPORT wxApp
: public wxAppBase
 
  38     /* override for altering the way wxGTK intializes the GUI 
  39      * (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by 
  40      * default. when overriding this method, the code in it is likely to be 
  41      * platform dependent, otherwise use OnInit(). */ 
  42     virtual bool OnInitGui(); 
  44     // override base class (pure) virtuals 
  45     virtual int MainLoop(); 
  46     virtual void ExitMainLoop(); 
  47     virtual bool Initialized(); 
  48     virtual bool Pending(); 
  49     virtual void Dispatch(); 
  51     virtual bool Initialize(int& argc
, wxChar 
**argv
); 
  52     virtual void CleanUp(); 
  54     virtual bool Yield(bool onlyIfNeeded 
= FALSE
); 
  56     virtual wxDisplayModeInfo 
GetDisplayMode() const { return m_displayMode
; } 
  57     virtual bool SetDisplayMode(const wxDisplayModeInfo
& mode
); 
  60     DECLARE_DYNAMIC_CLASS(wxApp
) 
  63     wxEventLoop 
*m_mainLoop
; 
  64     wxDisplayModeInfo m_displayMode
; 
  67 #endif // __WX_APP_H__