]>
Commit | Line | Data |
---|---|---|
4bb6408c JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: data.cpp | |
3 | // Purpose: Various data | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 17/09/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Julian Smart | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifdef __GNUG__ | |
13 | #pragma implementation | |
14 | #endif | |
15 | ||
16 | #include "wx/wx.h" | |
bf38cbff | 17 | #include "wx/dcps.h" |
4bb6408c JS |
18 | |
19 | #define _MAXPATHLEN 500 | |
20 | ||
21 | // Useful buffer, initialized in CommonInit | |
22 | char *wxBuffer = NULL; | |
23 | ||
24 | // Windows List | |
25 | wxList wxTopLevelWindows; | |
26 | ||
27 | // List of windows pending deletion | |
28 | wxList wxPendingDelete; | |
29 | ||
30 | int wxPageNumber; | |
31 | ||
32 | // GDI Object Lists | |
33 | wxBrushList *wxTheBrushList = NULL; | |
34 | wxPenList *wxThePenList = NULL; | |
35 | wxFontList *wxTheFontList = NULL; | |
36 | wxBitmapList *wxTheBitmapList = NULL; | |
37 | ||
38 | wxColourDatabase *wxTheColourDatabase = NULL; | |
39 | ||
40 | // Stock objects | |
41 | wxFont *wxNORMAL_FONT; | |
42 | wxFont *wxSMALL_FONT; | |
43 | wxFont *wxITALIC_FONT; | |
44 | wxFont *wxSWISS_FONT; | |
45 | wxPen *wxRED_PEN; | |
46 | ||
47 | wxPen *wxCYAN_PEN; | |
48 | wxPen *wxGREEN_PEN; | |
49 | wxPen *wxBLACK_PEN; | |
50 | wxPen *wxWHITE_PEN; | |
51 | wxPen *wxTRANSPARENT_PEN; | |
52 | wxPen *wxBLACK_DASHED_PEN; | |
53 | wxPen *wxGREY_PEN; | |
54 | wxPen *wxMEDIUM_GREY_PEN; | |
55 | wxPen *wxLIGHT_GREY_PEN; | |
56 | ||
57 | wxBrush *wxBLUE_BRUSH; | |
58 | wxBrush *wxGREEN_BRUSH; | |
59 | wxBrush *wxWHITE_BRUSH; | |
60 | wxBrush *wxBLACK_BRUSH; | |
61 | wxBrush *wxTRANSPARENT_BRUSH; | |
62 | wxBrush *wxCYAN_BRUSH; | |
63 | wxBrush *wxRED_BRUSH; | |
64 | wxBrush *wxGREY_BRUSH; | |
65 | wxBrush *wxMEDIUM_GREY_BRUSH; | |
66 | wxBrush *wxLIGHT_GREY_BRUSH; | |
67 | ||
68 | wxColour *wxBLACK; | |
69 | wxColour *wxWHITE; | |
70 | wxColour *wxRED; | |
71 | wxColour *wxBLUE; | |
72 | wxColour *wxGREEN; | |
73 | wxColour *wxCYAN; | |
74 | wxColour *wxLIGHT_GREY; | |
75 | ||
76 | wxCursor *wxSTANDARD_CURSOR = NULL; | |
77 | wxCursor *wxHOURGLASS_CURSOR = NULL; | |
78 | wxCursor *wxCROSS_CURSOR = NULL; | |
79 | ||
80 | // 'Null' objects | |
81 | wxAcceleratorTable wxNullAcceleratorTable; | |
82 | wxBitmap wxNullBitmap; | |
83 | wxIcon wxNullIcon; | |
84 | wxCursor wxNullCursor; | |
85 | wxPen wxNullPen; | |
86 | wxBrush wxNullBrush; | |
87 | wxPalette wxNullPalette; | |
88 | wxFont wxNullFont; | |
89 | wxColour wxNullColour; | |
90 | ||
91 | // Default window names | |
92 | const char *wxButtonNameStr = "button"; | |
93 | const char *wxCanvasNameStr = "canvas"; | |
94 | const char *wxCheckBoxNameStr = "check"; | |
95 | const char *wxChoiceNameStr = "choice"; | |
96 | const char *wxComboBoxNameStr = "comboBox"; | |
97 | const char *wxDialogNameStr = "dialog"; | |
98 | const char *wxFrameNameStr = "frame"; | |
99 | const char *wxGaugeNameStr = "gauge"; | |
100 | const char *wxStaticBoxNameStr = "groupBox"; | |
101 | const char *wxListBoxNameStr = "listBox"; | |
102 | const char *wxStaticTextNameStr = "message"; | |
103 | const char *wxStaticBitmapNameStr = "message"; | |
104 | const char *wxMultiTextNameStr = "multitext"; | |
105 | const char *wxPanelNameStr = "panel"; | |
106 | const char *wxRadioBoxNameStr = "radioBox"; | |
107 | const char *wxRadioButtonNameStr = "radioButton"; | |
108 | const char *wxBitmapRadioButtonNameStr = "radioButton"; | |
109 | const char *wxScrollBarNameStr = "scrollBar"; | |
110 | const char *wxSliderNameStr = "slider"; | |
111 | const char *wxStaticNameStr = "static"; | |
112 | const char *wxTextCtrlWindowNameStr = "textWindow"; | |
113 | const char *wxTextCtrlNameStr = "text"; | |
114 | const char *wxVirtListBoxNameStr = "virtListBox"; | |
115 | const char *wxButtonBarNameStr = "buttonbar"; | |
116 | const char *wxEnhDialogNameStr = "Shell"; | |
117 | const char *wxToolBarNameStr = "toolbar"; | |
118 | const char *wxStatusLineNameStr = "status_line"; | |
119 | const char *wxEmptyString = ""; | |
120 | const char *wxGetTextFromUserPromptStr = "Input Text"; | |
121 | const char *wxMessageBoxCaptionStr = "Message"; | |
122 | const char *wxFileSelectorPromptStr = "Select a file"; | |
123 | const char *wxFileSelectorDefaultWildcardStr = "*.*"; | |
124 | const char *wxInternalErrorStr = "wxWindows Internal Error"; | |
125 | const char *wxFatalErrorStr = "wxWindows Fatal Error"; | |
126 | ||
127 | // See wx/utils.h | |
128 | const char *wxFloatToStringStr = "%.2f"; | |
129 | const char *wxDoubleToStringStr = "%.2f"; | |
130 | ||
47d67540 | 131 | #if wxUSE_POSTSCRIPT |
4bb6408c JS |
132 | wxPrintPaperDatabase* wxThePrintPaperDatabase = NULL; |
133 | #endif | |
134 | ||
47d67540 | 135 | #if wxUSE_SHARED_LIBRARY |
4bb6408c JS |
136 | ///// Event tables (also must be in one, statically-linked file for shared libraries) |
137 | ||
138 | // This is the base, wxEvtHandler 'bootstrap' code which is expanded manually here | |
139 | const wxEventTable *wxEvtHandler::GetEventTable() const { return &wxEvtHandler::sm_eventTable; } | |
140 | ||
141 | const wxEventTable wxEvtHandler::sm_eventTable = | |
142 | { NULL, &wxEvtHandler::sm_eventTableEntries[0] }; | |
143 | ||
144 | const wxEventTableEntry wxEvtHandler::sm_eventTableEntries[] = { { 0, 0, 0, NULL } }; | |
145 | #endif | |
146 | ||
147 | const wxSize wxDefaultSize(-1, -1); | |
148 | const wxPoint wxDefaultPosition(-1, -1); |