]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | ///////////////////////////////////////////////////////////////////////////// |
8ef94bfc | 2 | // Name: wx/gtk1/app.h |
c801d85f KB |
3 | // Purpose: |
4 | // Author: Robert Roebling | |
dbf858b5 | 5 | // Id: $Id$ |
01111366 | 6 | // Copyright: (c) 1998 Robert Roebling, Julian Smart |
65571936 | 7 | // Licence: wxWindows licence |
c801d85f KB |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
10 | #ifndef __GTKAPPH__ | |
11 | #define __GTKAPPH__ | |
12 | ||
c801d85f | 13 | #include "wx/frame.h" |
ebea0891 | 14 | #include "wx/icon.h" |
66bf0099 | 15 | #include "wx/strconv.h" |
c801d85f KB |
16 | |
17 | //----------------------------------------------------------------------------- | |
18 | // classes | |
19 | //----------------------------------------------------------------------------- | |
20 | ||
b5dbe15d VS |
21 | class WXDLLIMPEXP_FWD_CORE wxApp; |
22 | class WXDLLIMPEXP_FWD_BASE wxLog; | |
c801d85f | 23 | |
c801d85f KB |
24 | //----------------------------------------------------------------------------- |
25 | // wxApp | |
26 | //----------------------------------------------------------------------------- | |
27 | ||
20123d49 | 28 | class WXDLLIMPEXP_CORE wxApp: public wxAppBase |
c801d85f | 29 | { |
094637f6 | 30 | public: |
bbe0af5b | 31 | wxApp(); |
a6f5aa49 | 32 | virtual ~wxApp(); |
a3622daa | 33 | |
094637f6 VZ |
34 | /* override for altering the way wxGTK intializes the GUI |
35 | * (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by | |
36 | * default. when overriding this method, the code in it is likely to be | |
37 | * platform dependent, otherwise use OnInit(). */ | |
bbe0af5b | 38 | virtual bool OnInitGui(); |
094637f6 VZ |
39 | |
40 | // override base class (pure) virtuals | |
e2478fde | 41 | virtual void WakeUpIdle(); |
53010e52 | 42 | |
05e2b077 | 43 | virtual bool Initialize(int& argc, wxChar **argv); |
94826170 | 44 | virtual void CleanUp(); |
a3622daa | 45 | |
94826170 | 46 | static bool InitialzeVisual(); |
a3622daa | 47 | |
a5f1fd3e | 48 | #ifdef __WXDEBUG__ |
be88a6ad | 49 | virtual void OnAssert(const wxChar *file, int line, const wxChar *cond, const wxChar *msg); |
a5f1fd3e VZ |
50 | |
51 | bool IsInAssert() const { return m_isInAssert; } | |
52 | #endif // __WXDEBUG__ | |
094637f6 | 53 | |
f6fcbb63 | 54 | gint m_idleTag; |
fe593cc5 | 55 | void RemoveIdleTag(); |
8ef94bfc | 56 | |
f6fcbb63 | 57 | unsigned char *m_colorCube; |
a3622daa | 58 | |
005f5d18 | 59 | // Used by the the wxGLApp and wxGLCanvas class for GL-based X visual |
34a34b02 VZ |
60 | // selection. |
61 | void *m_glVisualInfo; // this is actually an XVisualInfo* | |
62 | void *m_glFBCInfo; // this is actually an GLXFBConfig* | |
005f5d18 RR |
63 | // This returns the current visual: either that used by wxRootWindow |
64 | // or the XVisualInfo* for SGI. | |
65 | GdkVisual *GetGdkVisual(); | |
8ef94bfc | 66 | |
094637f6 | 67 | private: |
a5f1fd3e VZ |
68 | // true if we're inside an assert modal dialog |
69 | #ifdef __WXDEBUG__ | |
70 | bool m_isInAssert; | |
71 | #endif // __WXDEBUG__ | |
094637f6 | 72 | |
8636aed8 | 73 | DECLARE_DYNAMIC_CLASS(wxApp) |
c801d85f KB |
74 | }; |
75 | ||
76 | #endif // __GTKAPPH__ |