1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Various data
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation
19 #include "wx/generic/dcpsg.h"
22 #define _MAXPATHLEN 500
24 // Useful buffer, initialized in CommonInit
25 char *wxBuffer
= NULL
;
28 wxWindowList wxTopLevelWindows
;
30 // List of windows pending deletion
31 wxList wxPendingDelete
;
36 wxBrushList
*wxTheBrushList
= NULL
;
37 wxPenList
*wxThePenList
= NULL
;
38 wxFontList
*wxTheFontList
= NULL
;
39 wxBitmapList
*wxTheBitmapList
= NULL
;
41 wxColourDatabase
*wxTheColourDatabase
= NULL
;
44 wxFont
*wxNORMAL_FONT
;
46 wxFont
*wxITALIC_FONT
;
54 wxPen
*wxTRANSPARENT_PEN
;
55 wxPen
*wxBLACK_DASHED_PEN
;
57 wxPen
*wxMEDIUM_GREY_PEN
;
58 wxPen
*wxLIGHT_GREY_PEN
;
60 wxBrush
*wxBLUE_BRUSH
;
61 wxBrush
*wxGREEN_BRUSH
;
62 wxBrush
*wxWHITE_BRUSH
;
63 wxBrush
*wxBLACK_BRUSH
;
64 wxBrush
*wxTRANSPARENT_BRUSH
;
65 wxBrush
*wxCYAN_BRUSH
;
67 wxBrush
*wxGREY_BRUSH
;
68 wxBrush
*wxMEDIUM_GREY_BRUSH
;
69 wxBrush
*wxLIGHT_GREY_BRUSH
;
77 wxColour
*wxLIGHT_GREY
;
79 wxCursor
*wxSTANDARD_CURSOR
= NULL
;
80 wxCursor
*wxHOURGLASS_CURSOR
= NULL
;
81 wxCursor
*wxCROSS_CURSOR
= NULL
;
84 wxAcceleratorTable wxNullAcceleratorTable
;
85 wxBitmap wxNullBitmap
;
87 wxCursor wxNullCursor
;
90 wxPalette wxNullPalette
;
92 wxColour wxNullColour
;
94 // Default window names
95 const char *wxButtonNameStr
= "button";
96 const char *wxCanvasNameStr
= "canvas";
97 const char *wxCheckBoxNameStr
= "check";
98 const char *wxChoiceNameStr
= "choice";
99 const char *wxComboBoxNameStr
= "comboBox";
100 const char *wxDialogNameStr
= "dialog";
101 const char *wxFrameNameStr
= "frame";
102 const char *wxGaugeNameStr
= "gauge";
103 const char *wxStaticBoxNameStr
= "groupBox";
104 const char *wxListBoxNameStr
= "listBox";
105 const char *wxStaticTextNameStr
= "message";
106 const char *wxStaticBitmapNameStr
= "message";
107 const char *wxMultiTextNameStr
= "multitext";
108 const char *wxPanelNameStr
= "panel";
109 const char *wxRadioBoxNameStr
= "radioBox";
110 const char *wxRadioButtonNameStr
= "radioButton";
111 const char *wxBitmapRadioButtonNameStr
= "radioButton";
112 const char *wxScrollBarNameStr
= "scrollBar";
113 const char *wxSliderNameStr
= "slider";
114 const char *wxStaticNameStr
= "static";
115 const char *wxTextCtrlWindowNameStr
= "textWindow";
116 const char *wxTextCtrlNameStr
= "text";
117 const char *wxVirtListBoxNameStr
= "virtListBox";
118 const char *wxButtonBarNameStr
= "buttonbar";
119 const char *wxEnhDialogNameStr
= "Shell";
120 const char *wxToolBarNameStr
= "toolbar";
121 const char *wxStatusLineNameStr
= "status_line";
122 const char *wxEmptyString
= "";
123 const char *wxGetTextFromUserPromptStr
= "Input Text";
124 const char *wxMessageBoxCaptionStr
= "Message";
125 const char *wxFileSelectorPromptStr
= "Select a file";
126 const char *wxFileSelectorDefaultWildcardStr
= "*.*";
127 const char *wxInternalErrorStr
= "wxWindows Internal Error";
128 const char *wxFatalErrorStr
= "wxWindows Fatal Error";
131 const char *wxFloatToStringStr
= "%.2f";
132 const char *wxDoubleToStringStr
= "%.2f";
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);