]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/gtk/data.cpp
Oh well, I'll just stuff in the rest of the Unicode changes I have made
[wxWidgets.git] / src / gtk / data.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: data.cpp
3// Purpose:
4// Author: Robert Roebling
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifdef __GNUG__
12// #pragma implementation
13#endif
14
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"
20#include "wx/dcps.h"
21
22#define _MAXPATHLEN 500
23
24/* Used for X resources */
25#include <X11/Xlib.h>
26#include <X11/Xutil.h>
27#include <X11/Xresource.h>
28
29wxResourceCache *wxTheResourceCache = (wxResourceCache *) NULL;
30XrmDatabase wxResourceDatabase;
31
32/* Useful buffer, initialized in wxCommonInit */
33char *wxBuffer = (char *) NULL;
34
35/* Windows List */
36wxWindowList wxTopLevelWindows;
37
38/* List of windows pending deletion */
39wxList wxPendingDelete;
40
41#if wxUSE_THREADS
42/* List of events pending processing */
43wxList *wxPendingEvents = NULL;
44wxCriticalSection *wxPendingEventsLocker = NULL;
45#endif
46
47/* Current cursor, in order to hang on to
48 * cursor handle when setting the cursor globally */
49wxCursor *g_globalCursor = (wxCursor *) NULL;
50
51/* Don't allow event propagation during drag */
52bool g_blockEventsOnDrag = FALSE;
53
54/* Don't allow mouse event propagation during scroll */
55bool g_blockEventsOnScroll = FALSE;
56
57/* Message Strings for Internationalization */
58char **wx_msg_str = (char**)NULL;
59
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. */
64char *wxOsVersion = (char *) NULL;
65
66/* For printing several pages */
67int wxPageNumber;
68
69// Now in prntbase.cpp
70// wxPrintPaperDatabase* wxThePrintPaperDatabase = (wxPrintPaperDatabase *) NULL;
71
72/* GDI Object Lists */
73wxBrushList *wxTheBrushList = (wxBrushList *) NULL;
74wxPenList *wxThePenList = (wxPenList *) NULL;
75wxFontList *wxTheFontList = (wxFontList *) NULL;
76wxColourDatabase *wxTheColourDatabase = (wxColourDatabase *) NULL;
77wxBitmapList *wxTheBitmapList = (wxBitmapList *) NULL;
78
79/* X only font names */
80/*
81wxFontNameDirectory *wxTheFontNameDirectory;
82*/
83
84/* Stock objects */
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;
114wxColour *wxGREY;
115wxColour *wxRED;
116wxColour *wxBLUE;
117wxColour *wxGREEN;
118wxColour *wxCYAN;
119wxColour *wxLIGHT_GREY;
120
121wxCursor *wxSTANDARD_CURSOR = (wxCursor *) NULL;
122wxCursor *wxHOURGLASS_CURSOR = (wxCursor *) NULL;
123wxCursor *wxCROSS_CURSOR = (wxCursor *) NULL;
124
125/* 'Null' objects */
126wxAcceleratorTable wxNullAcceleratorTable;
127wxBitmap wxNullBitmap;
128wxIcon wxNullIcon;
129wxCursor wxNullCursor;
130wxPen wxNullPen;
131wxBrush wxNullBrush;
132wxFont wxNullFont;
133wxColour wxNullColour;
134wxPalette wxNullPalette;
135
136/* Default window names */
137const char *wxButtonNameStr = "button";
138const char *wxCanvasNameStr = "canvas";
139const char *wxCheckBoxNameStr = "check";
140const char *wxChoiceNameStr = "choice";
141const char *wxComboBoxNameStr = "comboBox";
142const char *wxDialogNameStr = "dialog";
143const char *wxFrameNameStr = "frame";
144const char *wxGaugeNameStr = "gauge";
145const char *wxStaticBoxNameStr = "groupBox";
146const char *wxListBoxNameStr = "listBox";
147const char *wxStaticTextNameStr = "message";
148const char *wxStaticBitmapNameStr = "message";
149const char *wxMultiTextNameStr = "multitext";
150const char *wxPanelNameStr = "panel";
151const char *wxRadioBoxNameStr = "radioBox";
152const char *wxRadioButtonNameStr = "radioButton";
153const char *wxBitmapRadioButtonNameStr = "radioButton";
154const char *wxScrollBarNameStr = "scrollBar";
155const char *wxSliderNameStr = "slider";
156const char *wxStaticNameStr = "static";
157const char *wxTextCtrlWindowNameStr = "textWindow";
158const char *wxTextCtrlNameStr = "text";
159const char *wxVirtListBoxNameStr = "virtListBox";
160const char *wxButtonBarNameStr = "buttonbar";
161const char *wxEnhDialogNameStr = "Shell";
162const char *wxToolBarNameStr = "toolbar";
163const char *wxStatusLineNameStr = "status_line";
164const char *wxEmptyString = "";
165const char *wxGetTextFromUserPromptStr = "Input Text";
166const char *wxMessageBoxCaptionStr = "Message";
167const char *wxFileSelectorPromptStr = "Select a file";
168const char *wxFileSelectorDefaultWildcardStr = "*.*";
169const char *wxInternalErrorStr = "wxWindows Internal Error";
170const char *wxFatalErrorStr = "wxWindows Fatal Error";
171
172/* See wx/utils.h */
173const char *wxFloatToStringStr = "%.2f";
174const char *wxDoubleToStringStr = "%.2f";
175
176/* Dafaults for wxWindow etc. */
177const wxSize wxDefaultSize(-1, -1);
178const wxPoint wxDefaultPosition(-1, -1);