1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 // #pragma implementation
15 #include "wx/object.h"
16 #include "wx/window.h"
26 #define _MAXPATHLEN 500
29 wxWindowList wxTopLevelWindows
;
31 /* List of windows pending deletion */
32 wxList wxPendingDelete
;
34 /* Current cursor, in order to hang on to
35 * cursor handle when setting the cursor globally */
36 wxCursor g_globalCursor
;
38 /* Don't allow event propagation during drag */
39 bool g_blockEventsOnDrag
= FALSE
;
41 /* Don't allow mouse event propagation during scroll */
42 bool g_blockEventsOnScroll
= FALSE
;
44 /* Don't allow window closing if there are open dialogs */
45 int g_openDialogs
= 0;
47 /* TRUE when the message queue is empty. this gets set to
48 FALSE by all event callbacks before anything else is done */
49 bool g_isIdle
= FALSE
;
51 /* Message Strings for Internationalization */
52 char **wx_msg_str
= (char**)NULL
;
54 /* For printing several pages */
57 // Now in prntbase.cpp
58 // wxPrintPaperDatabase* wxThePrintPaperDatabase = (wxPrintPaperDatabase *) NULL;
60 /* GDI Object Lists */
61 wxBrushList
*wxTheBrushList
= (wxBrushList
*) NULL
;
62 wxPenList
*wxThePenList
= (wxPenList
*) NULL
;
63 wxFontList
*wxTheFontList
= (wxFontList
*) NULL
;
64 wxColourDatabase
*wxTheColourDatabase
= (wxColourDatabase
*) NULL
;
65 wxBitmapList
*wxTheBitmapList
= (wxBitmapList
*) NULL
;
67 /* X only font names */
69 wxFontNameDirectory *wxTheFontNameDirectory;
73 wxFont
*wxNORMAL_FONT
;
75 wxFont
*wxITALIC_FONT
;
83 wxPen
*wxTRANSPARENT_PEN
;
84 wxPen
*wxBLACK_DASHED_PEN
;
86 wxPen
*wxMEDIUM_GREY_PEN
;
87 wxPen
*wxLIGHT_GREY_PEN
;
89 wxBrush
*wxBLUE_BRUSH
;
90 wxBrush
*wxGREEN_BRUSH
;
91 wxBrush
*wxWHITE_BRUSH
;
92 wxBrush
*wxBLACK_BRUSH
;
93 wxBrush
*wxTRANSPARENT_BRUSH
;
94 wxBrush
*wxCYAN_BRUSH
;
96 wxBrush
*wxGREY_BRUSH
;
97 wxBrush
*wxMEDIUM_GREY_BRUSH
;
98 wxBrush
*wxLIGHT_GREY_BRUSH
;
107 wxColour
*wxLIGHT_GREY
;
109 wxCursor
*wxSTANDARD_CURSOR
= (wxCursor
*) NULL
;
110 wxCursor
*wxHOURGLASS_CURSOR
= (wxCursor
*) NULL
;
111 wxCursor
*wxCROSS_CURSOR
= (wxCursor
*) NULL
;
115 wxAcceleratorTable wxNullAcceleratorTable
;
116 #endif // wxUSE_ACCEL
118 wxBitmap wxNullBitmap
;
120 wxCursor wxNullCursor
;
124 wxColour wxNullColour
;
125 wxPalette wxNullPalette
;
127 /* Default window names */
128 const wxChar
*wxControlNameStr
= wxT("control");
129 const wxChar
*wxButtonNameStr
= wxT("button");
130 const wxChar
*wxCanvasNameStr
= wxT("canvas");
131 const wxChar
*wxCheckBoxNameStr
= wxT("check");
132 const wxChar
*wxChoiceNameStr
= wxT("choice");
133 const wxChar
*wxComboBoxNameStr
= wxT("comboBox");
134 const wxChar
*wxDialogNameStr
= wxT("dialog");
135 const wxChar
*wxFrameNameStr
= wxT("frame");
136 const wxChar
*wxGaugeNameStr
= wxT("gauge");
137 const wxChar
*wxStaticBoxNameStr
= wxT("groupBox");
138 const wxChar
*wxListBoxNameStr
= wxT("listBox");
139 const wxChar
*wxStaticTextNameStr
= wxT("message");
140 const wxChar
*wxStaticBitmapNameStr
= wxT("message");
141 const wxChar
*wxMultiTextNameStr
= wxT("multitext");
142 const wxChar
*wxPanelNameStr
= wxT("panel");
143 const wxChar
*wxRadioBoxNameStr
= wxT("radioBox");
144 const wxChar
*wxRadioButtonNameStr
= wxT("radioButton");
145 const wxChar
*wxBitmapRadioButtonNameStr
= wxT("radioButton");
146 const wxChar
*wxScrollBarNameStr
= wxT("scrollBar");
147 const wxChar
*wxSliderNameStr
= wxT("slider");
148 const wxChar
*wxStaticNameStr
= wxT("static");
149 const wxChar
*wxTextCtrlWindowNameStr
= wxT("textWindow");
150 const wxChar
*wxTextCtrlNameStr
= wxT("text");
151 const wxChar
*wxVirtListBoxNameStr
= wxT("virtListBox");
152 const wxChar
*wxButtonBarNameStr
= wxT("buttonbar");
153 const wxChar
*wxEnhDialogNameStr
= wxT("Shell");
154 const wxChar
*wxToolBarNameStr
= wxT("toolbar");
155 const wxChar
*wxStatusLineNameStr
= wxT("status_line");
156 const wxChar
*wxGetTextFromUserPromptStr
= wxT("Input Text");
157 const wxChar
*wxMessageBoxCaptionStr
= wxT("Message");
158 const wxChar
*wxFileSelectorPromptStr
= wxT("Select a file");
159 const wxChar
*wxFileSelectorDefaultWildcardStr
= wxT("*");
160 const wxChar
*wxInternalErrorStr
= wxT("wxWindows Internal Error");
161 const wxChar
*wxFatalErrorStr
= wxT("wxWindows Fatal Error");
162 const wxChar
*wxDirDialogNameStr
= wxT("wxDirCtrl");
163 const wxChar
*wxDirDialogDefaultFolderStr
= wxT("/");
164 const wxChar
*wxTreeCtrlNameStr
= wxT("wxTreeCtrl");
167 const wxChar
*wxFloatToStringStr
= wxT("%.2f");
168 const wxChar
*wxDoubleToStringStr
= wxT("%.2f");
170 /* Dafaults for wxWindow etc. */
171 const wxSize
wxDefaultSize(-1, -1);
172 const wxPoint
wxDefaultPosition(-1, -1);