]>
Commit | Line | Data |
---|---|---|
2bda0e17 KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: data.cpp | |
3 | // Purpose: Various data | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Julian Smart and Markus Holzem | |
e146b8c8 | 9 | // Licence: wxWindows licence |
2bda0e17 KB |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifdef __GNUG__ | |
a3b46648 | 13 | #pragma implementation "data.h" |
2bda0e17 KB |
14 | #endif |
15 | ||
16 | // For compilers that support precompilation, includes "wx.h". | |
17 | #include "wx/wxprec.h" | |
18 | ||
19 | #ifdef __BORLANDC__ | |
20 | #pragma hdrstop | |
21 | #endif | |
22 | ||
23 | #ifndef WX_PRECOMP | |
24 | #include "wx/wx.h" | |
25 | #endif | |
26 | ||
2a47d3c1 JS |
27 | #include "wx/prntbase.h" |
28 | ||
2bda0e17 KB |
29 | #define _MAXPATHLEN 500 |
30 | ||
31 | // Useful buffer, initialized in wxCommonInit | |
837e5743 | 32 | wxChar *wxBuffer = NULL; |
2bda0e17 KB |
33 | |
34 | // Windows List | |
e146b8c8 | 35 | wxWindowList wxTopLevelWindows; |
2bda0e17 KB |
36 | |
37 | // List of windows pending deletion | |
cde9f08e | 38 | wxList WXDLLEXPORT wxPendingDelete; |
2bda0e17 | 39 | |
2bda0e17 KB |
40 | int wxPageNumber; |
41 | ||
42 | // GDI Object Lists | |
2bda0e17 | 43 | wxFontList *wxTheFontList = NULL; |
f6bcfd97 BP |
44 | wxPenList *wxThePenList = NULL; |
45 | wxBrushList *wxTheBrushList = NULL; | |
46 | wxBitmapList *wxTheBitmapList = NULL; | |
2bda0e17 KB |
47 | wxColourDatabase *wxTheColourDatabase = NULL; |
48 | ||
49 | // Stock objects | |
50 | wxFont *wxNORMAL_FONT; | |
51 | wxFont *wxSMALL_FONT; | |
52 | wxFont *wxITALIC_FONT; | |
53 | wxFont *wxSWISS_FONT; | |
2bda0e17 | 54 | |
f6bcfd97 | 55 | wxPen *wxRED_PEN; |
2bda0e17 KB |
56 | wxPen *wxCYAN_PEN; |
57 | wxPen *wxGREEN_PEN; | |
58 | wxPen *wxBLACK_PEN; | |
59 | wxPen *wxWHITE_PEN; | |
60 | wxPen *wxTRANSPARENT_PEN; | |
61 | wxPen *wxBLACK_DASHED_PEN; | |
62 | wxPen *wxGREY_PEN; | |
63 | wxPen *wxMEDIUM_GREY_PEN; | |
64 | wxPen *wxLIGHT_GREY_PEN; | |
65 | ||
66 | wxBrush *wxBLUE_BRUSH; | |
67 | wxBrush *wxGREEN_BRUSH; | |
68 | wxBrush *wxWHITE_BRUSH; | |
69 | wxBrush *wxBLACK_BRUSH; | |
70 | wxBrush *wxTRANSPARENT_BRUSH; | |
71 | wxBrush *wxCYAN_BRUSH; | |
72 | wxBrush *wxRED_BRUSH; | |
73 | wxBrush *wxGREY_BRUSH; | |
74 | wxBrush *wxMEDIUM_GREY_BRUSH; | |
75 | wxBrush *wxLIGHT_GREY_BRUSH; | |
76 | ||
77 | wxColour *wxBLACK; | |
78 | wxColour *wxWHITE; | |
79 | wxColour *wxRED; | |
80 | wxColour *wxBLUE; | |
81 | wxColour *wxGREEN; | |
82 | wxColour *wxCYAN; | |
83 | wxColour *wxLIGHT_GREY; | |
84 | ||
85 | wxCursor *wxSTANDARD_CURSOR = NULL; | |
86 | wxCursor *wxHOURGLASS_CURSOR = NULL; | |
87 | wxCursor *wxCROSS_CURSOR = NULL; | |
88 | ||
89 | // 'Null' objects | |
1e6feb95 | 90 | #if wxUSE_ACCEL |
57a7b7c1 | 91 | wxAcceleratorTable wxNullAcceleratorTable; |
1e6feb95 VZ |
92 | #endif // wxUSE_ACCEL |
93 | ||
f6bcfd97 BP |
94 | wxBitmap wxNullBitmap; |
95 | wxIcon wxNullIcon; | |
96 | wxCursor wxNullCursor; | |
97 | wxPen wxNullPen; | |
98 | wxBrush wxNullBrush; | |
2bda0e17 | 99 | wxPalette wxNullPalette; |
f6bcfd97 BP |
100 | wxFont wxNullFont; |
101 | wxColour wxNullColour; | |
2bda0e17 KB |
102 | |
103 | // Default window names | |
8d772832 | 104 | const wxChar *wxControlNameStr = wxT("control"); |
223d09f6 KB |
105 | const wxChar *wxButtonNameStr = wxT("button"); |
106 | const wxChar *wxCanvasNameStr = wxT("canvas"); | |
107 | const wxChar *wxCheckBoxNameStr = wxT("check"); | |
108 | const wxChar *wxChoiceNameStr = wxT("choice"); | |
109 | const wxChar *wxComboBoxNameStr = wxT("comboBox"); | |
110 | const wxChar *wxDialogNameStr = wxT("dialog"); | |
111 | const wxChar *wxFrameNameStr = wxT("frame"); | |
112 | const wxChar *wxGaugeNameStr = wxT("gauge"); | |
113 | const wxChar *wxStaticBoxNameStr = wxT("groupBox"); | |
114 | const wxChar *wxListBoxNameStr = wxT("listBox"); | |
115 | const wxChar *wxStaticTextNameStr = wxT("message"); | |
116 | const wxChar *wxStaticBitmapNameStr = wxT("message"); | |
117 | const wxChar *wxMultiTextNameStr = wxT("multitext"); | |
118 | const wxChar *wxPanelNameStr = wxT("panel"); | |
119 | const wxChar *wxRadioBoxNameStr = wxT("radioBox"); | |
120 | const wxChar *wxRadioButtonNameStr = wxT("radioButton"); | |
121 | const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton"); | |
122 | const wxChar *wxScrollBarNameStr = wxT("scrollBar"); | |
123 | const wxChar *wxSliderNameStr = wxT("slider"); | |
124 | const wxChar *wxStaticNameStr = wxT("static"); | |
125 | const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow"); | |
126 | const wxChar *wxTextCtrlNameStr = wxT("text"); | |
127 | const wxChar *wxVirtListBoxNameStr = wxT("virtListBox"); | |
128 | const wxChar *wxButtonBarNameStr = wxT("buttonbar"); | |
129 | const wxChar *wxEnhDialogNameStr = wxT("Shell"); | |
130 | const wxChar *wxToolBarNameStr = wxT("toolbar"); | |
131 | const wxChar *wxStatusLineNameStr = wxT("status_line"); | |
132 | const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text"); | |
133 | const wxChar *wxMessageBoxCaptionStr = wxT("Message"); | |
134 | const wxChar *wxFileSelectorPromptStr = wxT("Select a file"); | |
135 | const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*.*"); | |
136 | const wxChar *wxInternalErrorStr = wxT("wxWindows Internal Error"); | |
137 | const wxChar *wxFatalErrorStr = wxT("wxWindows Fatal Error"); | |
138 | const wxChar *wxTreeCtrlNameStr = wxT("treeCtrl"); | |
139 | const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl"); | |
140 | const wxChar *wxDirDialogDefaultFolderStr = wxT("/"); | |
2bda0e17 KB |
141 | |
142 | // See wx/utils.h | |
223d09f6 KB |
143 | const wxChar *wxFloatToStringStr = wxT("%.2f"); |
144 | const wxChar *wxDoubleToStringStr = wxT("%.2f"); | |
2bda0e17 | 145 | |
2049ba38 | 146 | #ifdef __WXMSW__ |
223d09f6 | 147 | const wxChar *wxUserResourceStr = wxT("TEXT"); |
2bda0e17 KB |
148 | #endif |
149 | ||
2bda0e17 KB |
150 | |
151 | const wxSize wxDefaultSize(-1, -1); | |
152 | const wxPoint wxDefaultPosition(-1, -1); |