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