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