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