]> git.saurik.com Git - wxWidgets.git/blame - src/gtk1/data.cpp
implemented menu drawing in the GTK theme
[wxWidgets.git] / src / gtk1 / data.cpp
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: data.cpp
3// Purpose:
4// Author: Robert Roebling
dbf858b5
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
a3622daa 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
c801d85f
KB
10#ifdef __GNUG__
11// #pragma implementation
12#endif
13
bcf1fa6b
RR
14#include "wx/defs.h"
15#include "wx/object.h"
16#include "wx/window.h"
17#include "wx/dc.h"
3d2d8da1
RR
18
19#if wxUSE_ACCEL
bcf1fa6b 20#include "wx/accel.h"
3d2d8da1
RR
21#endif
22
bf38cbff 23#include "wx/dcps.h"
88ac883a 24#include "wx/icon.h"
c801d85f
KB
25
26#define _MAXPATHLEN 500
27
83624f79 28/* Windows List */
e146b8c8 29wxWindowList wxTopLevelWindows;
c801d85f 30
83624f79 31/* List of windows pending deletion */
c801d85f
KB
32wxList wxPendingDelete;
33
83624f79
RR
34/* Current cursor, in order to hang on to
35 * cursor handle when setting the cursor globally */
238d735d 36wxCursor g_globalCursor;
c801d85f 37
83624f79 38/* Don't allow event propagation during drag */
c801d85f
KB
39bool g_blockEventsOnDrag = FALSE;
40
83624f79 41/* Don't allow mouse event propagation during scroll */
76ed8f8d
RR
42bool g_blockEventsOnScroll = FALSE;
43
2d68e1b4
RR
44/* Don't allow window closing if there are open dialogs */
45int g_openDialogs = 0;
46
acfd422a
RR
47/* TRUE when the message queue is empty. this gets set to
48 FALSE by all event callbacks before anything else is done */
49bool g_isIdle = FALSE;
50
83624f79 51/* Message Strings for Internationalization */
c801d85f
KB
52char **wx_msg_str = (char**)NULL;
53
83624f79 54/* For printing several pages */
c801d85f 55int wxPageNumber;
2a47d3c1
JS
56
57// Now in prntbase.cpp
58// wxPrintPaperDatabase* wxThePrintPaperDatabase = (wxPrintPaperDatabase *) NULL;
c801d85f 59
83624f79 60/* GDI Object Lists */
c67daf87
UR
61wxBrushList *wxTheBrushList = (wxBrushList *) NULL;
62wxPenList *wxThePenList = (wxPenList *) NULL;
63wxFontList *wxTheFontList = (wxFontList *) NULL;
64wxColourDatabase *wxTheColourDatabase = (wxColourDatabase *) NULL;
83624f79 65wxBitmapList *wxTheBitmapList = (wxBitmapList *) NULL;
e146b8c8 66
83624f79 67/* X only font names */
36b3b54a 68/*
a3622daa 69wxFontNameDirectory *wxTheFontNameDirectory;
36b3b54a 70*/
c801d85f 71
83624f79 72/* Stock objects */
c801d85f
KB
73wxFont *wxNORMAL_FONT;
74wxFont *wxSMALL_FONT;
75wxFont *wxITALIC_FONT;
76wxFont *wxSWISS_FONT;
77
78wxPen *wxRED_PEN;
79wxPen *wxCYAN_PEN;
80wxPen *wxGREEN_PEN;
81wxPen *wxBLACK_PEN;
82wxPen *wxWHITE_PEN;
83wxPen *wxTRANSPARENT_PEN;
84wxPen *wxBLACK_DASHED_PEN;
85wxPen *wxGREY_PEN;
86wxPen *wxMEDIUM_GREY_PEN;
87wxPen *wxLIGHT_GREY_PEN;
88
89wxBrush *wxBLUE_BRUSH;
90wxBrush *wxGREEN_BRUSH;
91wxBrush *wxWHITE_BRUSH;
92wxBrush *wxBLACK_BRUSH;
93wxBrush *wxTRANSPARENT_BRUSH;
94wxBrush *wxCYAN_BRUSH;
95wxBrush *wxRED_BRUSH;
96wxBrush *wxGREY_BRUSH;
97wxBrush *wxMEDIUM_GREY_BRUSH;
98wxBrush *wxLIGHT_GREY_BRUSH;
99
100wxColour *wxBLACK;
101wxColour *wxWHITE;
e146b8c8 102wxColour *wxGREY;
c801d85f
KB
103wxColour *wxRED;
104wxColour *wxBLUE;
105wxColour *wxGREEN;
106wxColour *wxCYAN;
107wxColour *wxLIGHT_GREY;
108
c67daf87
UR
109wxCursor *wxSTANDARD_CURSOR = (wxCursor *) NULL;
110wxCursor *wxHOURGLASS_CURSOR = (wxCursor *) NULL;
111wxCursor *wxCROSS_CURSOR = (wxCursor *) NULL;
c801d85f 112
83624f79 113/* 'Null' objects */
88ac883a
VZ
114#if wxUSE_ACCEL
115 wxAcceleratorTable wxNullAcceleratorTable;
116#endif // wxUSE_ACCEL
117
bcf1fa6b 118wxBitmap wxNullBitmap;
e146b8c8 119wxIcon wxNullIcon;
bcf1fa6b
RR
120wxCursor wxNullCursor;
121wxPen wxNullPen;
122wxBrush wxNullBrush;
123wxFont wxNullFont;
124wxColour wxNullColour;
e146b8c8 125wxPalette wxNullPalette;
c801d85f 126
83624f79 127/* Default window names */
8d772832 128const wxChar *wxControlNameStr = wxT("control");
223d09f6
KB
129const wxChar *wxButtonNameStr = wxT("button");
130const wxChar *wxCanvasNameStr = wxT("canvas");
131const wxChar *wxCheckBoxNameStr = wxT("check");
132const wxChar *wxChoiceNameStr = wxT("choice");
133const wxChar *wxComboBoxNameStr = wxT("comboBox");
134const wxChar *wxDialogNameStr = wxT("dialog");
135const wxChar *wxFrameNameStr = wxT("frame");
136const wxChar *wxGaugeNameStr = wxT("gauge");
137const wxChar *wxStaticBoxNameStr = wxT("groupBox");
138const wxChar *wxListBoxNameStr = wxT("listBox");
139const wxChar *wxStaticTextNameStr = wxT("message");
140const wxChar *wxStaticBitmapNameStr = wxT("message");
141const wxChar *wxMultiTextNameStr = wxT("multitext");
142const wxChar *wxPanelNameStr = wxT("panel");
143const wxChar *wxRadioBoxNameStr = wxT("radioBox");
144const wxChar *wxRadioButtonNameStr = wxT("radioButton");
145const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton");
146const wxChar *wxScrollBarNameStr = wxT("scrollBar");
147const wxChar *wxSliderNameStr = wxT("slider");
148const wxChar *wxStaticNameStr = wxT("static");
149const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow");
150const wxChar *wxTextCtrlNameStr = wxT("text");
151const wxChar *wxVirtListBoxNameStr = wxT("virtListBox");
152const wxChar *wxButtonBarNameStr = wxT("buttonbar");
153const wxChar *wxEnhDialogNameStr = wxT("Shell");
154const wxChar *wxToolBarNameStr = wxT("toolbar");
155const wxChar *wxStatusLineNameStr = wxT("status_line");
156const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text");
157const wxChar *wxMessageBoxCaptionStr = wxT("Message");
158const wxChar *wxFileSelectorPromptStr = wxT("Select a file");
159const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*");
223d09f6
KB
160const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl");
161const wxChar *wxDirDialogDefaultFolderStr = wxT("/");
9ec64fa7 162const wxChar *wxTreeCtrlNameStr = wxT("wxTreeCtrl");
c801d85f 163
83624f79 164/* See wx/utils.h */
223d09f6
KB
165const wxChar *wxFloatToStringStr = wxT("%.2f");
166const wxChar *wxDoubleToStringStr = wxT("%.2f");
c801d85f 167
83624f79 168/* Dafaults for wxWindow etc. */
c801d85f
KB
169const wxSize wxDefaultSize(-1, -1);
170const wxPoint wxDefaultPosition(-1, -1);