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 wxChar
*wxControlNameStr
= wxT("control");
96 const wxChar
*wxButtonNameStr
= wxT("button");
97 const wxChar
*wxCanvasNameStr
= wxT("canvas");
98 const wxChar
*wxCheckBoxNameStr
= wxT("check");
99 const wxChar
*wxChoiceNameStr
= wxT("choice");
100 const wxChar
*wxComboBoxNameStr
= wxT("comboBox");
101 const wxChar
*wxDialogNameStr
= wxT("dialog");
102 const wxChar
*wxFrameNameStr
= wxT("frame");
103 const wxChar
*wxGaugeNameStr
= wxT("gauge");
104 const wxChar
*wxStaticBoxNameStr
= wxT("groupBox");
105 const wxChar
*wxListBoxNameStr
= wxT("listBox");
106 const wxChar
*wxStaticTextNameStr
= wxT("statictext");
107 const wxChar
*wxStaticBitmapNameStr
= wxT("staticbitmap");
108 const wxChar
*wxMultiTextNameStr
= wxT("multitext");
109 const wxChar
*wxPanelNameStr
= wxT("panel");
110 const wxChar
*wxRadioBoxNameStr
= wxT("radioBox");
111 const wxChar
*wxRadioButtonNameStr
= wxT("radioButton");
112 const wxChar
*wxBitmapRadioButtonNameStr
= wxT("radioButton");
113 const wxChar
*wxScrollBarNameStr
= wxT("scrollBar");
114 const wxChar
*wxSliderNameStr
= wxT("slider");
115 const wxChar
*wxStaticNameStr
= wxT("static");
116 const wxChar
*wxTextCtrlWindowNameStr
= wxT("textWindow");
117 const wxChar
*wxTextCtrlNameStr
= wxT("text");
118 const wxChar
*wxVirtListBoxNameStr
= wxT("virtListBox");
119 const wxChar
*wxButtonBarNameStr
= wxT("buttonbar");
120 const wxChar
*wxEnhDialogNameStr
= wxT("Shell");
121 const wxChar
*wxToolBarNameStr
= wxT("toolbar");
122 const wxChar
*wxStatusLineNameStr
= wxT("status_line");
124 const wxChar
*wxGetTextFromUserPromptStr
= wxT("Input Text");
125 const wxChar
*wxMessageBoxCaptionStr
= wxT("Message");
126 const wxChar
*wxFileSelectorPromptStr
= wxT("Select a file");
127 const wxChar
*wxFileSelectorDefaultWildcardStr
= wxT("*.*");
128 const wxChar
*wxInternalErrorStr
= wxT("wxWindows Internal Error");
129 const wxChar
*wxFatalErrorStr
= wxT("wxWindows Fatal Error");
130 const wxChar
*wxTreeCtrlNameStr
= wxT("treeCtrl");
131 const wxChar
*wxDirDialogNameStr
= wxT("wxDirCtrl");
132 const wxChar
*wxDirDialogDefaultFolderStr
= wxT("/");
135 const wxChar
*wxFloatToStringStr
= wxT("%.2f");
136 const wxChar
*wxDoubleToStringStr
= wxT("%.2f");
138 #if wxUSE_SHARED_LIBRARY
139 ///// Event tables (also must be in one, statically-linked file for shared libraries)
141 // This is the base, wxEvtHandler 'bootstrap' code which is expanded manually here
142 const wxEventTable
*wxEvtHandler::GetEventTable() const { return &wxEvtHandler::sm_eventTable
; }
144 const wxEventTable
wxEvtHandler::sm_eventTable
=
145 { NULL
, &wxEvtHandler::sm_eventTableEntries
[0] };
147 const wxEventTableEntry
wxEvtHandler::sm_eventTableEntries
[] = { { 0, 0, 0, NULL
} };
150 const wxSize
wxDefaultSize(-1, -1);
151 const wxPoint
wxDefaultPosition(-1, -1);