]> git.saurik.com Git - wxWidgets.git/blob - src/common/datacmn.cpp
Applied patch [ 619386 ] uxtheme.dll support
[wxWidgets.git] / src / common / datacmn.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: common/datacmn.cpp
3 // Purpose: contains definitions of various global wxWindows variables
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 10.04.03 (from src/*/data.cpp files)
7 // RCS-ID: $Id$
8 // Copyright: (c) 1997-2002 wxWindows development team
9 // License: wxWindows license
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 #if wxUSE_GUI
40
41 // Windows List
42 wxWindowList wxTopLevelWindows;
43
44 // List of windows pending deletion
45 wxList WXDLLEXPORT wxPendingDelete;
46
47 int wxPageNumber;
48
49 // GDI Object Lists
50 wxFontList *wxTheFontList = NULL;
51 wxPenList *wxThePenList = NULL;
52 wxBrushList *wxTheBrushList = NULL;
53 wxBitmapList *wxTheBitmapList = NULL;
54 wxColourDatabase *wxTheColourDatabase = NULL;
55
56 // Stock objects
57 wxFont *wxNORMAL_FONT;
58 wxFont *wxSMALL_FONT;
59 wxFont *wxITALIC_FONT;
60 wxFont *wxSWISS_FONT;
61
62 wxPen *wxRED_PEN;
63 wxPen *wxCYAN_PEN;
64 wxPen *wxGREEN_PEN;
65 wxPen *wxBLACK_PEN;
66 wxPen *wxWHITE_PEN;
67 wxPen *wxTRANSPARENT_PEN;
68 wxPen *wxBLACK_DASHED_PEN;
69 wxPen *wxGREY_PEN;
70 wxPen *wxMEDIUM_GREY_PEN;
71 wxPen *wxLIGHT_GREY_PEN;
72
73 wxBrush *wxBLUE_BRUSH;
74 wxBrush *wxGREEN_BRUSH;
75 wxBrush *wxWHITE_BRUSH;
76 wxBrush *wxBLACK_BRUSH;
77 wxBrush *wxTRANSPARENT_BRUSH;
78 wxBrush *wxCYAN_BRUSH;
79 wxBrush *wxRED_BRUSH;
80 wxBrush *wxGREY_BRUSH;
81 wxBrush *wxMEDIUM_GREY_BRUSH;
82 wxBrush *wxLIGHT_GREY_BRUSH;
83
84 wxColour *wxBLACK;
85 wxColour *wxWHITE;
86 wxColour *wxRED;
87 wxColour *wxBLUE;
88 wxColour *wxGREEN;
89 wxColour *wxCYAN;
90 wxColour *wxLIGHT_GREY;
91
92 wxCursor *wxSTANDARD_CURSOR = NULL;
93 wxCursor *wxHOURGLASS_CURSOR = NULL;
94 wxCursor *wxCROSS_CURSOR = NULL;
95
96 // 'Null' objects
97 #if wxUSE_ACCEL
98 wxAcceleratorTable wxNullAcceleratorTable;
99 #endif // wxUSE_ACCEL
100
101 wxBitmap wxNullBitmap;
102 wxIcon wxNullIcon;
103 wxCursor wxNullCursor;
104 wxPen wxNullPen;
105 wxBrush wxNullBrush;
106 #if wxUSE_PALETTE
107 wxPalette wxNullPalette;
108 #endif // wxUSE_PALETTE
109 wxFont wxNullFont;
110 wxColour wxNullColour;
111
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__)
146 wxT("*.*")
147 #else // Unix/Mac
148 wxT("*")
149 #endif
150 ;
151 WXDLLEXPORT_DATA(const wxChar *) wxTreeCtrlNameStr = wxT("treeCtrl");
152 WXDLLEXPORT_DATA(const wxChar *) wxDirDialogNameStr = wxT("wxDirCtrl");
153 WXDLLEXPORT_DATA(const wxChar *) wxDirDialogDefaultFolderStr = wxT("/");
154
155 #if defined(__WXMSW__) || defined(__WXOS2__)
156 WXDLLEXPORT_DATA(const wxChar *) wxUserResourceStr = wxT("TEXT");
157 #endif
158
159
160 const wxSize wxDefaultSize(-1, -1);
161 const wxPoint wxDefaultPosition(-1, -1);
162
163 #endif // wxUSE_GUI