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