]> git.saurik.com Git - wxWidgets.git/blame - src/gtk1/data.cpp
*** empty log message ***
[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/* Useful buffer, initialized in wxCommonInit */
7dd62924 29wxChar *wxBuffer = (wxChar *) NULL;
c801d85f 30
83624f79 31/* Windows List */
e146b8c8 32wxWindowList wxTopLevelWindows;
c801d85f 33
83624f79 34/* List of windows pending deletion */
c801d85f
KB
35wxList wxPendingDelete;
36
83624f79
RR
37/* Current cursor, in order to hang on to
38 * cursor handle when setting the cursor globally */
238d735d 39wxCursor g_globalCursor;
c801d85f 40
83624f79 41/* Don't allow event propagation during drag */
c801d85f
KB
42bool g_blockEventsOnDrag = FALSE;
43
83624f79 44/* Don't allow mouse event propagation during scroll */
76ed8f8d
RR
45bool g_blockEventsOnScroll = FALSE;
46
2d68e1b4
RR
47/* Don't allow window closing if there are open dialogs */
48int g_openDialogs = 0;
49
acfd422a
RR
50/* TRUE when the message queue is empty. this gets set to
51 FALSE by all event callbacks before anything else is done */
52bool g_isIdle = FALSE;
53
83624f79 54/* Message Strings for Internationalization */
c801d85f
KB
55char **wx_msg_str = (char**)NULL;
56
83624f79
RR
57/* Custom OS version, as optionally placed in wx.ini/.wxrc
58 * Currently this can be Win95, Windows, Win32s, WinNT.
59 * For some systems, you can't tell until run-time what services you
60 * have. See wxGetOsVersion, which uses this string if present. */
c67daf87 61char *wxOsVersion = (char *) NULL;
c801d85f 62
83624f79 63/* For printing several pages */
c801d85f 64int wxPageNumber;
2a47d3c1
JS
65
66// Now in prntbase.cpp
67// wxPrintPaperDatabase* wxThePrintPaperDatabase = (wxPrintPaperDatabase *) NULL;
c801d85f 68
83624f79 69/* GDI Object Lists */
c67daf87
UR
70wxBrushList *wxTheBrushList = (wxBrushList *) NULL;
71wxPenList *wxThePenList = (wxPenList *) NULL;
72wxFontList *wxTheFontList = (wxFontList *) NULL;
73wxColourDatabase *wxTheColourDatabase = (wxColourDatabase *) NULL;
83624f79 74wxBitmapList *wxTheBitmapList = (wxBitmapList *) NULL;
e146b8c8 75
83624f79 76/* X only font names */
36b3b54a 77/*
a3622daa 78wxFontNameDirectory *wxTheFontNameDirectory;
36b3b54a 79*/
c801d85f 80
83624f79 81/* Stock objects */
c801d85f
KB
82wxFont *wxNORMAL_FONT;
83wxFont *wxSMALL_FONT;
84wxFont *wxITALIC_FONT;
85wxFont *wxSWISS_FONT;
86
87wxPen *wxRED_PEN;
88wxPen *wxCYAN_PEN;
89wxPen *wxGREEN_PEN;
90wxPen *wxBLACK_PEN;
91wxPen *wxWHITE_PEN;
92wxPen *wxTRANSPARENT_PEN;
93wxPen *wxBLACK_DASHED_PEN;
94wxPen *wxGREY_PEN;
95wxPen *wxMEDIUM_GREY_PEN;
96wxPen *wxLIGHT_GREY_PEN;
97
98wxBrush *wxBLUE_BRUSH;
99wxBrush *wxGREEN_BRUSH;
100wxBrush *wxWHITE_BRUSH;
101wxBrush *wxBLACK_BRUSH;
102wxBrush *wxTRANSPARENT_BRUSH;
103wxBrush *wxCYAN_BRUSH;
104wxBrush *wxRED_BRUSH;
105wxBrush *wxGREY_BRUSH;
106wxBrush *wxMEDIUM_GREY_BRUSH;
107wxBrush *wxLIGHT_GREY_BRUSH;
108
109wxColour *wxBLACK;
110wxColour *wxWHITE;
e146b8c8 111wxColour *wxGREY;
c801d85f
KB
112wxColour *wxRED;
113wxColour *wxBLUE;
114wxColour *wxGREEN;
115wxColour *wxCYAN;
116wxColour *wxLIGHT_GREY;
117
c67daf87
UR
118wxCursor *wxSTANDARD_CURSOR = (wxCursor *) NULL;
119wxCursor *wxHOURGLASS_CURSOR = (wxCursor *) NULL;
120wxCursor *wxCROSS_CURSOR = (wxCursor *) NULL;
c801d85f 121
83624f79 122/* 'Null' objects */
88ac883a
VZ
123#if wxUSE_ACCEL
124 wxAcceleratorTable wxNullAcceleratorTable;
125#endif // wxUSE_ACCEL
126
bcf1fa6b 127wxBitmap wxNullBitmap;
e146b8c8 128wxIcon wxNullIcon;
bcf1fa6b
RR
129wxCursor wxNullCursor;
130wxPen wxNullPen;
131wxBrush wxNullBrush;
132wxFont wxNullFont;
133wxColour wxNullColour;
e146b8c8 134wxPalette wxNullPalette;
c801d85f 135
83624f79 136/* Default window names */
8d772832 137const wxChar *wxControlNameStr = wxT("control");
223d09f6
KB
138const wxChar *wxButtonNameStr = wxT("button");
139const wxChar *wxCanvasNameStr = wxT("canvas");
140const wxChar *wxCheckBoxNameStr = wxT("check");
141const wxChar *wxChoiceNameStr = wxT("choice");
142const wxChar *wxComboBoxNameStr = wxT("comboBox");
143const wxChar *wxDialogNameStr = wxT("dialog");
144const wxChar *wxFrameNameStr = wxT("frame");
145const wxChar *wxGaugeNameStr = wxT("gauge");
146const wxChar *wxStaticBoxNameStr = wxT("groupBox");
147const wxChar *wxListBoxNameStr = wxT("listBox");
148const wxChar *wxStaticTextNameStr = wxT("message");
149const wxChar *wxStaticBitmapNameStr = wxT("message");
150const wxChar *wxMultiTextNameStr = wxT("multitext");
151const wxChar *wxPanelNameStr = wxT("panel");
152const wxChar *wxRadioBoxNameStr = wxT("radioBox");
153const wxChar *wxRadioButtonNameStr = wxT("radioButton");
154const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton");
155const wxChar *wxScrollBarNameStr = wxT("scrollBar");
156const wxChar *wxSliderNameStr = wxT("slider");
157const wxChar *wxStaticNameStr = wxT("static");
158const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow");
159const wxChar *wxTextCtrlNameStr = wxT("text");
160const wxChar *wxVirtListBoxNameStr = wxT("virtListBox");
161const wxChar *wxButtonBarNameStr = wxT("buttonbar");
162const wxChar *wxEnhDialogNameStr = wxT("Shell");
163const wxChar *wxToolBarNameStr = wxT("toolbar");
164const wxChar *wxStatusLineNameStr = wxT("status_line");
165const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text");
166const wxChar *wxMessageBoxCaptionStr = wxT("Message");
167const wxChar *wxFileSelectorPromptStr = wxT("Select a file");
168const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*");
169const wxChar *wxInternalErrorStr = wxT("wxWindows Internal Error");
170const wxChar *wxFatalErrorStr = wxT("wxWindows Fatal Error");
171const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl");
172const wxChar *wxDirDialogDefaultFolderStr = wxT("/");
9ec64fa7 173const wxChar *wxTreeCtrlNameStr = wxT("wxTreeCtrl");
c801d85f 174
83624f79 175/* See wx/utils.h */
223d09f6
KB
176const wxChar *wxFloatToStringStr = wxT("%.2f");
177const wxChar *wxDoubleToStringStr = wxT("%.2f");
c801d85f 178
83624f79 179/* Dafaults for wxWindow etc. */
c801d85f
KB
180const wxSize wxDefaultSize(-1, -1);
181const wxPoint wxDefaultPosition(-1, -1);