]>
Commit | Line | Data |
---|---|---|
32b8ec41 VZ |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: app.h | |
3 | // Purpose: | |
4 | // Author: Vaclav Slavik | |
5 | // Id: $Id$ | |
8f7b34a8 | 6 | // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) |
32b8ec41 VZ |
7 | // Licence: wxWindows licence |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | #ifndef __WX_APP_H__ | |
11 | #define __WX_APP_H__ | |
12 | ||
13 | #ifdef __GNUG__ | |
14 | #pragma interface "app.h" | |
15 | #endif | |
16 | ||
17 | #include "wx/frame.h" | |
18 | #include "wx/icon.h" | |
19 | ||
20 | //----------------------------------------------------------------------------- | |
21 | // classes | |
22 | //----------------------------------------------------------------------------- | |
23 | ||
7bdc1879 VS |
24 | class WXDLLEXPORT wxApp; |
25 | class WXDLLEXPORT wxLog; | |
32b8ec41 VZ |
26 | |
27 | //----------------------------------------------------------------------------- | |
28 | // wxApp | |
29 | //----------------------------------------------------------------------------- | |
30 | ||
31 | class WXDLLEXPORT wxApp: public wxAppBase | |
32 | { | |
33 | public: | |
7bdc1879 VS |
34 | wxApp(); |
35 | ~wxApp(); | |
32b8ec41 VZ |
36 | |
37 | /* override for altering the way wxGTK intializes the GUI | |
38 | * (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by | |
39 | * default. when overriding this method, the code in it is likely to be | |
40 | * platform dependent, otherwise use OnInit(). */ | |
7bdc1879 | 41 | virtual bool OnInitGui(); |
32b8ec41 VZ |
42 | |
43 | // override base class (pure) virtuals | |
7bdc1879 VS |
44 | virtual int MainLoop(); |
45 | virtual void ExitMainLoop(); | |
46 | virtual bool Initialized(); | |
47 | virtual bool Pending(); | |
48 | virtual void Dispatch(); | |
32b8ec41 | 49 | |
7bdc1879 | 50 | virtual wxIcon GetStdIcon(int which) const; |
32b8ec41 VZ |
51 | |
52 | // implementation only from now on | |
7bdc1879 VS |
53 | void OnIdle(wxIdleEvent &event); |
54 | bool SendIdleEvents(); | |
55 | bool SendIdleEvents(wxWindow* win); | |
32b8ec41 | 56 | |
7bdc1879 VS |
57 | static bool Initialize(); |
58 | static void CleanUp(); | |
32b8ec41 | 59 | |
7bdc1879 VS |
60 | bool ProcessIdle(); |
61 | void DeletePendingObjects(); | |
32b8ec41 VZ |
62 | |
63 | private: | |
64 | DECLARE_DYNAMIC_CLASS(wxApp) | |
65 | DECLARE_EVENT_TABLE() | |
66 | }; | |
67 | ||
7bdc1879 | 68 | int WXDLLEXPORT wxEntry(int argc, char *argv[]); |
32b8ec41 VZ |
69 | |
70 | #endif // __WX_APP_H__ |