]> git.saurik.com Git - wxWidgets.git/blame - src/gtk1/data.cpp
Added Mac OS X resource file handling:
[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"
3d2d8da1
RR
18
19#if wxUSE_ACCEL
bcf1fa6b 20#include "wx/accel.h"
3d2d8da1
RR
21#endif
22
bf38cbff 23#include "wx/dcps.h"
88ac883a 24#include "wx/icon.h"
c801d85f
KB
25
26#define _MAXPATHLEN 500
27
83624f79 28/* Useful buffer, initialized in wxCommonInit */
7dd62924 29wxChar *wxBuffer = (wxChar *) NULL;
c801d85f 30
83624f79 31/* Windows List */
e146b8c8 32wxWindowList wxTopLevelWindows;
c801d85f 33
83624f79 34/* List of windows pending deletion */
c801d85f
KB
35wxList wxPendingDelete;
36
83624f79
RR
37/* Current cursor, in order to hang on to
38 * cursor handle when setting the cursor globally */
238d735d 39wxCursor g_globalCursor;
c801d85f 40
83624f79 41/* Don't allow event propagation during drag */
c801d85f
KB
42bool g_blockEventsOnDrag = FALSE;
43
83624f79 44/* Don't allow mouse event propagation during scroll */
76ed8f8d
RR
45bool g_blockEventsOnScroll = FALSE;
46
2d68e1b4
RR
47/* Don't allow window closing if there are open dialogs */
48int g_openDialogs = 0;
49
acfd422a
RR
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
83624f79 54/* Message Strings for Internationalization */
c801d85f
KB
55char **wx_msg_str = (char**)NULL;
56
83624f79 57/* For printing several pages */
c801d85f 58int wxPageNumber;
2a47d3c1
JS
59
60// Now in prntbase.cpp
61// wxPrintPaperDatabase* wxThePrintPaperDatabase = (wxPrintPaperDatabase *) NULL;
c801d85f 62
83624f79 63/* GDI Object Lists */
c67daf87
UR
64wxBrushList *wxTheBrushList = (wxBrushList *) NULL;
65wxPenList *wxThePenList = (wxPenList *) NULL;
66wxFontList *wxTheFontList = (wxFontList *) NULL;
67wxColourDatabase *wxTheColourDatabase = (wxColourDatabase *) NULL;
83624f79 68wxBitmapList *wxTheBitmapList = (wxBitmapList *) NULL;
e146b8c8 69
83624f79 70/* X only font names */
36b3b54a 71/*
a3622daa 72wxFontNameDirectory *wxTheFontNameDirectory;
36b3b54a 73*/
c801d85f 74
83624f79 75/* Stock objects */
c801d85f
KB
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;
e146b8c8 105wxColour *wxGREY;
c801d85f
KB
106wxColour *wxRED;
107wxColour *wxBLUE;
108wxColour *wxGREEN;
109wxColour *wxCYAN;
110wxColour *wxLIGHT_GREY;
111
c67daf87
UR
112wxCursor *wxSTANDARD_CURSOR = (wxCursor *) NULL;
113wxCursor *wxHOURGLASS_CURSOR = (wxCursor *) NULL;
114wxCursor *wxCROSS_CURSOR = (wxCursor *) NULL;
c801d85f 115
83624f79 116/* 'Null' objects */
88ac883a
VZ
117#if wxUSE_ACCEL
118 wxAcceleratorTable wxNullAcceleratorTable;
119#endif // wxUSE_ACCEL
120
bcf1fa6b 121wxBitmap wxNullBitmap;
e146b8c8 122wxIcon wxNullIcon;
bcf1fa6b
RR
123wxCursor wxNullCursor;
124wxPen wxNullPen;
125wxBrush wxNullBrush;
126wxFont wxNullFont;
127wxColour wxNullColour;
e146b8c8 128wxPalette wxNullPalette;
c801d85f 129
83624f79 130/* Default window names */
8d772832 131const wxChar *wxControlNameStr = wxT("control");
223d09f6
KB
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("/");
9ec64fa7 167const wxChar *wxTreeCtrlNameStr = wxT("wxTreeCtrl");
c801d85f 168
83624f79 169/* See wx/utils.h */
223d09f6
KB
170const wxChar *wxFloatToStringStr = wxT("%.2f");
171const wxChar *wxDoubleToStringStr = wxT("%.2f");
c801d85f 172
83624f79 173/* Dafaults for wxWindow etc. */
c801d85f
KB
174const wxSize wxDefaultSize(-1, -1);
175const wxPoint wxDefaultPosition(-1, -1);