1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 // #pragma implementation
14 // For compilers that support precompilation, includes "wx.h".
15 #include "wx/wxprec.h"
22 #include "wx/object.h"
23 #include "wx/window.h"
33 #define _MAXPATHLEN 500
36 wxWindowList wxTopLevelWindows
;
38 /* List of windows pending deletion */
39 wxList wxPendingDelete
;
41 /* Current cursor, in order to hang on to
42 * cursor handle when setting the cursor globally */
43 wxCursor g_globalCursor
;
45 /* Don't allow event propagation during drag */
46 bool g_blockEventsOnDrag
= FALSE
;
48 /* Don't allow mouse event propagation during scroll */
49 bool g_blockEventsOnScroll
= FALSE
;
51 /* Don't allow window closing if there are open dialogs */
52 int g_openDialogs
= 0;
54 /* TRUE when the message queue is empty. this gets set to
55 FALSE by all event callbacks before anything else is done */
56 bool g_isIdle
= FALSE
;
58 /* Message Strings for Internationalization */
59 char **wx_msg_str
= (char**)NULL
;
61 /* For printing several pages */
64 // Now in prntbase.cpp
65 // wxPrintPaperDatabase* wxThePrintPaperDatabase = (wxPrintPaperDatabase *) NULL;
67 /* GDI Object Lists */
68 wxBrushList
*wxTheBrushList
= (wxBrushList
*) NULL
;
69 wxPenList
*wxThePenList
= (wxPenList
*) NULL
;
70 wxFontList
*wxTheFontList
= (wxFontList
*) NULL
;
71 wxColourDatabase
*wxTheColourDatabase
= (wxColourDatabase
*) NULL
;
72 wxBitmapList
*wxTheBitmapList
= (wxBitmapList
*) NULL
;
74 /* X only font names */
76 wxFontNameDirectory *wxTheFontNameDirectory;
80 wxFont
*wxNORMAL_FONT
;
82 wxFont
*wxITALIC_FONT
;
90 wxPen
*wxTRANSPARENT_PEN
;
91 wxPen
*wxBLACK_DASHED_PEN
;
93 wxPen
*wxMEDIUM_GREY_PEN
;
94 wxPen
*wxLIGHT_GREY_PEN
;
96 wxBrush
*wxBLUE_BRUSH
;
97 wxBrush
*wxGREEN_BRUSH
;
98 wxBrush
*wxWHITE_BRUSH
;
99 wxBrush
*wxBLACK_BRUSH
;
100 wxBrush
*wxTRANSPARENT_BRUSH
;
101 wxBrush
*wxCYAN_BRUSH
;
102 wxBrush
*wxRED_BRUSH
;
103 wxBrush
*wxGREY_BRUSH
;
104 wxBrush
*wxMEDIUM_GREY_BRUSH
;
105 wxBrush
*wxLIGHT_GREY_BRUSH
;
114 wxColour
*wxLIGHT_GREY
;
116 wxCursor
*wxSTANDARD_CURSOR
= (wxCursor
*) NULL
;
117 wxCursor
*wxHOURGLASS_CURSOR
= (wxCursor
*) NULL
;
118 wxCursor
*wxCROSS_CURSOR
= (wxCursor
*) NULL
;
122 wxAcceleratorTable wxNullAcceleratorTable
;
123 #endif // wxUSE_ACCEL
125 wxBitmap wxNullBitmap
;
127 wxCursor wxNullCursor
;
131 wxColour wxNullColour
;
132 wxPalette wxNullPalette
;
134 /* Default window names */
135 const wxChar
*wxControlNameStr
= wxT("control");
136 const wxChar
*wxButtonNameStr
= wxT("button");
137 const wxChar
*wxCanvasNameStr
= wxT("canvas");
138 const wxChar
*wxCheckBoxNameStr
= wxT("check");
139 const wxChar
*wxChoiceNameStr
= wxT("choice");
140 const wxChar
*wxComboBoxNameStr
= wxT("comboBox");
141 const wxChar
*wxDialogNameStr
= wxT("dialog");
142 const wxChar
*wxFrameNameStr
= wxT("frame");
143 const wxChar
*wxGaugeNameStr
= wxT("gauge");
144 const wxChar
*wxStaticBoxNameStr
= wxT("groupBox");
145 const wxChar
*wxListBoxNameStr
= wxT("listBox");
146 const wxChar
*wxStaticTextNameStr
= wxT("message");
147 const wxChar
*wxStaticBitmapNameStr
= wxT("message");
148 const wxChar
*wxMultiTextNameStr
= wxT("multitext");
149 const wxChar
*wxPanelNameStr
= wxT("panel");
150 const wxChar
*wxRadioBoxNameStr
= wxT("radioBox");
151 const wxChar
*wxRadioButtonNameStr
= wxT("radioButton");
152 const wxChar
*wxBitmapRadioButtonNameStr
= wxT("radioButton");
153 const wxChar
*wxScrollBarNameStr
= wxT("scrollBar");
154 const wxChar
*wxSliderNameStr
= wxT("slider");
155 const wxChar
*wxStaticNameStr
= wxT("static");
156 const wxChar
*wxTextCtrlWindowNameStr
= wxT("textWindow");
157 const wxChar
*wxTextCtrlNameStr
= wxT("text");
158 const wxChar
*wxVirtListBoxNameStr
= wxT("virtListBox");
159 const wxChar
*wxButtonBarNameStr
= wxT("buttonbar");
160 const wxChar
*wxEnhDialogNameStr
= wxT("Shell");
161 const wxChar
*wxToolBarNameStr
= wxT("toolbar");
162 const wxChar
*wxStatusLineNameStr
= wxT("status_line");
163 const wxChar
*wxGetTextFromUserPromptStr
= wxT("Input Text");
164 const wxChar
*wxMessageBoxCaptionStr
= wxT("Message");
165 const wxChar
*wxFileSelectorPromptStr
= wxT("Select a file");
166 const wxChar
*wxFileSelectorDefaultWildcardStr
= wxT("*");
167 const wxChar
*wxDirDialogNameStr
= wxT("wxDirCtrl");
168 const wxChar
*wxDirDialogDefaultFolderStr
= wxT("/");
169 const wxChar
*wxTreeCtrlNameStr
= wxT("wxTreeCtrl");
171 /* Dafaults for wxWindow etc. */
172 const wxSize
wxDefaultSize(-1, -1);
173 const wxPoint
wxDefaultPosition(-1, -1);