1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: common/datacmn.cpp
3 // Purpose: contains definitions of various global wxWindows variables
4 // Author: Vadim Zeitlin
6 // Created: 10.04.03 (from src/*/data.cpp files)
8 // Copyright: (c) 1997-2002 wxWindows 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
;
42 wxWindowList wxTopLevelWindows
;
44 // List of windows pending deletion
45 wxList WXDLLEXPORT wxPendingDelete
;
50 wxFontList
*wxTheFontList
= NULL
;
51 wxPenList
*wxThePenList
= NULL
;
52 wxBrushList
*wxTheBrushList
= NULL
;
53 wxBitmapList
*wxTheBitmapList
= NULL
;
54 wxColourDatabase
*wxTheColourDatabase
= NULL
;
57 wxFont
*wxNORMAL_FONT
;
59 wxFont
*wxITALIC_FONT
;
67 wxPen
*wxTRANSPARENT_PEN
;
68 wxPen
*wxBLACK_DASHED_PEN
;
70 wxPen
*wxMEDIUM_GREY_PEN
;
71 wxPen
*wxLIGHT_GREY_PEN
;
73 wxBrush
*wxBLUE_BRUSH
;
74 wxBrush
*wxGREEN_BRUSH
;
75 wxBrush
*wxWHITE_BRUSH
;
76 wxBrush
*wxBLACK_BRUSH
;
77 wxBrush
*wxTRANSPARENT_BRUSH
;
78 wxBrush
*wxCYAN_BRUSH
;
80 wxBrush
*wxGREY_BRUSH
;
81 wxBrush
*wxMEDIUM_GREY_BRUSH
;
82 wxBrush
*wxLIGHT_GREY_BRUSH
;
90 wxColour
*wxLIGHT_GREY
;
92 wxCursor
*wxSTANDARD_CURSOR
= NULL
;
93 wxCursor
*wxHOURGLASS_CURSOR
= NULL
;
94 wxCursor
*wxCROSS_CURSOR
= NULL
;
98 wxAcceleratorTable wxNullAcceleratorTable
;
101 wxBitmap wxNullBitmap
;
103 wxCursor wxNullCursor
;
107 wxPalette wxNullPalette
;
108 #endif // wxUSE_PALETTE
110 wxColour wxNullColour
;
112 // Default window names
113 WXDLLEXPORT_DATA(const wxChar
*) wxControlNameStr
= wxT("control");
114 WXDLLEXPORT_DATA(const wxChar
*) wxButtonNameStr
= wxT("button");
115 WXDLLEXPORT_DATA(const wxChar
*) wxCanvasNameStr
= wxT("canvas");
116 WXDLLEXPORT_DATA(const wxChar
*) wxCheckBoxNameStr
= wxT("check");
117 WXDLLEXPORT_DATA(const wxChar
*) wxChoiceNameStr
= wxT("choice");
118 WXDLLEXPORT_DATA(const wxChar
*) wxComboBoxNameStr
= wxT("comboBox");
119 WXDLLEXPORT_DATA(const wxChar
*) wxDialogNameStr
= wxT("dialog");
120 WXDLLEXPORT_DATA(const wxChar
*) wxFrameNameStr
= wxT("frame");
121 WXDLLEXPORT_DATA(const wxChar
*) wxGaugeNameStr
= wxT("gauge");
122 WXDLLEXPORT_DATA(const wxChar
*) wxStaticBoxNameStr
= wxT("groupBox");
123 WXDLLEXPORT_DATA(const wxChar
*) wxListBoxNameStr
= wxT("listBox");
124 WXDLLEXPORT_DATA(const wxChar
*) wxStaticTextNameStr
= wxT("message");
125 WXDLLEXPORT_DATA(const wxChar
*) wxStaticBitmapNameStr
= wxT("message");
126 WXDLLEXPORT_DATA(const wxChar
*) wxMultiTextNameStr
= wxT("multitext");
127 WXDLLEXPORT_DATA(const wxChar
*) wxPanelNameStr
= wxT("panel");
128 WXDLLEXPORT_DATA(const wxChar
*) wxRadioBoxNameStr
= wxT("radioBox");
129 WXDLLEXPORT_DATA(const wxChar
*) wxRadioButtonNameStr
= wxT("radioButton");
130 WXDLLEXPORT_DATA(const wxChar
*) wxBitmapRadioButtonNameStr
= wxT("radioButton");
131 WXDLLEXPORT_DATA(const wxChar
*) wxScrollBarNameStr
= wxT("scrollBar");
132 WXDLLEXPORT_DATA(const wxChar
*) wxSliderNameStr
= wxT("slider");
133 WXDLLEXPORT_DATA(const wxChar
*) wxStaticNameStr
= wxT("static");
134 WXDLLEXPORT_DATA(const wxChar
*) wxTextCtrlWindowNameStr
= wxT("textWindow");
135 WXDLLEXPORT_DATA(const wxChar
*) wxTextCtrlNameStr
= wxT("text");
136 WXDLLEXPORT_DATA(const wxChar
*) wxVirtListBoxNameStr
= wxT("virtListBox");
137 WXDLLEXPORT_DATA(const wxChar
*) wxButtonBarNameStr
= wxT("buttonbar");
138 WXDLLEXPORT_DATA(const wxChar
*) wxEnhDialogNameStr
= wxT("Shell");
139 WXDLLEXPORT_DATA(const wxChar
*) wxToolBarNameStr
= wxT("toolbar");
140 WXDLLEXPORT_DATA(const wxChar
*) wxStatusLineNameStr
= wxT("status_line");
141 WXDLLEXPORT_DATA(const wxChar
*) wxGetTextFromUserPromptStr
= wxT("Input Text");
142 WXDLLEXPORT_DATA(const wxChar
*) wxMessageBoxCaptionStr
= wxT("Message");
143 WXDLLEXPORT_DATA(const wxChar
*) wxFileSelectorPromptStr
= wxT("Select a file");
144 WXDLLEXPORT_DATA(const wxChar
*) wxFileSelectorDefaultWildcardStr
=
145 #if defined(__WXMSW__) || defined(__WXOS2__)
151 WXDLLEXPORT_DATA(const wxChar
*) wxTreeCtrlNameStr
= wxT("treeCtrl");
152 WXDLLEXPORT_DATA(const wxChar
*) wxDirDialogNameStr
= wxT("wxDirCtrl");
153 WXDLLEXPORT_DATA(const wxChar
*) wxDirDialogDefaultFolderStr
= wxT("/");
155 #if defined(__WXMSW__) || defined(__WXOS2__)
156 WXDLLEXPORT_DATA(const wxChar
*) wxUserResourceStr
= wxT("TEXT");
160 const wxSize
wxDefaultSize(-1, -1);
161 const wxPoint
wxDefaultPosition(-1, -1);