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