]> git.saurik.com Git - wxWidgets.git/blame - src/gtk1/data.cpp
Bug fix in GetLabelFromText
[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
c801d85f
KB
10#ifdef __GNUG__
11// #pragma implementation
12#endif
13
bcf1fa6b
RR
14#include "wx/defs.h"
15#include "wx/object.h"
16#include "wx/window.h"
17#include "wx/dc.h"
18#include "wx/accel.h"
bf38cbff 19#include "wx/dcps.h"
88ac883a 20#include "wx/icon.h"
c801d85f
KB
21
22#define _MAXPATHLEN 500
23
83624f79 24/* Useful buffer, initialized in wxCommonInit */
7dd62924 25wxChar *wxBuffer = (wxChar *) NULL;
c801d85f 26
83624f79 27/* Windows List */
e146b8c8 28wxWindowList wxTopLevelWindows;
c801d85f 29
83624f79 30/* List of windows pending deletion */
c801d85f
KB
31wxList wxPendingDelete;
32
83624f79
RR
33/* Current cursor, in order to hang on to
34 * cursor handle when setting the cursor globally */
238d735d 35wxCursor g_globalCursor;
c801d85f 36
83624f79 37/* Don't allow event propagation during drag */
c801d85f
KB
38bool g_blockEventsOnDrag = FALSE;
39
83624f79 40/* Don't allow mouse event propagation during scroll */
76ed8f8d
RR
41bool g_blockEventsOnScroll = FALSE;
42
2d68e1b4
RR
43/* Don't allow window closing if there are open dialogs */
44int g_openDialogs = 0;
45
acfd422a
RR
46/* TRUE when the message queue is empty. this gets set to
47 FALSE by all event callbacks before anything else is done */
48bool g_isIdle = FALSE;
49
83624f79 50/* Message Strings for Internationalization */
c801d85f
KB
51char **wx_msg_str = (char**)NULL;
52
83624f79
RR
53/* Custom OS version, as optionally placed in wx.ini/.wxrc
54 * Currently this can be Win95, Windows, Win32s, WinNT.
55 * For some systems, you can't tell until run-time what services you
56 * have. See wxGetOsVersion, which uses this string if present. */
c67daf87 57char *wxOsVersion = (char *) NULL;
c801d85f 58
83624f79 59/* For printing several pages */
c801d85f 60int wxPageNumber;
2a47d3c1
JS
61
62// Now in prntbase.cpp
63// wxPrintPaperDatabase* wxThePrintPaperDatabase = (wxPrintPaperDatabase *) NULL;
c801d85f 64
83624f79 65/* GDI Object Lists */
c67daf87
UR
66wxBrushList *wxTheBrushList = (wxBrushList *) NULL;
67wxPenList *wxThePenList = (wxPenList *) NULL;
68wxFontList *wxTheFontList = (wxFontList *) NULL;
69wxColourDatabase *wxTheColourDatabase = (wxColourDatabase *) NULL;
83624f79 70wxBitmapList *wxTheBitmapList = (wxBitmapList *) NULL;
e146b8c8 71
83624f79 72/* X only font names */
36b3b54a 73/*
a3622daa 74wxFontNameDirectory *wxTheFontNameDirectory;
36b3b54a 75*/
c801d85f 76
83624f79 77/* Stock objects */
c801d85f
KB
78wxFont *wxNORMAL_FONT;
79wxFont *wxSMALL_FONT;
80wxFont *wxITALIC_FONT;
81wxFont *wxSWISS_FONT;
82
83wxPen *wxRED_PEN;
84wxPen *wxCYAN_PEN;
85wxPen *wxGREEN_PEN;
86wxPen *wxBLACK_PEN;
87wxPen *wxWHITE_PEN;
88wxPen *wxTRANSPARENT_PEN;
89wxPen *wxBLACK_DASHED_PEN;
90wxPen *wxGREY_PEN;
91wxPen *wxMEDIUM_GREY_PEN;
92wxPen *wxLIGHT_GREY_PEN;
93
94wxBrush *wxBLUE_BRUSH;
95wxBrush *wxGREEN_BRUSH;
96wxBrush *wxWHITE_BRUSH;
97wxBrush *wxBLACK_BRUSH;
98wxBrush *wxTRANSPARENT_BRUSH;
99wxBrush *wxCYAN_BRUSH;
100wxBrush *wxRED_BRUSH;
101wxBrush *wxGREY_BRUSH;
102wxBrush *wxMEDIUM_GREY_BRUSH;
103wxBrush *wxLIGHT_GREY_BRUSH;
104
105wxColour *wxBLACK;
106wxColour *wxWHITE;
e146b8c8 107wxColour *wxGREY;
c801d85f
KB
108wxColour *wxRED;
109wxColour *wxBLUE;
110wxColour *wxGREEN;
111wxColour *wxCYAN;
112wxColour *wxLIGHT_GREY;
113
c67daf87
UR
114wxCursor *wxSTANDARD_CURSOR = (wxCursor *) NULL;
115wxCursor *wxHOURGLASS_CURSOR = (wxCursor *) NULL;
116wxCursor *wxCROSS_CURSOR = (wxCursor *) NULL;
c801d85f 117
83624f79 118/* 'Null' objects */
88ac883a
VZ
119#if wxUSE_ACCEL
120 wxAcceleratorTable wxNullAcceleratorTable;
121#endif // wxUSE_ACCEL
122
bcf1fa6b 123wxBitmap wxNullBitmap;
e146b8c8 124wxIcon wxNullIcon;
bcf1fa6b
RR
125wxCursor wxNullCursor;
126wxPen wxNullPen;
127wxBrush wxNullBrush;
128wxFont wxNullFont;
129wxColour wxNullColour;
e146b8c8 130wxPalette wxNullPalette;
c801d85f 131
83624f79 132/* Default window names */
8d772832 133const wxChar *wxControlNameStr = wxT("control");
223d09f6
KB
134const wxChar *wxButtonNameStr = wxT("button");
135const wxChar *wxCanvasNameStr = wxT("canvas");
136const wxChar *wxCheckBoxNameStr = wxT("check");
137const wxChar *wxChoiceNameStr = wxT("choice");
138const wxChar *wxComboBoxNameStr = wxT("comboBox");
139const wxChar *wxDialogNameStr = wxT("dialog");
140const wxChar *wxFrameNameStr = wxT("frame");
141const wxChar *wxGaugeNameStr = wxT("gauge");
142const wxChar *wxStaticBoxNameStr = wxT("groupBox");
143const wxChar *wxListBoxNameStr = wxT("listBox");
144const wxChar *wxStaticTextNameStr = wxT("message");
145const wxChar *wxStaticBitmapNameStr = wxT("message");
146const wxChar *wxMultiTextNameStr = wxT("multitext");
147const wxChar *wxPanelNameStr = wxT("panel");
148const wxChar *wxRadioBoxNameStr = wxT("radioBox");
149const wxChar *wxRadioButtonNameStr = wxT("radioButton");
150const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton");
151const wxChar *wxScrollBarNameStr = wxT("scrollBar");
152const wxChar *wxSliderNameStr = wxT("slider");
153const wxChar *wxStaticNameStr = wxT("static");
154const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow");
155const wxChar *wxTextCtrlNameStr = wxT("text");
156const wxChar *wxVirtListBoxNameStr = wxT("virtListBox");
157const wxChar *wxButtonBarNameStr = wxT("buttonbar");
158const wxChar *wxEnhDialogNameStr = wxT("Shell");
159const wxChar *wxToolBarNameStr = wxT("toolbar");
160const wxChar *wxStatusLineNameStr = wxT("status_line");
161const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text");
162const wxChar *wxMessageBoxCaptionStr = wxT("Message");
163const wxChar *wxFileSelectorPromptStr = wxT("Select a file");
164const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*");
165const wxChar *wxInternalErrorStr = wxT("wxWindows Internal Error");
166const wxChar *wxFatalErrorStr = wxT("wxWindows Fatal Error");
167const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl");
168const wxChar *wxDirDialogDefaultFolderStr = wxT("/");
9ec64fa7 169const wxChar *wxTreeCtrlNameStr = wxT("wxTreeCtrl");
c801d85f 170
83624f79 171/* See wx/utils.h */
223d09f6
KB
172const wxChar *wxFloatToStringStr = wxT("%.2f");
173const wxChar *wxDoubleToStringStr = wxT("%.2f");
c801d85f 174
83624f79 175/* Dafaults for wxWindow etc. */
c801d85f
KB
176const wxSize wxDefaultSize(-1, -1);
177const wxPoint wxDefaultPosition(-1, -1);