]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/gtk/data.cpp
set background to white. EVT_CHAR still doesn't work in MSW though.
[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 */
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;
62
63// Now in prntbase.cpp
64// wxPrintPaperDatabase* wxThePrintPaperDatabase = (wxPrintPaperDatabase *) NULL;
65
66/* GDI Object Lists */
67wxBrushList *wxTheBrushList = (wxBrushList *) NULL;
68wxPenList *wxThePenList = (wxPenList *) NULL;
69wxFontList *wxTheFontList = (wxFontList *) NULL;
70wxColourDatabase *wxTheColourDatabase = (wxColourDatabase *) NULL;
71wxBitmapList *wxTheBitmapList = (wxBitmapList *) NULL;
72
73/* X only font names */
74/*
75wxFontNameDirectory *wxTheFontNameDirectory;
76*/
77
78/* Stock objects */
79wxFont *wxNORMAL_FONT;
80wxFont *wxSMALL_FONT;
81wxFont *wxITALIC_FONT;
82wxFont *wxSWISS_FONT;
83
84wxPen *wxRED_PEN;
85wxPen *wxCYAN_PEN;
86wxPen *wxGREEN_PEN;
87wxPen *wxBLACK_PEN;
88wxPen *wxWHITE_PEN;
89wxPen *wxTRANSPARENT_PEN;
90wxPen *wxBLACK_DASHED_PEN;
91wxPen *wxGREY_PEN;
92wxPen *wxMEDIUM_GREY_PEN;
93wxPen *wxLIGHT_GREY_PEN;
94
95wxBrush *wxBLUE_BRUSH;
96wxBrush *wxGREEN_BRUSH;
97wxBrush *wxWHITE_BRUSH;
98wxBrush *wxBLACK_BRUSH;
99wxBrush *wxTRANSPARENT_BRUSH;
100wxBrush *wxCYAN_BRUSH;
101wxBrush *wxRED_BRUSH;
102wxBrush *wxGREY_BRUSH;
103wxBrush *wxMEDIUM_GREY_BRUSH;
104wxBrush *wxLIGHT_GREY_BRUSH;
105
106wxColour *wxBLACK;
107wxColour *wxWHITE;
108wxColour *wxGREY;
109wxColour *wxRED;
110wxColour *wxBLUE;
111wxColour *wxGREEN;
112wxColour *wxCYAN;
113wxColour *wxLIGHT_GREY;
114
115wxCursor *wxSTANDARD_CURSOR = (wxCursor *) NULL;
116wxCursor *wxHOURGLASS_CURSOR = (wxCursor *) NULL;
117wxCursor *wxCROSS_CURSOR = (wxCursor *) NULL;
118
119/* 'Null' objects */
120wxAcceleratorTable wxNullAcceleratorTable;
121wxBitmap wxNullBitmap;
122wxIcon wxNullIcon;
123wxCursor wxNullCursor;
124wxPen wxNullPen;
125wxBrush wxNullBrush;
126wxFont wxNullFont;
127wxColour wxNullColour;
128wxPalette wxNullPalette;
129
130/* Default window names */
131const char *wxButtonNameStr = "button";
132const char *wxCanvasNameStr = "canvas";
133const char *wxCheckBoxNameStr = "check";
134const char *wxChoiceNameStr = "choice";
135const char *wxComboBoxNameStr = "comboBox";
136const char *wxDialogNameStr = "dialog";
137const char *wxFrameNameStr = "frame";
138const char *wxGaugeNameStr = "gauge";
139const char *wxStaticBoxNameStr = "groupBox";
140const char *wxListBoxNameStr = "listBox";
141const char *wxStaticTextNameStr = "message";
142const char *wxStaticBitmapNameStr = "message";
143const char *wxMultiTextNameStr = "multitext";
144const char *wxPanelNameStr = "panel";
145const char *wxRadioBoxNameStr = "radioBox";
146const char *wxRadioButtonNameStr = "radioButton";
147const char *wxBitmapRadioButtonNameStr = "radioButton";
148const char *wxScrollBarNameStr = "scrollBar";
149const char *wxSliderNameStr = "slider";
150const char *wxStaticNameStr = "static";
151const char *wxTextCtrlWindowNameStr = "textWindow";
152const char *wxTextCtrlNameStr = "text";
153const char *wxVirtListBoxNameStr = "virtListBox";
154const char *wxButtonBarNameStr = "buttonbar";
155const char *wxEnhDialogNameStr = "Shell";
156const char *wxToolBarNameStr = "toolbar";
157const char *wxStatusLineNameStr = "status_line";
158const char *wxEmptyString = "";
159const char *wxGetTextFromUserPromptStr = "Input Text";
160const char *wxMessageBoxCaptionStr = "Message";
161const char *wxFileSelectorPromptStr = "Select a file";
162const char *wxFileSelectorDefaultWildcardStr = "*.*";
163const char *wxInternalErrorStr = "wxWindows Internal Error";
164const char *wxFatalErrorStr = "wxWindows Fatal Error";
165
166/* See wx/utils.h */
167const char *wxFloatToStringStr = "%.2f";
168const char *wxDoubleToStringStr = "%.2f";
169
170/* Dafaults for wxWindow etc. */
171const wxSize wxDefaultSize(-1, -1);
172const wxPoint wxDefaultPosition(-1, -1);