1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Various data
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation
19 #define _MAXPATHLEN 500
21 // Useful buffer, initialized in CommonInit
22 char *wxBuffer
= NULL
;
25 wxList wxTopLevelWindows
;
27 // List of windows pending deletion
28 wxList wxPendingDelete
;
31 // List of events pending propagation
32 wxList wxPendingEvents
;
33 wxCriticalSection wxPendingEventsLocker
;
39 wxBrushList
*wxTheBrushList
= NULL
;
40 wxPenList
*wxThePenList
= NULL
;
41 wxFontList
*wxTheFontList
= NULL
;
42 wxBitmapList
*wxTheBitmapList
= NULL
;
44 wxColourDatabase
*wxTheColourDatabase
= NULL
;
47 wxFont
*wxNORMAL_FONT
;
49 wxFont
*wxITALIC_FONT
;
57 wxPen
*wxTRANSPARENT_PEN
;
58 wxPen
*wxBLACK_DASHED_PEN
;
60 wxPen
*wxMEDIUM_GREY_PEN
;
61 wxPen
*wxLIGHT_GREY_PEN
;
63 wxBrush
*wxBLUE_BRUSH
;
64 wxBrush
*wxGREEN_BRUSH
;
65 wxBrush
*wxWHITE_BRUSH
;
66 wxBrush
*wxBLACK_BRUSH
;
67 wxBrush
*wxTRANSPARENT_BRUSH
;
68 wxBrush
*wxCYAN_BRUSH
;
70 wxBrush
*wxGREY_BRUSH
;
71 wxBrush
*wxMEDIUM_GREY_BRUSH
;
72 wxBrush
*wxLIGHT_GREY_BRUSH
;
80 wxColour
*wxLIGHT_GREY
;
82 wxCursor
*wxSTANDARD_CURSOR
= NULL
;
83 wxCursor
*wxHOURGLASS_CURSOR
= NULL
;
84 wxCursor
*wxCROSS_CURSOR
= NULL
;
87 wxAcceleratorTable wxNullAcceleratorTable
;
88 wxBitmap wxNullBitmap
;
90 wxCursor wxNullCursor
;
93 wxPalette wxNullPalette
;
95 wxColour wxNullColour
;
97 // Default window names
98 const char *wxButtonNameStr
= "button";
99 const char *wxCanvasNameStr
= "canvas";
100 const char *wxCheckBoxNameStr
= "check";
101 const char *wxChoiceNameStr
= "choice";
102 const char *wxComboBoxNameStr
= "comboBox";
103 const char *wxDialogNameStr
= "dialog";
104 const char *wxFrameNameStr
= "frame";
105 const char *wxGaugeNameStr
= "gauge";
106 const char *wxStaticBoxNameStr
= "groupBox";
107 const char *wxListBoxNameStr
= "listBox";
108 const char *wxStaticTextNameStr
= "message";
109 const char *wxStaticBitmapNameStr
= "message";
110 const char *wxMultiTextNameStr
= "multitext";
111 const char *wxPanelNameStr
= "panel";
112 const char *wxRadioBoxNameStr
= "radioBox";
113 const char *wxRadioButtonNameStr
= "radioButton";
114 const char *wxBitmapRadioButtonNameStr
= "radioButton";
115 const char *wxScrollBarNameStr
= "scrollBar";
116 const char *wxSliderNameStr
= "slider";
117 const char *wxStaticNameStr
= "static";
118 const char *wxTextCtrlWindowNameStr
= "textWindow";
119 const char *wxTextCtrlNameStr
= "text";
120 const char *wxVirtListBoxNameStr
= "virtListBox";
121 const char *wxButtonBarNameStr
= "buttonbar";
122 const char *wxEnhDialogNameStr
= "Shell";
123 const char *wxToolBarNameStr
= "toolbar";
124 const char *wxStatusLineNameStr
= "status_line";
125 const char *wxEmptyString
= "";
126 const char *wxGetTextFromUserPromptStr
= "Input Text";
127 const char *wxMessageBoxCaptionStr
= "Message";
128 const char *wxFileSelectorPromptStr
= "Select a file";
129 const char *wxFileSelectorDefaultWildcardStr
= "*.*";
130 const char *wxInternalErrorStr
= "wxWindows Internal Error";
131 const char *wxFatalErrorStr
= "wxWindows Fatal Error";
134 const char *wxFloatToStringStr
= "%.2f";
135 const char *wxDoubleToStringStr
= "%.2f";
137 #if wxUSE_SHARED_LIBRARY
138 ///// Event tables (also must be in one, statically-linked file for shared libraries)
140 // This is the base, wxEvtHandler 'bootstrap' code which is expanded manually here
141 const wxEventTable
*wxEvtHandler::GetEventTable() const { return &wxEvtHandler::sm_eventTable
; }
143 const wxEventTable
wxEvtHandler::sm_eventTable
=
144 { NULL
, &wxEvtHandler::sm_eventTableEntries
[0] };
146 const wxEventTableEntry
wxEvtHandler::sm_eventTableEntries
[] = { { 0, 0, 0, NULL
} };
149 const wxSize
wxDefaultSize(-1, -1);
150 const wxPoint
wxDefaultPosition(-1, -1);