]> git.saurik.com Git - wxWidgets.git/blame - src/mgl/data.cpp
compilation fixes (bug #672413)
[wxWidgets.git] / src / mgl / data.cpp
CommitLineData
32b8ec41
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: data.cpp
3// Purpose: wxMGL data
4// Author: Robert Roebling
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifdef __GNUG__
11// #pragma implementation
12#endif
13
a246f95e
VS
14// For compilers that support precompilation, includes "wx.h".
15#include "wx/wxprec.h"
16
17#ifdef __BORLANDC__
18 #pragma hdrstop
19#endif
20
32b8ec41
VZ
21#include "wx/defs.h"
22#include "wx/object.h"
23#include "wx/window.h"
24#include "wx/dc.h"
25
26#if wxUSE_ACCEL
27#include "wx/accel.h"
28#endif
29
30#include "wx/dcps.h"
31#include "wx/icon.h"
32
33#define _MAXPATHLEN 500
34
32b8ec41
VZ
35/* Windows List */
36wxWindowList 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;
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/* Don't allow window closing if there are open dialogs */
52int g_openDialogs = 0;
53
54/* TRUE when the message queue is empty. this gets set to
55 FALSE by all event callbacks before anything else is done */
56bool g_isIdle = FALSE;
57
58/* Message Strings for Internationalization */
59char **wx_msg_str = (char**)NULL;
60
61/* For printing several pages */
62int wxPageNumber;
63
64// Now in prntbase.cpp
65// wxPrintPaperDatabase* wxThePrintPaperDatabase = (wxPrintPaperDatabase *) NULL;
66
67/* GDI Object Lists */
68wxBrushList *wxTheBrushList = (wxBrushList *) NULL;
69wxPenList *wxThePenList = (wxPenList *) NULL;
70wxFontList *wxTheFontList = (wxFontList *) NULL;
71wxColourDatabase *wxTheColourDatabase = (wxColourDatabase *) NULL;
72wxBitmapList *wxTheBitmapList = (wxBitmapList *) NULL;
73
74/* X only font names */
75/*
76wxFontNameDirectory *wxTheFontNameDirectory;
77*/
78
79/* Stock objects */
80wxFont *wxNORMAL_FONT;
81wxFont *wxSMALL_FONT;
82wxFont *wxITALIC_FONT;
83wxFont *wxSWISS_FONT;
84
85wxPen *wxRED_PEN;
86wxPen *wxCYAN_PEN;
87wxPen *wxGREEN_PEN;
88wxPen *wxBLACK_PEN;
89wxPen *wxWHITE_PEN;
90wxPen *wxTRANSPARENT_PEN;
91wxPen *wxBLACK_DASHED_PEN;
92wxPen *wxGREY_PEN;
93wxPen *wxMEDIUM_GREY_PEN;
94wxPen *wxLIGHT_GREY_PEN;
95
96wxBrush *wxBLUE_BRUSH;
97wxBrush *wxGREEN_BRUSH;
98wxBrush *wxWHITE_BRUSH;
99wxBrush *wxBLACK_BRUSH;
100wxBrush *wxTRANSPARENT_BRUSH;
101wxBrush *wxCYAN_BRUSH;
102wxBrush *wxRED_BRUSH;
103wxBrush *wxGREY_BRUSH;
104wxBrush *wxMEDIUM_GREY_BRUSH;
105wxBrush *wxLIGHT_GREY_BRUSH;
106
107wxColour *wxBLACK;
108wxColour *wxWHITE;
109wxColour *wxGREY;
110wxColour *wxRED;
111wxColour *wxBLUE;
112wxColour *wxGREEN;
113wxColour *wxCYAN;
114wxColour *wxLIGHT_GREY;
115
116wxCursor *wxSTANDARD_CURSOR = (wxCursor *) NULL;
117wxCursor *wxHOURGLASS_CURSOR = (wxCursor *) NULL;
118wxCursor *wxCROSS_CURSOR = (wxCursor *) NULL;
119
120/* 'Null' objects */
121#if wxUSE_ACCEL
122 wxAcceleratorTable wxNullAcceleratorTable;
123#endif // wxUSE_ACCEL
124
125wxBitmap wxNullBitmap;
126wxIcon wxNullIcon;
127wxCursor wxNullCursor;
128wxPen wxNullPen;
129wxBrush wxNullBrush;
130wxFont wxNullFont;
131wxColour wxNullColour;
132wxPalette wxNullPalette;
133
134/* Default window names */
135const wxChar *wxControlNameStr = wxT("control");
136const wxChar *wxButtonNameStr = wxT("button");
137const wxChar *wxCanvasNameStr = wxT("canvas");
138const wxChar *wxCheckBoxNameStr = wxT("check");
139const wxChar *wxChoiceNameStr = wxT("choice");
140const wxChar *wxComboBoxNameStr = wxT("comboBox");
141const wxChar *wxDialogNameStr = wxT("dialog");
142const wxChar *wxFrameNameStr = wxT("frame");
143const wxChar *wxGaugeNameStr = wxT("gauge");
144const wxChar *wxStaticBoxNameStr = wxT("groupBox");
145const wxChar *wxListBoxNameStr = wxT("listBox");
146const wxChar *wxStaticTextNameStr = wxT("message");
147const wxChar *wxStaticBitmapNameStr = wxT("message");
148const wxChar *wxMultiTextNameStr = wxT("multitext");
149const wxChar *wxPanelNameStr = wxT("panel");
150const wxChar *wxRadioBoxNameStr = wxT("radioBox");
151const wxChar *wxRadioButtonNameStr = wxT("radioButton");
152const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton");
153const wxChar *wxScrollBarNameStr = wxT("scrollBar");
154const wxChar *wxSliderNameStr = wxT("slider");
155const wxChar *wxStaticNameStr = wxT("static");
156const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow");
157const wxChar *wxTextCtrlNameStr = wxT("text");
158const wxChar *wxVirtListBoxNameStr = wxT("virtListBox");
159const wxChar *wxButtonBarNameStr = wxT("buttonbar");
160const wxChar *wxEnhDialogNameStr = wxT("Shell");
161const wxChar *wxToolBarNameStr = wxT("toolbar");
162const wxChar *wxStatusLineNameStr = wxT("status_line");
163const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text");
164const wxChar *wxMessageBoxCaptionStr = wxT("Message");
165const wxChar *wxFileSelectorPromptStr = wxT("Select a file");
166const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*");
32b8ec41
VZ
167const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl");
168const wxChar *wxDirDialogDefaultFolderStr = wxT("/");
169const wxChar *wxTreeCtrlNameStr = wxT("wxTreeCtrl");
170
171/* See wx/utils.h */
172const wxChar *wxFloatToStringStr = wxT("%.2f");
173const wxChar *wxDoubleToStringStr = wxT("%.2f");
174
175/* Dafaults for wxWindow etc. */
176const wxSize wxDefaultSize(-1, -1);
177const wxPoint wxDefaultPosition(-1, -1);