1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: common/datacmn.cpp
3 // Purpose: contains definitions of various global wxWidgets variables
4 // Author: Vadim Zeitlin
6 // Created: 10.04.03 (from src/*/data.cpp files)
8 // Copyright: (c) 1997-2002 wxWidgets development team
9 // License: wxWindows license
10 ///////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
29 #include "wx/treectrl.h"
32 // ============================================================================
34 // ============================================================================
36 // Useful buffer, initialized in wxCommonInit
37 wxChar
*wxBuffer
= NULL
;
40 wxWindowList wxTopLevelWindows
;
42 // List of windows pending deletion
43 wxList WXDLLEXPORT wxPendingDelete
;
48 wxFontList
*wxTheFontList
= NULL
;
49 wxPenList
*wxThePenList
= NULL
;
50 wxBrushList
*wxTheBrushList
= NULL
;
51 wxColourDatabase
*wxTheColourDatabase
= NULL
;
55 wxAcceleratorTable wxNullAcceleratorTable
;
58 wxBitmap wxNullBitmap
;
60 wxCursor wxNullCursor
;
64 wxPalette wxNullPalette
;
65 #endif // wxUSE_PALETTE
67 wxColour wxNullColour
;
69 // Default window names
70 extern WXDLLEXPORT_DATA(const wxChar
) wxControlNameStr
[] = wxT("control");
71 extern WXDLLEXPORT_DATA(const wxChar
) wxButtonNameStr
[] = wxT("button");
72 extern WXDLLEXPORT_DATA(const wxChar
) wxButtonBarNameStr
[] = wxT("buttonbar");
73 extern WXDLLEXPORT_DATA(const wxChar
) wxCanvasNameStr
[] = wxT("canvas");
74 extern WXDLLEXPORT_DATA(const wxChar
) wxCheckBoxNameStr
[] = wxT("check");
75 extern WXDLLEXPORT_DATA(const wxChar
) wxChoiceNameStr
[] = wxT("choice");
76 extern WXDLLEXPORT_DATA(const wxChar
) wxComboBoxNameStr
[] = wxT("comboBox");
77 extern WXDLLEXPORT_DATA(const wxChar
) wxDialogNameStr
[] = wxT("dialog");
78 extern WXDLLEXPORT_DATA(const wxChar
) wxFrameNameStr
[] = wxT("frame");
79 extern WXDLLEXPORT_DATA(const wxChar
) wxGaugeNameStr
[] = wxT("gauge");
80 extern WXDLLEXPORT_DATA(const wxChar
) wxStaticBoxNameStr
[] = wxT("groupBox");
81 extern WXDLLEXPORT_DATA(const wxChar
) wxListBoxNameStr
[] = wxT("listBox");
82 extern WXDLLEXPORT_DATA(const wxChar
) wxListCtrlNameStr
[] = wxT("listCtrl");
83 extern WXDLLEXPORT_DATA(const wxChar
) wxStaticTextNameStr
[] = wxT("staticText");
84 extern WXDLLEXPORT_DATA(const wxChar
) wxStaticBitmapNameStr
[] = wxT("staticBitmap");
85 extern WXDLLEXPORT_DATA(const wxChar
) wxMultiTextNameStr
[] = wxT("multitext");
86 extern WXDLLEXPORT_DATA(const wxChar
) wxNotebookNameStr
[] = wxT("notebook");
87 extern WXDLLEXPORT_DATA(const wxChar
) wxPanelNameStr
[] = wxT("panel");
88 extern WXDLLEXPORT_DATA(const wxChar
) wxRadioBoxNameStr
[] = wxT("radioBox");
89 extern WXDLLEXPORT_DATA(const wxChar
) wxRadioButtonNameStr
[] = wxT("radioButton");
90 extern WXDLLEXPORT_DATA(const wxChar
) wxBitmapRadioButtonNameStr
[] = wxT("radioButton");
91 extern WXDLLEXPORT_DATA(const wxChar
) wxScrollBarNameStr
[] = wxT("scrollBar");
92 extern WXDLLEXPORT_DATA(const wxChar
) wxSliderNameStr
[] = wxT("slider");
93 extern WXDLLEXPORT_DATA(const wxChar
) wxStaticNameStr
[] = wxT("static");
94 extern WXDLLEXPORT_DATA(const wxChar
) wxStatusLineNameStr
[] = wxT("status_line");
95 extern WXDLLEXPORT_DATA(const wxChar
) wxTextCtrlWindowNameStr
[] = wxT("textWindow");
96 extern WXDLLEXPORT_DATA(const wxChar
) wxTextCtrlNameStr
[] = wxT("text");
97 extern WXDLLEXPORT_DATA(const wxChar
) wxTreeCtrlNameStr
[] = wxT("treeCtrl");
98 extern WXDLLEXPORT_DATA(const wxChar
) wxEnhDialogNameStr
[] = wxT("Shell");
99 extern WXDLLEXPORT_DATA(const wxChar
) wxToolBarNameStr
[] = wxT("toolbar");
100 extern WXDLLEXPORT_DATA(const wxChar
) wxVirtListBoxNameStr
[] = wxT("virtListBox");
101 extern WXDLLEXPORT_DATA(const wxChar
) wxDataViewCtrlNameStr
[] = wxT("dataviewCtrl");
104 extern WXDLLEXPORT_DATA(const wxChar
) wxGetTextFromUserPromptStr
[] = wxT("Input Text");
105 extern WXDLLEXPORT_DATA(const wxChar
) wxGetPasswordFromUserPromptStr
[] = wxT("Enter Password");
106 extern WXDLLEXPORT_DATA(const wxChar
) wxMessageBoxCaptionStr
[] = wxT("Message");
107 extern WXDLLEXPORT_DATA(const wxChar
) wxFileSelectorPromptStr
[] = wxT("Select a file");
109 // Other default strings
110 extern WXDLLEXPORT_DATA(const wxChar
) wxFileSelectorDefaultWildcardStr
[] =
111 #if defined(__WXMSW__) || defined(__OS2__)
117 extern WXDLLEXPORT_DATA(const wxChar
) wxDirDialogNameStr
[] = wxT("wxDirCtrl");
118 extern WXDLLEXPORT_DATA(const wxChar
) wxDirDialogDefaultFolderStr
[] = wxT("/");
120 #if defined(__WXMSW__) || defined(__OS2__)
121 WXDLLEXPORT_DATA(const wxChar
*) wxUserResourceStr
= wxT("TEXT");
125 const wxSize
wxDefaultSize(wxDefaultCoord
, wxDefaultCoord
);
126 const wxPoint
wxDefaultPosition(wxDefaultCoord
, wxDefaultCoord
);