]> git.saurik.com Git - wxWidgets.git/blame - src/common/datacmn.cpp
wxComboControl and wxOwnerDrawnComboBox (patch 1479938)
[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;
6a76384f
VZ
51wxColourDatabase *wxTheColourDatabase = NULL;
52
6a76384f
VZ
53// 'Null' objects
54#if wxUSE_ACCEL
55wxAcceleratorTable wxNullAcceleratorTable;
56#endif // wxUSE_ACCEL
57
58wxBitmap wxNullBitmap;
59wxIcon wxNullIcon;
60wxCursor wxNullCursor;
61wxPen wxNullPen;
62wxBrush wxNullBrush;
63#if wxUSE_PALETTE
64wxPalette wxNullPalette;
65#endif // wxUSE_PALETTE
66wxFont wxNullFont;
67wxColour wxNullColour;
68
69// Default window names
63ec432b
MR
70extern WXDLLEXPORT_DATA(const wxChar) wxControlNameStr[] = wxT("control");
71extern WXDLLEXPORT_DATA(const wxChar) wxButtonNameStr[] = wxT("button");
72extern WXDLLEXPORT_DATA(const wxChar) wxButtonBarNameStr[] = wxT("buttonbar");
73extern WXDLLEXPORT_DATA(const wxChar) wxCanvasNameStr[] = wxT("canvas");
74extern WXDLLEXPORT_DATA(const wxChar) wxCheckBoxNameStr[] = wxT("check");
75extern WXDLLEXPORT_DATA(const wxChar) wxChoiceNameStr[] = wxT("choice");
76extern WXDLLEXPORT_DATA(const wxChar) wxComboBoxNameStr[] = wxT("comboBox");
77extern WXDLLEXPORT_DATA(const wxChar) wxDialogNameStr[] = wxT("dialog");
78extern WXDLLEXPORT_DATA(const wxChar) wxFrameNameStr[] = wxT("frame");
79extern WXDLLEXPORT_DATA(const wxChar) wxGaugeNameStr[] = wxT("gauge");
80extern WXDLLEXPORT_DATA(const wxChar) wxStaticBoxNameStr[] = wxT("groupBox");
81extern WXDLLEXPORT_DATA(const wxChar) wxListBoxNameStr[] = wxT("listBox");
82extern WXDLLEXPORT_DATA(const wxChar) wxListCtrlNameStr[] = wxT("listCtrl");
83extern WXDLLEXPORT_DATA(const wxChar) wxStaticTextNameStr[] = wxT("staticText");
84extern WXDLLEXPORT_DATA(const wxChar) wxStaticBitmapNameStr[] = wxT("staticBitmap");
85extern WXDLLEXPORT_DATA(const wxChar) wxMultiTextNameStr[] = wxT("multitext");
86extern WXDLLEXPORT_DATA(const wxChar) wxNotebookNameStr[] = wxT("notebook");
87extern WXDLLEXPORT_DATA(const wxChar) wxPanelNameStr[] = wxT("panel");
88extern WXDLLEXPORT_DATA(const wxChar) wxRadioBoxNameStr[] = wxT("radioBox");
89extern WXDLLEXPORT_DATA(const wxChar) wxRadioButtonNameStr[] = wxT("radioButton");
90extern WXDLLEXPORT_DATA(const wxChar) wxBitmapRadioButtonNameStr[] = wxT("radioButton");
91extern WXDLLEXPORT_DATA(const wxChar) wxScrollBarNameStr[] = wxT("scrollBar");
92extern WXDLLEXPORT_DATA(const wxChar) wxSliderNameStr[] = wxT("slider");
93extern WXDLLEXPORT_DATA(const wxChar) wxStaticNameStr[] = wxT("static");
94extern WXDLLEXPORT_DATA(const wxChar) wxStatusLineNameStr[] = wxT("status_line");
95extern WXDLLEXPORT_DATA(const wxChar) wxTextCtrlWindowNameStr[] = wxT("textWindow");
96extern WXDLLEXPORT_DATA(const wxChar) wxTextCtrlNameStr[] = wxT("text");
97extern WXDLLEXPORT_DATA(const wxChar) wxTreeCtrlNameStr[] = wxT("treeCtrl");
98extern WXDLLEXPORT_DATA(const wxChar) wxEnhDialogNameStr[] = wxT("Shell");
99extern WXDLLEXPORT_DATA(const wxChar) wxToolBarNameStr[] = wxT("toolbar");
100extern WXDLLEXPORT_DATA(const wxChar) wxVirtListBoxNameStr[] = wxT("virtListBox");
101extern WXDLLEXPORT_DATA(const wxChar) wxDataViewCtrlNameStr[] = wxT("dataviewCtrl");
630ad6c6
WS
102
103// Default messages
63ec432b
MR
104extern WXDLLEXPORT_DATA(const wxChar) wxGetTextFromUserPromptStr[] = wxT("Input Text");
105extern WXDLLEXPORT_DATA(const wxChar) wxGetPasswordFromUserPromptStr[] = wxT("Enter Password");
106extern WXDLLEXPORT_DATA(const wxChar) wxMessageBoxCaptionStr[] = wxT("Message");
107extern WXDLLEXPORT_DATA(const wxChar) wxFileSelectorPromptStr[] = wxT("Select a file");
630ad6c6
WS
108
109// Other default strings
63ec432b 110extern WXDLLEXPORT_DATA(const wxChar) wxFileSelectorDefaultWildcardStr[] =
554fdf48 111#if defined(__WXMSW__) || defined(__OS2__)
6a76384f
VZ
112 wxT("*.*")
113#else // Unix/Mac
114 wxT("*")
115#endif
116 ;
63ec432b
MR
117extern WXDLLEXPORT_DATA(const wxChar) wxDirDialogNameStr[] = wxT("wxDirCtrl");
118extern WXDLLEXPORT_DATA(const wxChar) wxDirDialogDefaultFolderStr[] = wxT("/");
6a76384f 119
554fdf48 120#if defined(__WXMSW__) || defined(__OS2__)
6a76384f
VZ
121WXDLLEXPORT_DATA(const wxChar *) wxUserResourceStr = wxT("TEXT");
122#endif
123
124
68379eaf
WS
125const wxSize wxDefaultSize(wxDefaultCoord, wxDefaultCoord);
126const wxPoint wxDefaultPosition(wxDefaultCoord, wxDefaultCoord);
6a76384f 127