]> git.saurik.com Git - wxWidgets.git/blob - src/mgl/data.cpp
Corrected (maybe) the object.h token syntax; corrected typo in makefile.g95
[wxWidgets.git] / src / mgl / data.cpp
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
14 // For compilers that support precompilation, includes "wx.h".
15 #include "wx/wxprec.h"
16
17 #ifdef __BORLANDC__
18 #pragma hdrstop
19 #endif
20
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
35 /* Useful buffer, initialized in wxCommonInit */
36 wxChar *wxBuffer = (wxChar *) NULL;
37
38 /* Windows List */
39 wxWindowList wxTopLevelWindows;
40
41 /* List of windows pending deletion */
42 wxList wxPendingDelete;
43
44 /* Current cursor, in order to hang on to
45 * cursor handle when setting the cursor globally */
46 wxCursor g_globalCursor;
47
48 /* Don't allow event propagation during drag */
49 bool g_blockEventsOnDrag = FALSE;
50
51 /* Don't allow mouse event propagation during scroll */
52 bool g_blockEventsOnScroll = FALSE;
53
54 /* Don't allow window closing if there are open dialogs */
55 int g_openDialogs = 0;
56
57 /* TRUE when the message queue is empty. this gets set to
58 FALSE by all event callbacks before anything else is done */
59 bool g_isIdle = FALSE;
60
61 /* Message Strings for Internationalization */
62 char **wx_msg_str = (char**)NULL;
63
64 /* For printing several pages */
65 int wxPageNumber;
66
67 // Now in prntbase.cpp
68 // wxPrintPaperDatabase* wxThePrintPaperDatabase = (wxPrintPaperDatabase *) NULL;
69
70 /* GDI Object Lists */
71 wxBrushList *wxTheBrushList = (wxBrushList *) NULL;
72 wxPenList *wxThePenList = (wxPenList *) NULL;
73 wxFontList *wxTheFontList = (wxFontList *) NULL;
74 wxColourDatabase *wxTheColourDatabase = (wxColourDatabase *) NULL;
75 wxBitmapList *wxTheBitmapList = (wxBitmapList *) NULL;
76
77 /* X only font names */
78 /*
79 wxFontNameDirectory *wxTheFontNameDirectory;
80 */
81
82 /* Stock objects */
83 wxFont *wxNORMAL_FONT;
84 wxFont *wxSMALL_FONT;
85 wxFont *wxITALIC_FONT;
86 wxFont *wxSWISS_FONT;
87
88 wxPen *wxRED_PEN;
89 wxPen *wxCYAN_PEN;
90 wxPen *wxGREEN_PEN;
91 wxPen *wxBLACK_PEN;
92 wxPen *wxWHITE_PEN;
93 wxPen *wxTRANSPARENT_PEN;
94 wxPen *wxBLACK_DASHED_PEN;
95 wxPen *wxGREY_PEN;
96 wxPen *wxMEDIUM_GREY_PEN;
97 wxPen *wxLIGHT_GREY_PEN;
98
99 wxBrush *wxBLUE_BRUSH;
100 wxBrush *wxGREEN_BRUSH;
101 wxBrush *wxWHITE_BRUSH;
102 wxBrush *wxBLACK_BRUSH;
103 wxBrush *wxTRANSPARENT_BRUSH;
104 wxBrush *wxCYAN_BRUSH;
105 wxBrush *wxRED_BRUSH;
106 wxBrush *wxGREY_BRUSH;
107 wxBrush *wxMEDIUM_GREY_BRUSH;
108 wxBrush *wxLIGHT_GREY_BRUSH;
109
110 wxColour *wxBLACK;
111 wxColour *wxWHITE;
112 wxColour *wxGREY;
113 wxColour *wxRED;
114 wxColour *wxBLUE;
115 wxColour *wxGREEN;
116 wxColour *wxCYAN;
117 wxColour *wxLIGHT_GREY;
118
119 wxCursor *wxSTANDARD_CURSOR = (wxCursor *) NULL;
120 wxCursor *wxHOURGLASS_CURSOR = (wxCursor *) NULL;
121 wxCursor *wxCROSS_CURSOR = (wxCursor *) NULL;
122
123 /* 'Null' objects */
124 #if wxUSE_ACCEL
125 wxAcceleratorTable wxNullAcceleratorTable;
126 #endif // wxUSE_ACCEL
127
128 wxBitmap wxNullBitmap;
129 wxIcon wxNullIcon;
130 wxCursor wxNullCursor;
131 wxPen wxNullPen;
132 wxBrush wxNullBrush;
133 wxFont wxNullFont;
134 wxColour wxNullColour;
135 wxPalette wxNullPalette;
136
137 /* Default window names */
138 const wxChar *wxControlNameStr = wxT("control");
139 const wxChar *wxButtonNameStr = wxT("button");
140 const wxChar *wxCanvasNameStr = wxT("canvas");
141 const wxChar *wxCheckBoxNameStr = wxT("check");
142 const wxChar *wxChoiceNameStr = wxT("choice");
143 const wxChar *wxComboBoxNameStr = wxT("comboBox");
144 const wxChar *wxDialogNameStr = wxT("dialog");
145 const wxChar *wxFrameNameStr = wxT("frame");
146 const wxChar *wxGaugeNameStr = wxT("gauge");
147 const wxChar *wxStaticBoxNameStr = wxT("groupBox");
148 const wxChar *wxListBoxNameStr = wxT("listBox");
149 const wxChar *wxStaticTextNameStr = wxT("message");
150 const wxChar *wxStaticBitmapNameStr = wxT("message");
151 const wxChar *wxMultiTextNameStr = wxT("multitext");
152 const wxChar *wxPanelNameStr = wxT("panel");
153 const wxChar *wxRadioBoxNameStr = wxT("radioBox");
154 const wxChar *wxRadioButtonNameStr = wxT("radioButton");
155 const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton");
156 const wxChar *wxScrollBarNameStr = wxT("scrollBar");
157 const wxChar *wxSliderNameStr = wxT("slider");
158 const wxChar *wxStaticNameStr = wxT("static");
159 const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow");
160 const wxChar *wxTextCtrlNameStr = wxT("text");
161 const wxChar *wxVirtListBoxNameStr = wxT("virtListBox");
162 const wxChar *wxButtonBarNameStr = wxT("buttonbar");
163 const wxChar *wxEnhDialogNameStr = wxT("Shell");
164 const wxChar *wxToolBarNameStr = wxT("toolbar");
165 const wxChar *wxStatusLineNameStr = wxT("status_line");
166 const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text");
167 const wxChar *wxMessageBoxCaptionStr = wxT("Message");
168 const wxChar *wxFileSelectorPromptStr = wxT("Select a file");
169 const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*");
170 const wxChar *wxInternalErrorStr = wxT("wxWindows Internal Error");
171 const wxChar *wxFatalErrorStr = wxT("wxWindows Fatal Error");
172 const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl");
173 const wxChar *wxDirDialogDefaultFolderStr = wxT("/");
174 const wxChar *wxTreeCtrlNameStr = wxT("wxTreeCtrl");
175
176 /* See wx/utils.h */
177 const wxChar *wxFloatToStringStr = wxT("%.2f");
178 const wxChar *wxDoubleToStringStr = wxT("%.2f");
179
180 /* Dafaults for wxWindow etc. */
181 const wxSize wxDefaultSize(-1, -1);
182 const wxPoint wxDefaultPosition(-1, -1);