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
) wxCheckBoxNameStr
[] = wxT("check");
73 extern WXDLLEXPORT_DATA(const wxChar
) wxChoiceNameStr
[] = wxT("choice");
74 extern WXDLLEXPORT_DATA(const wxChar
) wxComboBoxNameStr
[] = wxT("comboBox");
75 extern WXDLLEXPORT_DATA(const wxChar
) wxDialogNameStr
[] = wxT("dialog");
76 extern WXDLLEXPORT_DATA(const wxChar
) wxFrameNameStr
[] = wxT("frame");
77 extern WXDLLEXPORT_DATA(const wxChar
) wxGaugeNameStr
[] = wxT("gauge");
78 extern WXDLLEXPORT_DATA(const wxChar
) wxStaticBoxNameStr
[] = wxT("groupBox");
79 extern WXDLLEXPORT_DATA(const wxChar
) wxListBoxNameStr
[] = wxT("listBox");
80 extern WXDLLEXPORT_DATA(const wxChar
) wxListCtrlNameStr
[] = wxT("listCtrl");
81 extern WXDLLEXPORT_DATA(const wxChar
) wxStaticTextNameStr
[] = wxT("staticText");
82 extern WXDLLEXPORT_DATA(const wxChar
) wxStaticBitmapNameStr
[] = wxT("staticBitmap");
83 extern WXDLLEXPORT_DATA(const wxChar
) wxNotebookNameStr
[] = wxT("notebook");
84 extern WXDLLEXPORT_DATA(const wxChar
) wxPanelNameStr
[] = wxT("panel");
85 extern WXDLLEXPORT_DATA(const wxChar
) wxRadioBoxNameStr
[] = wxT("radioBox");
86 extern WXDLLEXPORT_DATA(const wxChar
) wxRadioButtonNameStr
[] = wxT("radioButton");
87 extern WXDLLEXPORT_DATA(const wxChar
) wxBitmapRadioButtonNameStr
[] = wxT("radioButton");
88 extern WXDLLEXPORT_DATA(const wxChar
) wxScrollBarNameStr
[] = wxT("scrollBar");
89 extern WXDLLEXPORT_DATA(const wxChar
) wxSliderNameStr
[] = wxT("slider");
90 extern WXDLLEXPORT_DATA(const wxChar
) wxStatusLineNameStr
[] = wxT("status_line");
91 extern WXDLLEXPORT_DATA(const wxChar
) wxTextCtrlNameStr
[] = wxT("text");
92 extern WXDLLEXPORT_DATA(const wxChar
) wxTreeCtrlNameStr
[] = wxT("treeCtrl");
93 extern WXDLLEXPORT_DATA(const wxChar
) wxEnhDialogNameStr
[] = wxT("Shell");
94 extern WXDLLEXPORT_DATA(const wxChar
) wxToolBarNameStr
[] = wxT("toolbar");
95 extern WXDLLEXPORT_DATA(const wxChar
) wxDataViewCtrlNameStr
[] = wxT("dataviewCtrl");
98 extern WXDLLEXPORT_DATA(const wxChar
) wxGetTextFromUserPromptStr
[] = wxT("Input Text");
99 extern WXDLLEXPORT_DATA(const wxChar
) wxGetPasswordFromUserPromptStr
[] = wxT("Enter Password");
100 extern WXDLLEXPORT_DATA(const wxChar
) wxMessageBoxCaptionStr
[] = wxT("Message");
101 extern WXDLLEXPORT_DATA(const wxChar
) wxFileSelectorPromptStr
[] = wxT("Select a file");
103 // Other default strings
104 extern WXDLLEXPORT_DATA(const wxChar
) wxFileSelectorDefaultWildcardStr
[] =
105 #if defined(__WXMSW__) || defined(__OS2__)
111 extern WXDLLEXPORT_DATA(const wxChar
) wxDirDialogNameStr
[] = wxT("wxDirCtrl");
112 extern WXDLLEXPORT_DATA(const wxChar
) wxDirDialogDefaultFolderStr
[] = wxT("/");
114 #if defined(__WXMSW__) || defined(__OS2__)
115 WXDLLEXPORT_DATA(const wxChar
*) wxUserResourceStr
= wxT("TEXT");
119 const wxSize
wxDefaultSize(wxDefaultCoord
, wxDefaultCoord
);
120 const wxPoint
wxDefaultPosition(wxDefaultCoord
, wxDefaultCoord
);