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
;
33 wxBrushList
*wxTheBrushList
= NULL
;
34 wxPenList
*wxThePenList
= NULL
;
35 wxFontList
*wxTheFontList
= NULL
;
36 wxBitmapList
*wxTheBitmapList
= NULL
;
38 wxColourDatabase
*wxTheColourDatabase
= NULL
;
41 wxFont
*wxNORMAL_FONT
;
43 wxFont
*wxITALIC_FONT
;
51 wxPen
*wxTRANSPARENT_PEN
;
52 wxPen
*wxBLACK_DASHED_PEN
;
54 wxPen
*wxMEDIUM_GREY_PEN
;
55 wxPen
*wxLIGHT_GREY_PEN
;
57 wxBrush
*wxBLUE_BRUSH
;
58 wxBrush
*wxGREEN_BRUSH
;
59 wxBrush
*wxWHITE_BRUSH
;
60 wxBrush
*wxBLACK_BRUSH
;
61 wxBrush
*wxTRANSPARENT_BRUSH
;
62 wxBrush
*wxCYAN_BRUSH
;
64 wxBrush
*wxGREY_BRUSH
;
65 wxBrush
*wxMEDIUM_GREY_BRUSH
;
66 wxBrush
*wxLIGHT_GREY_BRUSH
;
74 wxColour
*wxLIGHT_GREY
;
76 wxCursor
*wxSTANDARD_CURSOR
= NULL
;
77 wxCursor
*wxHOURGLASS_CURSOR
= NULL
;
78 wxCursor
*wxCROSS_CURSOR
= NULL
;
81 wxAcceleratorTable wxNullAcceleratorTable
;
82 wxBitmap wxNullBitmap
;
84 wxCursor wxNullCursor
;
87 wxPalette wxNullPalette
;
89 wxColour wxNullColour
;
91 // Default window names
92 const char *wxButtonNameStr
= "button";
93 const char *wxCanvasNameStr
= "canvas";
94 const char *wxCheckBoxNameStr
= "check";
95 const char *wxChoiceNameStr
= "choice";
96 const char *wxComboBoxNameStr
= "comboBox";
97 const char *wxDialogNameStr
= "dialog";
98 const char *wxFrameNameStr
= "frame";
99 const char *wxGaugeNameStr
= "gauge";
100 const char *wxStaticBoxNameStr
= "groupBox";
101 const char *wxListBoxNameStr
= "listBox";
102 const char *wxStaticTextNameStr
= "message";
103 const char *wxStaticBitmapNameStr
= "message";
104 const char *wxMultiTextNameStr
= "multitext";
105 const char *wxPanelNameStr
= "panel";
106 const char *wxRadioBoxNameStr
= "radioBox";
107 const char *wxRadioButtonNameStr
= "radioButton";
108 const char *wxBitmapRadioButtonNameStr
= "radioButton";
109 const char *wxScrollBarNameStr
= "scrollBar";
110 const char *wxSliderNameStr
= "slider";
111 const char *wxStaticNameStr
= "static";
112 const char *wxTextCtrlWindowNameStr
= "textWindow";
113 const char *wxTextCtrlNameStr
= "text";
114 const char *wxVirtListBoxNameStr
= "virtListBox";
115 const char *wxButtonBarNameStr
= "buttonbar";
116 const char *wxEnhDialogNameStr
= "Shell";
117 const char *wxToolBarNameStr
= "toolbar";
118 const char *wxStatusLineNameStr
= "status_line";
119 const char *wxEmptyString
= "";
120 const char *wxGetTextFromUserPromptStr
= "Input Text";
121 const char *wxMessageBoxCaptionStr
= "Message";
122 const char *wxFileSelectorPromptStr
= "Select a file";
123 const char *wxFileSelectorDefaultWildcardStr
= "*.*";
124 const char *wxInternalErrorStr
= "wxWindows Internal Error";
125 const char *wxFatalErrorStr
= "wxWindows Fatal Error";
128 const char *wxFloatToStringStr
= "%.2f";
129 const char *wxDoubleToStringStr
= "%.2f";
132 wxPrintPaperDatabase
* wxThePrintPaperDatabase
= NULL
;
135 #if wxUSE_SHARED_LIBRARY
136 ///// Event tables (also must be in one, statically-linked file for shared libraries)
138 // This is the base, wxEvtHandler 'bootstrap' code which is expanded manually here
139 const wxEventTable
*wxEvtHandler::GetEventTable() const { return &wxEvtHandler::sm_eventTable
; }
141 const wxEventTable
wxEvtHandler::sm_eventTable
=
142 { NULL
, &wxEvtHandler::sm_eventTableEntries
[0] };
144 const wxEventTableEntry
wxEvtHandler::sm_eventTableEntries
[] = { { 0, 0, 0, NULL
} };
147 const wxSize
wxDefaultSize(-1, -1);
148 const wxPoint
wxDefaultPosition(-1, -1);