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