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