]>
Commit | Line | Data |
---|---|---|
6a76384f VZ |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: common/datacmn.cpp | |
77ffb593 | 3 | // Purpose: contains definitions of various global wxWidgets variables |
6a76384f VZ |
4 | // Author: Vadim Zeitlin |
5 | // Modified by: | |
6 | // Created: 10.04.03 (from src/*/data.cpp files) | |
7 | // RCS-ID: $Id$ | |
77ffb593 | 8 | // Copyright: (c) 1997-2002 wxWidgets development team |
0a53b9b8 | 9 | // License: wxWindows license |
6a76384f VZ |
10 | /////////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | // ============================================================================ | |
13 | // declarations | |
14 | // ============================================================================ | |
15 | ||
16 | // ---------------------------------------------------------------------------- | |
17 | // headers | |
18 | // ---------------------------------------------------------------------------- | |
19 | ||
20 | // For compilers that support precompilation, includes "wx.h". | |
21 | #include "wx/wxprec.h" | |
22 | ||
23 | #ifdef __BORLANDC__ | |
24 | #pragma hdrstop | |
25 | #endif | |
26 | ||
27 | #ifndef WX_PRECOMP | |
28 | #include "wx/wx.h" | |
29 | #include "wx/treectrl.h" | |
30 | #endif // WX_PRECOMP | |
31 | ||
32 | // ============================================================================ | |
33 | // implementation | |
34 | // ============================================================================ | |
35 | ||
36 | // Useful buffer, initialized in wxCommonInit | |
37 | wxChar *wxBuffer = NULL; | |
38 | ||
39 | // Windows List | |
40 | wxWindowList wxTopLevelWindows; | |
41 | ||
42 | // List of windows pending deletion | |
43 | wxList WXDLLEXPORT wxPendingDelete; | |
44 | ||
45 | int wxPageNumber; | |
46 | ||
47 | // GDI Object Lists | |
48 | wxFontList *wxTheFontList = NULL; | |
49 | wxPenList *wxThePenList = NULL; | |
50 | wxBrushList *wxTheBrushList = NULL; | |
51 | wxBitmapList *wxTheBitmapList = NULL; | |
52 | wxColourDatabase *wxTheColourDatabase = NULL; | |
53 | ||
54 | // Stock objects | |
55 | wxFont *wxNORMAL_FONT; | |
56 | wxFont *wxSMALL_FONT; | |
57 | wxFont *wxITALIC_FONT; | |
58 | wxFont *wxSWISS_FONT; | |
59 | ||
60 | wxPen *wxRED_PEN; | |
61 | wxPen *wxCYAN_PEN; | |
62 | wxPen *wxGREEN_PEN; | |
63 | wxPen *wxBLACK_PEN; | |
64 | wxPen *wxWHITE_PEN; | |
65 | wxPen *wxTRANSPARENT_PEN; | |
66 | wxPen *wxBLACK_DASHED_PEN; | |
67 | wxPen *wxGREY_PEN; | |
68 | wxPen *wxMEDIUM_GREY_PEN; | |
69 | wxPen *wxLIGHT_GREY_PEN; | |
70 | ||
71 | wxBrush *wxBLUE_BRUSH; | |
72 | wxBrush *wxGREEN_BRUSH; | |
73 | wxBrush *wxWHITE_BRUSH; | |
74 | wxBrush *wxBLACK_BRUSH; | |
75 | wxBrush *wxTRANSPARENT_BRUSH; | |
76 | wxBrush *wxCYAN_BRUSH; | |
77 | wxBrush *wxRED_BRUSH; | |
78 | wxBrush *wxGREY_BRUSH; | |
79 | wxBrush *wxMEDIUM_GREY_BRUSH; | |
80 | wxBrush *wxLIGHT_GREY_BRUSH; | |
81 | ||
82 | wxColour *wxBLACK; | |
83 | wxColour *wxWHITE; | |
84 | wxColour *wxRED; | |
85 | wxColour *wxBLUE; | |
86 | wxColour *wxGREEN; | |
87 | wxColour *wxCYAN; | |
88 | wxColour *wxLIGHT_GREY; | |
89 | ||
90 | wxCursor *wxSTANDARD_CURSOR = NULL; | |
91 | wxCursor *wxHOURGLASS_CURSOR = NULL; | |
92 | wxCursor *wxCROSS_CURSOR = NULL; | |
93 | ||
94 | // 'Null' objects | |
95 | #if wxUSE_ACCEL | |
96 | wxAcceleratorTable wxNullAcceleratorTable; | |
97 | #endif // wxUSE_ACCEL | |
98 | ||
99 | wxBitmap wxNullBitmap; | |
100 | wxIcon wxNullIcon; | |
101 | wxCursor wxNullCursor; | |
102 | wxPen wxNullPen; | |
103 | wxBrush wxNullBrush; | |
104 | #if wxUSE_PALETTE | |
105 | wxPalette wxNullPalette; | |
106 | #endif // wxUSE_PALETTE | |
107 | wxFont wxNullFont; | |
108 | wxColour wxNullColour; | |
109 | ||
110 | // Default window names | |
63ec432b MR |
111 | extern WXDLLEXPORT_DATA(const wxChar) wxControlNameStr[] = wxT("control"); |
112 | extern WXDLLEXPORT_DATA(const wxChar) wxButtonNameStr[] = wxT("button"); | |
113 | extern WXDLLEXPORT_DATA(const wxChar) wxButtonBarNameStr[] = wxT("buttonbar"); | |
114 | extern WXDLLEXPORT_DATA(const wxChar) wxCanvasNameStr[] = wxT("canvas"); | |
115 | extern WXDLLEXPORT_DATA(const wxChar) wxCheckBoxNameStr[] = wxT("check"); | |
116 | extern WXDLLEXPORT_DATA(const wxChar) wxChoiceNameStr[] = wxT("choice"); | |
117 | extern WXDLLEXPORT_DATA(const wxChar) wxComboBoxNameStr[] = wxT("comboBox"); | |
118 | extern WXDLLEXPORT_DATA(const wxChar) wxDialogNameStr[] = wxT("dialog"); | |
119 | extern WXDLLEXPORT_DATA(const wxChar) wxFrameNameStr[] = wxT("frame"); | |
120 | extern WXDLLEXPORT_DATA(const wxChar) wxGaugeNameStr[] = wxT("gauge"); | |
121 | extern WXDLLEXPORT_DATA(const wxChar) wxStaticBoxNameStr[] = wxT("groupBox"); | |
122 | extern WXDLLEXPORT_DATA(const wxChar) wxListBoxNameStr[] = wxT("listBox"); | |
123 | extern WXDLLEXPORT_DATA(const wxChar) wxListCtrlNameStr[] = wxT("listCtrl"); | |
124 | extern WXDLLEXPORT_DATA(const wxChar) wxStaticTextNameStr[] = wxT("staticText"); | |
125 | extern WXDLLEXPORT_DATA(const wxChar) wxStaticBitmapNameStr[] = wxT("staticBitmap"); | |
126 | extern WXDLLEXPORT_DATA(const wxChar) wxMultiTextNameStr[] = wxT("multitext"); | |
127 | extern WXDLLEXPORT_DATA(const wxChar) wxNotebookNameStr[] = wxT("notebook"); | |
128 | extern WXDLLEXPORT_DATA(const wxChar) wxPanelNameStr[] = wxT("panel"); | |
129 | extern WXDLLEXPORT_DATA(const wxChar) wxRadioBoxNameStr[] = wxT("radioBox"); | |
130 | extern WXDLLEXPORT_DATA(const wxChar) wxRadioButtonNameStr[] = wxT("radioButton"); | |
131 | extern WXDLLEXPORT_DATA(const wxChar) wxBitmapRadioButtonNameStr[] = wxT("radioButton"); | |
132 | extern WXDLLEXPORT_DATA(const wxChar) wxScrollBarNameStr[] = wxT("scrollBar"); | |
133 | extern WXDLLEXPORT_DATA(const wxChar) wxSliderNameStr[] = wxT("slider"); | |
134 | extern WXDLLEXPORT_DATA(const wxChar) wxStaticNameStr[] = wxT("static"); | |
135 | extern WXDLLEXPORT_DATA(const wxChar) wxStatusLineNameStr[] = wxT("status_line"); | |
136 | extern WXDLLEXPORT_DATA(const wxChar) wxTextCtrlWindowNameStr[] = wxT("textWindow"); | |
137 | extern WXDLLEXPORT_DATA(const wxChar) wxTextCtrlNameStr[] = wxT("text"); | |
138 | extern WXDLLEXPORT_DATA(const wxChar) wxTreeCtrlNameStr[] = wxT("treeCtrl"); | |
139 | extern WXDLLEXPORT_DATA(const wxChar) wxEnhDialogNameStr[] = wxT("Shell"); | |
140 | extern WXDLLEXPORT_DATA(const wxChar) wxToolBarNameStr[] = wxT("toolbar"); | |
141 | extern WXDLLEXPORT_DATA(const wxChar) wxVirtListBoxNameStr[] = wxT("virtListBox"); | |
142 | extern WXDLLEXPORT_DATA(const wxChar) wxDataViewCtrlNameStr[] = wxT("dataviewCtrl"); | |
630ad6c6 WS |
143 | |
144 | // Default messages | |
63ec432b MR |
145 | extern WXDLLEXPORT_DATA(const wxChar) wxGetTextFromUserPromptStr[] = wxT("Input Text"); |
146 | extern WXDLLEXPORT_DATA(const wxChar) wxGetPasswordFromUserPromptStr[] = wxT("Enter Password"); | |
147 | extern WXDLLEXPORT_DATA(const wxChar) wxMessageBoxCaptionStr[] = wxT("Message"); | |
148 | extern WXDLLEXPORT_DATA(const wxChar) wxFileSelectorPromptStr[] = wxT("Select a file"); | |
630ad6c6 WS |
149 | |
150 | // Other default strings | |
63ec432b | 151 | extern WXDLLEXPORT_DATA(const wxChar) wxFileSelectorDefaultWildcardStr[] = |
554fdf48 | 152 | #if defined(__WXMSW__) || defined(__OS2__) |
6a76384f VZ |
153 | wxT("*.*") |
154 | #else // Unix/Mac | |
155 | wxT("*") | |
156 | #endif | |
157 | ; | |
63ec432b MR |
158 | extern WXDLLEXPORT_DATA(const wxChar) wxDirDialogNameStr[] = wxT("wxDirCtrl"); |
159 | extern WXDLLEXPORT_DATA(const wxChar) wxDirDialogDefaultFolderStr[] = wxT("/"); | |
6a76384f | 160 | |
554fdf48 | 161 | #if defined(__WXMSW__) || defined(__OS2__) |
6a76384f VZ |
162 | WXDLLEXPORT_DATA(const wxChar *) wxUserResourceStr = wxT("TEXT"); |
163 | #endif | |
164 | ||
165 | ||
68379eaf WS |
166 | const wxSize wxDefaultSize(wxDefaultCoord, wxDefaultCoord); |
167 | const wxPoint wxDefaultPosition(wxDefaultCoord, wxDefaultCoord); | |
6a76384f | 168 |