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