]> git.saurik.com Git - wxWidgets.git/blame - src/gtk/data.cpp
set background to white. EVT_CHAR still doesn't work in MSW though.
[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 */
c801d85f
KB
36wxList wxTopLevelWindows;
37
83624f79 38/* List of windows pending deletion */
c801d85f
KB
39wxList wxPendingDelete;
40
83624f79
RR
41/* Current cursor, in order to hang on to
42 * cursor handle when setting the cursor globally */
c67daf87 43wxCursor *g_globalCursor = (wxCursor *) NULL;
c801d85f 44
83624f79 45/* Don't allow event propagation during drag */
c801d85f
KB
46bool g_blockEventsOnDrag = FALSE;
47
83624f79 48/* Don't allow mouse event propagation during scroll */
76ed8f8d
RR
49bool g_blockEventsOnScroll = FALSE;
50
83624f79 51/* Message Strings for Internationalization */
c801d85f
KB
52char **wx_msg_str = (char**)NULL;
53
83624f79
RR
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. */
c67daf87 58char *wxOsVersion = (char *) NULL;
c801d85f 59
83624f79 60/* For printing several pages */
c801d85f 61int wxPageNumber;
2a47d3c1
JS
62
63// Now in prntbase.cpp
64// wxPrintPaperDatabase* wxThePrintPaperDatabase = (wxPrintPaperDatabase *) NULL;
c801d85f 65
83624f79 66/* GDI Object Lists */
c67daf87
UR
67wxBrushList *wxTheBrushList = (wxBrushList *) NULL;
68wxPenList *wxThePenList = (wxPenList *) NULL;
69wxFontList *wxTheFontList = (wxFontList *) NULL;
70wxColourDatabase *wxTheColourDatabase = (wxColourDatabase *) NULL;
83624f79 71wxBitmapList *wxTheBitmapList = (wxBitmapList *) NULL;
c801d85f 72
83624f79 73/* X only font names */
36b3b54a 74/*
a3622daa 75wxFontNameDirectory *wxTheFontNameDirectory;
36b3b54a 76*/
c801d85f 77
83624f79 78/* Stock objects */
c801d85f
KB
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;
83624f79 108wxColour *wxGREY;
c801d85f
KB
109wxColour *wxRED;
110wxColour *wxBLUE;
111wxColour *wxGREEN;
112wxColour *wxCYAN;
113wxColour *wxLIGHT_GREY;
114
c67daf87
UR
115wxCursor *wxSTANDARD_CURSOR = (wxCursor *) NULL;
116wxCursor *wxHOURGLASS_CURSOR = (wxCursor *) NULL;
117wxCursor *wxCROSS_CURSOR = (wxCursor *) NULL;
c801d85f 118
83624f79 119/* 'Null' objects */
bcf1fa6b
RR
120wxAcceleratorTable wxNullAcceleratorTable;
121wxBitmap wxNullBitmap;
122wxIcon wxNullIcon;
123wxCursor wxNullCursor;
124wxPen wxNullPen;
125wxBrush wxNullBrush;
126wxFont wxNullFont;
127wxColour wxNullColour;
128wxPalette wxNullPalette;
c801d85f 129
83624f79 130/* Default window names */
c801d85f
KB
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
83624f79 166/* See wx/utils.h */
c801d85f
KB
167const char *wxFloatToStringStr = "%.2f";
168const char *wxDoubleToStringStr = "%.2f";
169
83624f79 170/* Dafaults for wxWindow etc. */
c801d85f
KB
171const wxSize wxDefaultSize(-1, -1);
172const wxPoint wxDefaultPosition(-1, -1);