]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/app.h
removed wxApp::Initialized() (replaced with a dummy version in wxApp itself); wxApp...
[wxWidgets.git] / include / wx / gtk / app.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/app.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling, Julian Smart
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef __GTKAPPH__
11 #define __GTKAPPH__
12
13 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
14 #pragma interface
15 #endif
16
17 #include "wx/frame.h"
18 #include "wx/icon.h"
19
20 //-----------------------------------------------------------------------------
21 // classes
22 //-----------------------------------------------------------------------------
23
24 class wxApp;
25 class wxLog;
26
27 //-----------------------------------------------------------------------------
28 // wxApp
29 //-----------------------------------------------------------------------------
30
31 class wxApp: public wxAppBase
32 {
33 public:
34 wxApp();
35 virtual ~wxApp();
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(). */
41 virtual bool OnInitGui();
42
43 // override base class (pure) virtuals
44 virtual bool Initialized();
45
46 virtual bool Yield(bool onlyIfNeeded = FALSE);
47 virtual void WakeUpIdle();
48
49 virtual bool Initialize(int& argc, wxChar **argv);
50 virtual void CleanUp();
51
52 static bool InitialzeVisual();
53
54 #ifdef __WXDEBUG__
55 virtual void OnAssert(const wxChar *file, int line, const wxChar *cond, const wxChar *msg);
56
57 bool IsInAssert() const { return m_isInAssert; }
58 #endif // __WXDEBUG__
59
60 gint m_idleTag;
61 #if wxUSE_THREADS
62 gint m_wakeUpTimerTag;
63 #endif
64 unsigned char *m_colorCube;
65
66 // Used by the the wxGLApp and wxGLCanvas class for GL-based X visual
67 // selection; this is actually an XVisualInfo*
68 void *m_glVisualInfo;
69 // This returns the current visual: either that used by wxRootWindow
70 // or the XVisualInfo* for SGI.
71 GdkVisual *GetGdkVisual();
72
73 private:
74 // true if we're inside an assert modal dialog
75 #ifdef __WXDEBUG__
76 bool m_isInAssert;
77 #endif // __WXDEBUG__
78
79 DECLARE_DYNAMIC_CLASS(wxApp)
80 DECLARE_EVENT_TABLE()
81 };
82
83 #endif // __GTKAPPH__