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 wxWindowList wxTopLevelWindows
;
27 // List of windows pending deletion
28 wxList wxPendingDelete
;
31 // List of events pending propagation
32 wxList
*wxPendingEvents
= NULL
;
33 wxCriticalSection
*wxPendingEventsLocker
= NULL
;
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 #if 0 // this is defined in string.cpp
126 const char *wxEmptyString
= "";
128 const char *wxGetTextFromUserPromptStr
= "Input Text";
129 const char *wxMessageBoxCaptionStr
= "Message";
130 const char *wxFileSelectorPromptStr
= "Select a file";
131 const char *wxFileSelectorDefaultWildcardStr
= "*.*";
132 const char *wxInternalErrorStr
= "wxWindows Internal Error";
133 const char *wxFatalErrorStr
= "wxWindows Fatal Error";
134 const char *wxDirDialogNameStr
= "wxDirCtrl";
135 const char *wxDirDialogDefaultFolderStr
= "/";
138 const char *wxFloatToStringStr
= "%.2f";
139 const char *wxDoubleToStringStr
= "%.2f";
141 #if wxUSE_SHARED_LIBRARY
142 ///// Event tables (also must be in one, statically-linked file for shared libraries)
144 // This is the base, wxEvtHandler 'bootstrap' code which is expanded manually here
145 const wxEventTable
*wxEvtHandler::GetEventTable() const { return &wxEvtHandler::sm_eventTable
; }
147 const wxEventTable
wxEvtHandler::sm_eventTable
=
148 { NULL
, &wxEvtHandler::sm_eventTableEntries
[0] };
150 const wxEventTableEntry
wxEvtHandler::sm_eventTableEntries
[] = { { 0, 0, 0, NULL
} };
153 const wxSize
wxDefaultSize(-1, -1);
154 const wxPoint
wxDefaultPosition(-1, -1);