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