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
28 /* Useful buffer, initialized in wxCommonInit */
29 wxChar
*wxBuffer
= (wxChar
*) NULL
;
32 wxWindowList wxTopLevelWindows
;
34 /* List of windows pending deletion */
35 wxList wxPendingDelete
;
37 /* Current cursor, in order to hang on to
38 * cursor handle when setting the cursor globally */
39 wxCursor g_globalCursor
;
41 /* Don't allow event propagation during drag */
42 bool g_blockEventsOnDrag
= FALSE
;
44 /* Don't allow mouse event propagation during scroll */
45 bool g_blockEventsOnScroll
= FALSE
;
47 /* Don't allow window closing if there are open dialogs */
48 int g_openDialogs
= 0;
50 /* TRUE when the message queue is empty. this gets set to
51 FALSE by all event callbacks before anything else is done */
52 bool g_isIdle
= FALSE
;
54 /* Message Strings for Internationalization */
55 char **wx_msg_str
= (char**)NULL
;
57 /* For printing several pages */
60 // Now in prntbase.cpp
61 // wxPrintPaperDatabase* wxThePrintPaperDatabase = (wxPrintPaperDatabase *) NULL;
63 /* GDI Object Lists */
64 wxBrushList
*wxTheBrushList
= (wxBrushList
*) NULL
;
65 wxPenList
*wxThePenList
= (wxPenList
*) NULL
;
66 wxFontList
*wxTheFontList
= (wxFontList
*) NULL
;
67 wxColourDatabase
*wxTheColourDatabase
= (wxColourDatabase
*) NULL
;
68 wxBitmapList
*wxTheBitmapList
= (wxBitmapList
*) NULL
;
70 /* X only font names */
72 wxFontNameDirectory *wxTheFontNameDirectory;
76 wxFont
*wxNORMAL_FONT
;
78 wxFont
*wxITALIC_FONT
;
86 wxPen
*wxTRANSPARENT_PEN
;
87 wxPen
*wxBLACK_DASHED_PEN
;
89 wxPen
*wxMEDIUM_GREY_PEN
;
90 wxPen
*wxLIGHT_GREY_PEN
;
92 wxBrush
*wxBLUE_BRUSH
;
93 wxBrush
*wxGREEN_BRUSH
;
94 wxBrush
*wxWHITE_BRUSH
;
95 wxBrush
*wxBLACK_BRUSH
;
96 wxBrush
*wxTRANSPARENT_BRUSH
;
97 wxBrush
*wxCYAN_BRUSH
;
99 wxBrush
*wxGREY_BRUSH
;
100 wxBrush
*wxMEDIUM_GREY_BRUSH
;
101 wxBrush
*wxLIGHT_GREY_BRUSH
;
110 wxColour
*wxLIGHT_GREY
;
112 wxCursor
*wxSTANDARD_CURSOR
= (wxCursor
*) NULL
;
113 wxCursor
*wxHOURGLASS_CURSOR
= (wxCursor
*) NULL
;
114 wxCursor
*wxCROSS_CURSOR
= (wxCursor
*) NULL
;
118 wxAcceleratorTable wxNullAcceleratorTable
;
119 #endif // wxUSE_ACCEL
121 wxBitmap wxNullBitmap
;
123 wxCursor wxNullCursor
;
127 wxColour wxNullColour
;
128 wxPalette wxNullPalette
;
129 wxNativeFontInfo wxNullNativeFontInfo
;
131 /* Default window names */
132 const wxChar
*wxControlNameStr
= wxT("control");
133 const wxChar
*wxButtonNameStr
= wxT("button");
134 const wxChar
*wxCanvasNameStr
= wxT("canvas");
135 const wxChar
*wxCheckBoxNameStr
= wxT("check");
136 const wxChar
*wxChoiceNameStr
= wxT("choice");
137 const wxChar
*wxComboBoxNameStr
= wxT("comboBox");
138 const wxChar
*wxDialogNameStr
= wxT("dialog");
139 const wxChar
*wxFrameNameStr
= wxT("frame");
140 const wxChar
*wxGaugeNameStr
= wxT("gauge");
141 const wxChar
*wxStaticBoxNameStr
= wxT("groupBox");
142 const wxChar
*wxListBoxNameStr
= wxT("listBox");
143 const wxChar
*wxStaticTextNameStr
= wxT("message");
144 const wxChar
*wxStaticBitmapNameStr
= wxT("message");
145 const wxChar
*wxMultiTextNameStr
= wxT("multitext");
146 const wxChar
*wxPanelNameStr
= wxT("panel");
147 const wxChar
*wxRadioBoxNameStr
= wxT("radioBox");
148 const wxChar
*wxRadioButtonNameStr
= wxT("radioButton");
149 const wxChar
*wxBitmapRadioButtonNameStr
= wxT("radioButton");
150 const wxChar
*wxScrollBarNameStr
= wxT("scrollBar");
151 const wxChar
*wxSliderNameStr
= wxT("slider");
152 const wxChar
*wxStaticNameStr
= wxT("static");
153 const wxChar
*wxTextCtrlWindowNameStr
= wxT("textWindow");
154 const wxChar
*wxTextCtrlNameStr
= wxT("text");
155 const wxChar
*wxVirtListBoxNameStr
= wxT("virtListBox");
156 const wxChar
*wxButtonBarNameStr
= wxT("buttonbar");
157 const wxChar
*wxEnhDialogNameStr
= wxT("Shell");
158 const wxChar
*wxToolBarNameStr
= wxT("toolbar");
159 const wxChar
*wxStatusLineNameStr
= wxT("status_line");
160 const wxChar
*wxGetTextFromUserPromptStr
= wxT("Input Text");
161 const wxChar
*wxMessageBoxCaptionStr
= wxT("Message");
162 const wxChar
*wxFileSelectorPromptStr
= wxT("Select a file");
163 const wxChar
*wxFileSelectorDefaultWildcardStr
= wxT("*");
164 const wxChar
*wxInternalErrorStr
= wxT("wxWindows Internal Error");
165 const wxChar
*wxFatalErrorStr
= wxT("wxWindows Fatal Error");
166 const wxChar
*wxDirDialogNameStr
= wxT("wxDirCtrl");
167 const wxChar
*wxDirDialogDefaultFolderStr
= wxT("/");
168 const wxChar
*wxTreeCtrlNameStr
= wxT("wxTreeCtrl");
171 const wxChar
*wxFloatToStringStr
= wxT("%.2f");
172 const wxChar
*wxDoubleToStringStr
= wxT("%.2f");
174 /* Dafaults for wxWindow etc. */
175 const wxSize
wxDefaultSize(-1, -1);
176 const wxPoint
wxDefaultPosition(-1, -1);