1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: common/datacmn.cpp
3 // Purpose: contains definitions of various global wxWidgets variables
4 // Author: Vadim Zeitlin
6 // Created: 10.04.03 (from src/*/data.cpp files)
8 // Copyright: (c) 1997-2002 wxWidgets development team
9 // License: wxWindows license
10 ///////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
29 #include "wx/treectrl.h"
32 // ============================================================================
34 // ============================================================================
36 // Useful buffer, initialized in wxCommonInit
37 wxChar
*wxBuffer
= NULL
;
40 wxWindowList wxTopLevelWindows
;
42 // List of windows pending deletion
43 wxList WXDLLEXPORT wxPendingDelete
;
48 wxFontList
*wxTheFontList
= NULL
;
49 wxPenList
*wxThePenList
= NULL
;
50 wxBrushList
*wxTheBrushList
= NULL
;
51 wxBitmapList
*wxTheBitmapList
= NULL
;
52 wxColourDatabase
*wxTheColourDatabase
= NULL
;
55 wxFont
*wxNORMAL_FONT
;
57 wxFont
*wxITALIC_FONT
;
65 wxPen
*wxTRANSPARENT_PEN
;
66 wxPen
*wxBLACK_DASHED_PEN
;
68 wxPen
*wxMEDIUM_GREY_PEN
;
69 wxPen
*wxLIGHT_GREY_PEN
;
71 wxBrush
*wxBLUE_BRUSH
;
72 wxBrush
*wxGREEN_BRUSH
;
73 wxBrush
*wxWHITE_BRUSH
;
74 wxBrush
*wxBLACK_BRUSH
;
75 wxBrush
*wxTRANSPARENT_BRUSH
;
76 wxBrush
*wxCYAN_BRUSH
;
78 wxBrush
*wxGREY_BRUSH
;
79 wxBrush
*wxMEDIUM_GREY_BRUSH
;
80 wxBrush
*wxLIGHT_GREY_BRUSH
;
88 wxColour
*wxLIGHT_GREY
;
90 wxCursor
*wxSTANDARD_CURSOR
= NULL
;
91 wxCursor
*wxHOURGLASS_CURSOR
= NULL
;
92 wxCursor
*wxCROSS_CURSOR
= NULL
;
96 wxAcceleratorTable wxNullAcceleratorTable
;
99 wxBitmap wxNullBitmap
;
101 wxCursor wxNullCursor
;
105 wxPalette wxNullPalette
;
106 #endif // wxUSE_PALETTE
108 wxColour wxNullColour
;
110 // Default window names
111 WXDLLEXPORT_DATA(const wxChar
*) wxControlNameStr
= wxT("control");
112 WXDLLEXPORT_DATA(const wxChar
*) wxButtonNameStr
= wxT("button");
113 WXDLLEXPORT_DATA(const wxChar
*) wxButtonBarNameStr
= wxT("buttonbar");
114 WXDLLEXPORT_DATA(const wxChar
*) wxCanvasNameStr
= wxT("canvas");
115 WXDLLEXPORT_DATA(const wxChar
*) wxCheckBoxNameStr
= wxT("check");
116 WXDLLEXPORT_DATA(const wxChar
*) wxChoiceNameStr
= wxT("choice");
117 WXDLLEXPORT_DATA(const wxChar
*) wxComboBoxNameStr
= wxT("comboBox");
118 WXDLLEXPORT_DATA(const wxChar
*) wxDialogNameStr
= wxT("dialog");
119 WXDLLEXPORT_DATA(const wxChar
*) wxFrameNameStr
= wxT("frame");
120 WXDLLEXPORT_DATA(const wxChar
*) wxGaugeNameStr
= wxT("gauge");
121 WXDLLEXPORT_DATA(const wxChar
*) wxStaticBoxNameStr
= wxT("groupBox");
122 WXDLLEXPORT_DATA(const wxChar
*) wxListBoxNameStr
= wxT("listBox");
123 WXDLLEXPORT_DATA(const wxChar
*) wxListCtrlNameStr
= wxT("listCtrl");
124 WXDLLEXPORT_DATA(const wxChar
*) wxStaticTextNameStr
= wxT("staticText");
125 WXDLLEXPORT_DATA(const wxChar
*) wxStaticBitmapNameStr
= wxT("staticBitmap");
126 WXDLLEXPORT_DATA(const wxChar
*) wxMultiTextNameStr
= wxT("multitext");
127 WXDLLEXPORT_DATA(const wxChar
*) wxNotebookNameStr
= wxT("notebook");
128 WXDLLEXPORT_DATA(const wxChar
*) wxPanelNameStr
= wxT("panel");
129 WXDLLEXPORT_DATA(const wxChar
*) wxRadioBoxNameStr
= wxT("radioBox");
130 WXDLLEXPORT_DATA(const wxChar
*) wxRadioButtonNameStr
= wxT("radioButton");
131 WXDLLEXPORT_DATA(const wxChar
*) wxBitmapRadioButtonNameStr
= wxT("radioButton");
132 WXDLLEXPORT_DATA(const wxChar
*) wxScrollBarNameStr
= wxT("scrollBar");
133 WXDLLEXPORT_DATA(const wxChar
*) wxSliderNameStr
= wxT("slider");
134 WXDLLEXPORT_DATA(const wxChar
*) wxStaticNameStr
= wxT("static");
135 WXDLLEXPORT_DATA(const wxChar
*) wxStatusLineNameStr
= wxT("status_line");
136 WXDLLEXPORT_DATA(const wxChar
*) wxTextCtrlWindowNameStr
= wxT("textWindow");
137 WXDLLEXPORT_DATA(const wxChar
*) wxTextCtrlNameStr
= wxT("text");
138 WXDLLEXPORT_DATA(const wxChar
*) wxTreeCtrlNameStr
= wxT("treeCtrl");
139 WXDLLEXPORT_DATA(const wxChar
*) wxEnhDialogNameStr
= wxT("Shell");
140 WXDLLEXPORT_DATA(const wxChar
*) wxToolBarNameStr
= wxT("toolbar");
141 WXDLLEXPORT_DATA(const wxChar
*) wxVirtListBoxNameStr
= wxT("virtListBox");
142 WXDLLEXPORT_DATA(const wxChar
*) wxDataViewCtrlNameStr
= wxT("dataviewCtrl");
145 WXDLLEXPORT_DATA(const wxChar
*) wxGetTextFromUserPromptStr
= wxT("Input Text");
146 WXDLLEXPORT_DATA(const wxChar
*) wxGetPasswordFromUserPromptStr
= wxT("Enter Password");
147 WXDLLEXPORT_DATA(const wxChar
*) wxMessageBoxCaptionStr
= wxT("Message");
148 WXDLLEXPORT_DATA(const wxChar
*) wxFileSelectorPromptStr
= wxT("Select a file");
150 // Other default strings
151 WXDLLEXPORT_DATA(const wxChar
*) wxFileSelectorDefaultWildcardStr
=
152 #if defined(__WXMSW__) || defined(__OS2__)
158 WXDLLEXPORT_DATA(const wxChar
*) wxDirDialogNameStr
= wxT("wxDirCtrl");
159 WXDLLEXPORT_DATA(const wxChar
*) wxDirDialogDefaultFolderStr
= wxT("/");
161 #if defined(__WXMSW__) || defined(__OS2__)
162 WXDLLEXPORT_DATA(const wxChar
*) wxUserResourceStr
= wxT("TEXT");
166 const wxSize
wxDefaultSize(wxDefaultCoord
, wxDefaultCoord
);
167 const wxPoint
wxDefaultPosition(wxDefaultCoord
, wxDefaultCoord
);