]> git.saurik.com Git - wxWidgets.git/blame - src/common/datacmn.cpp
another fix
[wxWidgets.git] / src / common / datacmn.cpp
CommitLineData
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
37wxChar *wxBuffer = NULL;
38
39// Windows List
40wxWindowList wxTopLevelWindows;
41
42// List of windows pending deletion
43wxList WXDLLEXPORT wxPendingDelete;
44
45int wxPageNumber;
46
47// GDI Object Lists
48wxFontList *wxTheFontList = NULL;
49wxPenList *wxThePenList = NULL;
50wxBrushList *wxTheBrushList = NULL;
51wxBitmapList *wxTheBitmapList = NULL;
52wxColourDatabase *wxTheColourDatabase = NULL;
53
54// Stock objects
55wxFont *wxNORMAL_FONT;
56wxFont *wxSMALL_FONT;
57wxFont *wxITALIC_FONT;
58wxFont *wxSWISS_FONT;
59
60wxPen *wxRED_PEN;
61wxPen *wxCYAN_PEN;
62wxPen *wxGREEN_PEN;
63wxPen *wxBLACK_PEN;
64wxPen *wxWHITE_PEN;
65wxPen *wxTRANSPARENT_PEN;
66wxPen *wxBLACK_DASHED_PEN;
67wxPen *wxGREY_PEN;
68wxPen *wxMEDIUM_GREY_PEN;
69wxPen *wxLIGHT_GREY_PEN;
70
71wxBrush *wxBLUE_BRUSH;
72wxBrush *wxGREEN_BRUSH;
73wxBrush *wxWHITE_BRUSH;
74wxBrush *wxBLACK_BRUSH;
75wxBrush *wxTRANSPARENT_BRUSH;
76wxBrush *wxCYAN_BRUSH;
77wxBrush *wxRED_BRUSH;
78wxBrush *wxGREY_BRUSH;
79wxBrush *wxMEDIUM_GREY_BRUSH;
80wxBrush *wxLIGHT_GREY_BRUSH;
81
82wxColour *wxBLACK;
83wxColour *wxWHITE;
84wxColour *wxRED;
85wxColour *wxBLUE;
86wxColour *wxGREEN;
87wxColour *wxCYAN;
88wxColour *wxLIGHT_GREY;
89
90wxCursor *wxSTANDARD_CURSOR = NULL;
91wxCursor *wxHOURGLASS_CURSOR = NULL;
92wxCursor *wxCROSS_CURSOR = NULL;
93
94// 'Null' objects
95#if wxUSE_ACCEL
96wxAcceleratorTable wxNullAcceleratorTable;
97#endif // wxUSE_ACCEL
98
99wxBitmap wxNullBitmap;
100wxIcon wxNullIcon;
101wxCursor wxNullCursor;
102wxPen wxNullPen;
103wxBrush wxNullBrush;
104#if wxUSE_PALETTE
105wxPalette wxNullPalette;
106#endif // wxUSE_PALETTE
107wxFont wxNullFont;
108wxColour wxNullColour;
109
110// Default window names
111WXDLLEXPORT_DATA(const wxChar *) wxControlNameStr = wxT("control");
112WXDLLEXPORT_DATA(const wxChar *) wxButtonNameStr = wxT("button");
113WXDLLEXPORT_DATA(const wxChar *) wxCanvasNameStr = wxT("canvas");
114WXDLLEXPORT_DATA(const wxChar *) wxCheckBoxNameStr = wxT("check");
115WXDLLEXPORT_DATA(const wxChar *) wxChoiceNameStr = wxT("choice");
116WXDLLEXPORT_DATA(const wxChar *) wxComboBoxNameStr = wxT("comboBox");
117WXDLLEXPORT_DATA(const wxChar *) wxDialogNameStr = wxT("dialog");
118WXDLLEXPORT_DATA(const wxChar *) wxFrameNameStr = wxT("frame");
119WXDLLEXPORT_DATA(const wxChar *) wxGaugeNameStr = wxT("gauge");
120WXDLLEXPORT_DATA(const wxChar *) wxStaticBoxNameStr = wxT("groupBox");
121WXDLLEXPORT_DATA(const wxChar *) wxListBoxNameStr = wxT("listBox");
122WXDLLEXPORT_DATA(const wxChar *) wxStaticTextNameStr = wxT("message");
123WXDLLEXPORT_DATA(const wxChar *) wxStaticBitmapNameStr = wxT("message");
124WXDLLEXPORT_DATA(const wxChar *) wxMultiTextNameStr = wxT("multitext");
125WXDLLEXPORT_DATA(const wxChar *) wxPanelNameStr = wxT("panel");
126WXDLLEXPORT_DATA(const wxChar *) wxRadioBoxNameStr = wxT("radioBox");
127WXDLLEXPORT_DATA(const wxChar *) wxRadioButtonNameStr = wxT("radioButton");
128WXDLLEXPORT_DATA(const wxChar *) wxBitmapRadioButtonNameStr = wxT("radioButton");
129WXDLLEXPORT_DATA(const wxChar *) wxScrollBarNameStr = wxT("scrollBar");
130WXDLLEXPORT_DATA(const wxChar *) wxSliderNameStr = wxT("slider");
131WXDLLEXPORT_DATA(const wxChar *) wxStaticNameStr = wxT("static");
132WXDLLEXPORT_DATA(const wxChar *) wxTextCtrlWindowNameStr = wxT("textWindow");
133WXDLLEXPORT_DATA(const wxChar *) wxTextCtrlNameStr = wxT("text");
134WXDLLEXPORT_DATA(const wxChar *) wxVirtListBoxNameStr = wxT("virtListBox");
135WXDLLEXPORT_DATA(const wxChar *) wxButtonBarNameStr = wxT("buttonbar");
136WXDLLEXPORT_DATA(const wxChar *) wxEnhDialogNameStr = wxT("Shell");
137WXDLLEXPORT_DATA(const wxChar *) wxToolBarNameStr = wxT("toolbar");
138WXDLLEXPORT_DATA(const wxChar *) wxStatusLineNameStr = wxT("status_line");
139WXDLLEXPORT_DATA(const wxChar *) wxGetTextFromUserPromptStr = wxT("Input Text");
140WXDLLEXPORT_DATA(const wxChar *) wxMessageBoxCaptionStr = wxT("Message");
141WXDLLEXPORT_DATA(const wxChar *) wxFileSelectorPromptStr = wxT("Select a file");
142WXDLLEXPORT_DATA(const wxChar *) wxFileSelectorDefaultWildcardStr =
143#if defined(__WXMSW__) || defined(__WXOS2__)
144 wxT("*.*")
145#else // Unix/Mac
146 wxT("*")
147#endif
148 ;
149WXDLLEXPORT_DATA(const wxChar *) wxTreeCtrlNameStr = wxT("treeCtrl");
150WXDLLEXPORT_DATA(const wxChar *) wxDirDialogNameStr = wxT("wxDirCtrl");
151WXDLLEXPORT_DATA(const wxChar *) wxDirDialogDefaultFolderStr = wxT("/");
152
153#if defined(__WXMSW__) || defined(__WXOS2__)
154WXDLLEXPORT_DATA(const wxChar *) wxUserResourceStr = wxT("TEXT");
155#endif
156
157
158const wxSize wxDefaultSize(-1, -1);
159const wxPoint wxDefaultPosition(-1, -1);
160