1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2001 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
;
27 class WXDLLEXPORT wxDesktopWindow
;
29 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
33 class WXDLLEXPORT wxApp
: public wxAppBase
39 /* override for altering the way wxGTK intializes the GUI
40 * (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by
41 * default. when overriding this method, the code in it is likely to be
42 * platform dependent, otherwise use OnInit(). */
43 virtual bool OnInitGui();
45 // override base class (pure) virtuals
46 virtual int MainLoop();
47 virtual void ExitMainLoop();
48 virtual bool Initialized();
49 virtual bool Pending();
50 virtual void Dispatch();
52 virtual wxIcon
GetStdIcon(int which
) const;
54 // implementation only from now on
55 void OnIdle(wxIdleEvent
&event
);
56 bool SendIdleEvents();
57 bool SendIdleEvents(wxWindow
* win
);
59 static bool Initialize();
60 static void CleanUp();
63 void DeletePendingObjects();
65 virtual bool Yield(bool onlyIfNeeded
= FALSE
);
68 DECLARE_DYNAMIC_CLASS(wxApp
)
71 wxEventLoop
*m_mainLoop
;
74 int WXDLLEXPORT
wxEntry(int argc
, char *argv
[]);
76 #endif // __WX_APP_H__