]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/app.h
Added wxFopen to the MSLU code.
[wxWidgets.git] / include / wx / gtk1 / 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"
c801d85f
KB
19
20//-----------------------------------------------------------------------------
21// classes
22//-----------------------------------------------------------------------------
23
24class wxApp;
25class wxLog;
26
c801d85f
KB
27//-----------------------------------------------------------------------------
28// wxApp
29//-----------------------------------------------------------------------------
30
094637f6 31class wxApp: public wxAppBase
c801d85f 32{
094637f6 33public:
bbe0af5b 34 wxApp();
a6f5aa49 35 virtual ~wxApp();
a3622daa 36
094637f6
VZ
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(). */
bbe0af5b 41 virtual bool OnInitGui();
094637f6
VZ
42
43 // override base class (pure) virtuals
8461e4c2 44 virtual bool Yield(bool onlyIfNeeded = FALSE);
e2478fde 45 virtual void WakeUpIdle();
53010e52 46
05e2b077 47 virtual bool Initialize(int& argc, wxChar **argv);
94826170 48 virtual void CleanUp();
a3622daa 49
94826170 50 static bool InitialzeVisual();
a3622daa 51
a5f1fd3e 52#ifdef __WXDEBUG__
be88a6ad 53 virtual void OnAssert(const wxChar *file, int line, const wxChar *cond, const wxChar *msg);
a5f1fd3e
VZ
54
55 bool IsInAssert() const { return m_isInAssert; }
56#endif // __WXDEBUG__
094637f6 57
f6fcbb63 58 gint m_idleTag;
fe593cc5
VS
59 void RemoveIdleTag();
60
f6fcbb63 61 unsigned char *m_colorCube;
a3622daa 62
005f5d18 63 // Used by the the wxGLApp and wxGLCanvas class for GL-based X visual
a6f5aa49
VZ
64 // selection; this is actually an XVisualInfo*
65 void *m_glVisualInfo;
005f5d18
RR
66 // This returns the current visual: either that used by wxRootWindow
67 // or the XVisualInfo* for SGI.
68 GdkVisual *GetGdkVisual();
be88a6ad 69
094637f6 70private:
a5f1fd3e
VZ
71 // true if we're inside an assert modal dialog
72#ifdef __WXDEBUG__
73 bool m_isInAssert;
74#endif // __WXDEBUG__
094637f6 75
8636aed8 76 DECLARE_DYNAMIC_CLASS(wxApp)
094637f6 77 DECLARE_EVENT_TABLE()
c801d85f
KB
78};
79
80#endif // __GTKAPPH__