]> git.saurik.com Git - wxWidgets.git/blame - src/gtk/data.cpp
log messages given during program initialization are not discarded any more
[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"
c801d85f
KB
21
22#define _MAXPATHLEN 500
23
83624f79 24/* Used for X resources */
c801d85f
KB
25#include <X11/Xlib.h>
26#include <X11/Xutil.h>
27#include <X11/Xresource.h>
28
c67daf87 29wxResourceCache *wxTheResourceCache = (wxResourceCache *) NULL;
c801d85f
KB
30XrmDatabase wxResourceDatabase;
31
83624f79 32/* Useful buffer, initialized in wxCommonInit */
c67daf87 33char *wxBuffer = (char *) NULL;
c801d85f 34
83624f79 35/* Windows List */
e146b8c8 36wxWindowList wxTopLevelWindows;
c801d85f 37
83624f79 38/* List of windows pending deletion */
c801d85f
KB
39wxList wxPendingDelete;
40
7214297d
GL
41#if wxUSE_THREADS
42/* List of events pending processing */
4d3a259a
GL
43wxList *wxPendingEvents = NULL;
44wxCriticalSection *wxPendingEventsLocker = NULL;
7214297d
GL
45#endif
46
83624f79
RR
47/* Current cursor, in order to hang on to
48 * cursor handle when setting the cursor globally */
c67daf87 49wxCursor *g_globalCursor = (wxCursor *) NULL;
c801d85f 50
83624f79 51/* Don't allow event propagation during drag */
c801d85f
KB
52bool g_blockEventsOnDrag = FALSE;
53
83624f79 54/* Don't allow mouse event propagation during scroll */
76ed8f8d
RR
55bool g_blockEventsOnScroll = FALSE;
56
83624f79 57/* Message Strings for Internationalization */
c801d85f
KB
58char **wx_msg_str = (char**)NULL;
59
83624f79
RR
60/* Custom OS version, as optionally placed in wx.ini/.wxrc
61 * Currently this can be Win95, Windows, Win32s, WinNT.
62 * For some systems, you can't tell until run-time what services you
63 * have. See wxGetOsVersion, which uses this string if present. */
c67daf87 64char *wxOsVersion = (char *) NULL;
c801d85f 65
83624f79 66/* For printing several pages */
c801d85f 67int wxPageNumber;
2a47d3c1
JS
68
69// Now in prntbase.cpp
70// wxPrintPaperDatabase* wxThePrintPaperDatabase = (wxPrintPaperDatabase *) NULL;
c801d85f 71
83624f79 72/* GDI Object Lists */
c67daf87
UR
73wxBrushList *wxTheBrushList = (wxBrushList *) NULL;
74wxPenList *wxThePenList = (wxPenList *) NULL;
75wxFontList *wxTheFontList = (wxFontList *) NULL;
76wxColourDatabase *wxTheColourDatabase = (wxColourDatabase *) NULL;
83624f79 77wxBitmapList *wxTheBitmapList = (wxBitmapList *) NULL;
e146b8c8 78
83624f79 79/* X only font names */
36b3b54a 80/*
a3622daa 81wxFontNameDirectory *wxTheFontNameDirectory;
36b3b54a 82*/
c801d85f 83
83624f79 84/* Stock objects */
c801d85f
KB
85wxFont *wxNORMAL_FONT;
86wxFont *wxSMALL_FONT;
87wxFont *wxITALIC_FONT;
88wxFont *wxSWISS_FONT;
89
90wxPen *wxRED_PEN;
91wxPen *wxCYAN_PEN;
92wxPen *wxGREEN_PEN;
93wxPen *wxBLACK_PEN;
94wxPen *wxWHITE_PEN;
95wxPen *wxTRANSPARENT_PEN;
96wxPen *wxBLACK_DASHED_PEN;
97wxPen *wxGREY_PEN;
98wxPen *wxMEDIUM_GREY_PEN;
99wxPen *wxLIGHT_GREY_PEN;
100
101wxBrush *wxBLUE_BRUSH;
102wxBrush *wxGREEN_BRUSH;
103wxBrush *wxWHITE_BRUSH;
104wxBrush *wxBLACK_BRUSH;
105wxBrush *wxTRANSPARENT_BRUSH;
106wxBrush *wxCYAN_BRUSH;
107wxBrush *wxRED_BRUSH;
108wxBrush *wxGREY_BRUSH;
109wxBrush *wxMEDIUM_GREY_BRUSH;
110wxBrush *wxLIGHT_GREY_BRUSH;
111
112wxColour *wxBLACK;
113wxColour *wxWHITE;
e146b8c8 114wxColour *wxGREY;
c801d85f
KB
115wxColour *wxRED;
116wxColour *wxBLUE;
117wxColour *wxGREEN;
118wxColour *wxCYAN;
119wxColour *wxLIGHT_GREY;
120
c67daf87
UR
121wxCursor *wxSTANDARD_CURSOR = (wxCursor *) NULL;
122wxCursor *wxHOURGLASS_CURSOR = (wxCursor *) NULL;
123wxCursor *wxCROSS_CURSOR = (wxCursor *) NULL;
c801d85f 124
83624f79 125/* 'Null' objects */
bcf1fa6b
RR
126wxAcceleratorTable wxNullAcceleratorTable;
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 */
93c5dd39
OK
137const wxChar *wxButtonNameStr = _T("button");
138const wxChar *wxCanvasNameStr = _T("canvas");
139const wxChar *wxCheckBoxNameStr = _T("check");
140const wxChar *wxChoiceNameStr = _T("choice");
141const wxChar *wxComboBoxNameStr = _T("comboBox");
142const wxChar *wxDialogNameStr = _T("dialog");
143const wxChar *wxFrameNameStr = _T("frame");
144const wxChar *wxGaugeNameStr = _T("gauge");
145const wxChar *wxStaticBoxNameStr = _T("groupBox");
146const wxChar *wxListBoxNameStr = _T("listBox");
147const wxChar *wxStaticTextNameStr = _T("message");
148const wxChar *wxStaticBitmapNameStr = _T("message");
149const wxChar *wxMultiTextNameStr = _T("multitext");
150const wxChar *wxPanelNameStr = _T("panel");
151const wxChar *wxRadioBoxNameStr = _T("radioBox");
152const wxChar *wxRadioButtonNameStr = _T("radioButton");
153const wxChar *wxBitmapRadioButtonNameStr = _T("radioButton");
154const wxChar *wxScrollBarNameStr = _T("scrollBar");
155const wxChar *wxSliderNameStr = _T("slider");
156const wxChar *wxStaticNameStr = _T("static");
157const wxChar *wxTextCtrlWindowNameStr = _T("textWindow");
158const wxChar *wxTextCtrlNameStr = _T("text");
159const wxChar *wxVirtListBoxNameStr = _T("virtListBox");
160const wxChar *wxButtonBarNameStr = _T("buttonbar");
161const wxChar *wxEnhDialogNameStr = _T("Shell");
162const wxChar *wxToolBarNameStr = _T("toolbar");
163const wxChar *wxStatusLineNameStr = _T("status_line");
164const wxChar *wxEmptyString = _T("");
165const wxChar *wxGetTextFromUserPromptStr = _T("Input Text");
166const wxChar *wxMessageBoxCaptionStr = _T("Message");
167const wxChar *wxFileSelectorPromptStr = _T("Select a file");
168const wxChar *wxFileSelectorDefaultWildcardStr = _T("*.*");
169const wxChar *wxInternalErrorStr = _T("wxWindows Internal Error");
170const wxChar *wxFatalErrorStr = _T("wxWindows Fatal Error");
c801d85f 171
83624f79 172/* See wx/utils.h */
93c5dd39
OK
173const wxChar *wxFloatToStringStr = _T("%.2f");
174const wxChar *wxDoubleToStringStr = _T("%.2f");
c801d85f 175
83624f79 176/* Dafaults for wxWindow etc. */
c801d85f
KB
177const wxSize wxDefaultSize(-1, -1);
178const wxPoint wxDefaultPosition(-1, -1);