1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Various data
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation
19 #include "wx/generic/dcpsg.h"
22 #define _MAXPATHLEN 500
25 wxWindowList 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 wxChar
*wxControlNameStr
= wxT("control");
93 const wxChar
*wxButtonNameStr
= wxT("button");
94 const wxChar
*wxCanvasNameStr
= wxT("canvas");
95 const wxChar
*wxCheckBoxNameStr
= wxT("check");
96 const wxChar
*wxChoiceNameStr
= wxT("choice");
97 const wxChar
*wxComboBoxNameStr
= wxT("comboBox");
98 const wxChar
*wxDialogNameStr
= wxT("dialog");
99 const wxChar
*wxFrameNameStr
= wxT("frame");
100 const wxChar
*wxGaugeNameStr
= wxT("gauge");
101 const wxChar
*wxStaticBoxNameStr
= wxT("groupBox");
102 const wxChar
*wxListBoxNameStr
= wxT("listBox");
103 const wxChar
*wxStaticTextNameStr
= wxT("statictext");
104 const wxChar
*wxStaticBitmapNameStr
= wxT("staticbitmap");
105 const wxChar
*wxMultiTextNameStr
= wxT("multitext");
106 const wxChar
*wxPanelNameStr
= wxT("panel");
107 const wxChar
*wxRadioBoxNameStr
= wxT("radioBox");
108 const wxChar
*wxRadioButtonNameStr
= wxT("radioButton");
109 const wxChar
*wxBitmapRadioButtonNameStr
= wxT("radioButton");
110 const wxChar
*wxScrollBarNameStr
= wxT("scrollBar");
111 const wxChar
*wxSliderNameStr
= wxT("slider");
112 const wxChar
*wxStaticNameStr
= wxT("static");
113 const wxChar
*wxTextCtrlWindowNameStr
= wxT("textWindow");
114 const wxChar
*wxTextCtrlNameStr
= wxT("text");
115 const wxChar
*wxVirtListBoxNameStr
= wxT("virtListBox");
116 const wxChar
*wxButtonBarNameStr
= wxT("buttonbar");
117 const wxChar
*wxEnhDialogNameStr
= wxT("Shell");
118 const wxChar
*wxToolBarNameStr
= wxT("toolbar");
119 const wxChar
*wxStatusLineNameStr
= wxT("status_line");
121 const wxChar
*wxGetTextFromUserPromptStr
= wxT("Input Text");
122 const wxChar
*wxMessageBoxCaptionStr
= wxT("Message");
123 const wxChar
*wxFileSelectorPromptStr
= wxT("Select a file");
124 const wxChar
*wxFileSelectorDefaultWildcardStr
= wxT("*.*");
125 const wxChar
*wxTreeCtrlNameStr
= wxT("treeCtrl");
126 const wxChar
*wxDirDialogNameStr
= wxT("wxDirCtrl");
127 const wxChar
*wxDirDialogDefaultFolderStr
= wxT("/");
130 const wxChar
*wxFloatToStringStr
= wxT("%.2f");
131 const wxChar
*wxDoubleToStringStr
= wxT("%.2f");
133 #if wxUSE_SHARED_LIBRARY
134 ///// Event tables (also must be in one, statically-linked file for shared libraries)
136 // This is the base, wxEvtHandler 'bootstrap' code which is expanded manually here
137 const wxEventTable
*wxEvtHandler::GetEventTable() const { return &wxEvtHandler::sm_eventTable
; }
139 const wxEventTable
wxEvtHandler::sm_eventTable
=
140 { NULL
, &wxEvtHandler::sm_eventTableEntries
[0] };
142 const wxEventTableEntry
wxEvtHandler::sm_eventTableEntries
[] = { { 0, 0, 0, NULL
} };
145 const wxSize
wxDefaultSize(-1, -1);
146 const wxPoint
wxDefaultPosition(-1, -1);