]> git.saurik.com Git - wxWidgets.git/blob - src/common/datacmn.cpp
removed TTN_NEEDTEXT handlers, we don't use tooltips on demand
[wxWidgets.git] / src / common / datacmn.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: common/datacmn.cpp
3 // Purpose: contains definitions of various global wxWidgets 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 wxWidgets 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
37 wxChar *wxBuffer = NULL;
38
39 // Windows List
40 wxWindowList wxTopLevelWindows;
41
42 // List of windows pending deletion
43 wxList WXDLLEXPORT wxPendingDelete;
44
45 int wxPageNumber;
46
47 // GDI Object Lists
48 wxFontList *wxTheFontList = NULL;
49 wxPenList *wxThePenList = NULL;
50 wxBrushList *wxTheBrushList = NULL;
51 wxColourDatabase *wxTheColourDatabase = NULL;
52
53 // 'Null' objects
54 #if wxUSE_ACCEL
55 wxAcceleratorTable wxNullAcceleratorTable;
56 #endif // wxUSE_ACCEL
57
58 wxBitmap wxNullBitmap;
59 wxIcon wxNullIcon;
60 wxCursor wxNullCursor;
61 wxPen wxNullPen;
62 wxBrush wxNullBrush;
63 #if wxUSE_PALETTE
64 wxPalette wxNullPalette;
65 #endif // wxUSE_PALETTE
66 wxFont wxNullFont;
67 wxColour wxNullColour;
68
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");
102
103 // Default messages
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");
108
109 // Other default strings
110 extern WXDLLEXPORT_DATA(const wxChar) wxFileSelectorDefaultWildcardStr[] =
111 #if defined(__WXMSW__) || defined(__OS2__)
112 wxT("*.*")
113 #else // Unix/Mac
114 wxT("*")
115 #endif
116 ;
117 extern WXDLLEXPORT_DATA(const wxChar) wxDirDialogNameStr[] = wxT("wxDirCtrl");
118 extern WXDLLEXPORT_DATA(const wxChar) wxDirDialogDefaultFolderStr[] = wxT("/");
119
120 #if defined(__WXMSW__) || defined(__OS2__)
121 WXDLLEXPORT_DATA(const wxChar *) wxUserResourceStr = wxT("TEXT");
122 #endif
123
124
125 const wxSize wxDefaultSize(wxDefaultCoord, wxDefaultCoord);
126 const wxPoint wxDefaultPosition(wxDefaultCoord, wxDefaultCoord);
127