]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/app.h
Applied patch [ 1166587 ] [wxMSW] Removes all flicker from wxStaticBox
[wxWidgets.git] / include / wx / gtk / app.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
8461e4c2 2// Name: wx/gtk/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
12028905 13#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
c801d85f
KB
14#pragma interface
15#endif
16
c801d85f 17#include "wx/frame.h"
ebea0891 18#include "wx/icon.h"
66bf0099 19#include "wx/strconv.h"
c801d85f
KB
20
21//-----------------------------------------------------------------------------
22// classes
23//-----------------------------------------------------------------------------
24
25class wxApp;
26class wxLog;
27
c801d85f
KB
28//-----------------------------------------------------------------------------
29// wxApp
30//-----------------------------------------------------------------------------
31
094637f6 32class wxApp: public wxAppBase
c801d85f 33{
094637f6 34public:
bbe0af5b 35 wxApp();
a6f5aa49 36 virtual ~wxApp();
a3622daa 37
094637f6
VZ
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(). */
bbe0af5b 42 virtual bool OnInitGui();
094637f6
VZ
43
44 // override base class (pure) virtuals
8461e4c2 45 virtual bool Yield(bool onlyIfNeeded = FALSE);
e2478fde 46 virtual void WakeUpIdle();
53010e52 47
05e2b077 48 virtual bool Initialize(int& argc, wxChar **argv);
94826170 49 virtual void CleanUp();
a3622daa 50
94826170 51 static bool InitialzeVisual();
a3622daa 52
a5f1fd3e 53#ifdef __WXDEBUG__
be88a6ad 54 virtual void OnAssert(const wxChar *file, int line, const wxChar *cond, const wxChar *msg);
a5f1fd3e
VZ
55
56 bool IsInAssert() const { return m_isInAssert; }
57#endif // __WXDEBUG__
094637f6 58
f6fcbb63 59 gint m_idleTag;
fe593cc5
VS
60 void RemoveIdleTag();
61
f6fcbb63 62 unsigned char *m_colorCube;
a3622daa 63
005f5d18 64 // Used by the the wxGLApp and wxGLCanvas class for GL-based X visual
34a34b02
VZ
65 // selection.
66 void *m_glVisualInfo; // this is actually an XVisualInfo*
67 void *m_glFBCInfo; // this is actually an GLXFBConfig*
005f5d18
RR
68 // This returns the current visual: either that used by wxRootWindow
69 // or the XVisualInfo* for SGI.
70 GdkVisual *GetGdkVisual();
66bf0099
RR
71
72#ifdef __WXGTK20__
73 wxConvBrokenFileNames *m_convBrokenFileNames;
74 wxMBConv *m_oldConvFileName;
75#endif
be88a6ad 76
094637f6 77private:
a5f1fd3e
VZ
78 // true if we're inside an assert modal dialog
79#ifdef __WXDEBUG__
80 bool m_isInAssert;
81#endif // __WXDEBUG__
094637f6 82
8636aed8 83 DECLARE_DYNAMIC_CLASS(wxApp)
094637f6 84 DECLARE_EVENT_TABLE()
c801d85f
KB
85};
86
87#endif // __GTKAPPH__