]>
Commit | Line | Data |
---|---|---|
e9576ca5 SC |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: data.cpp | |
3 | // Purpose: Various data | |
4 | // Author: AUTHOR | |
5 | // Modified by: | |
6 | // Created: ??/??/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) AUTHOR | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifdef __GNUG__ | |
13 | #pragma implementation | |
14 | #endif | |
15 | ||
16 | #include "wx/wx.h" | |
17 | ||
18 | #if wxUSE_POSTSCRIPT | |
169935ad | 19 | #include "wx/generic/dcpsg.h" |
e9576ca5 SC |
20 | #endif |
21 | ||
22 | #define _MAXPATHLEN 500 | |
23 | ||
e9576ca5 | 24 | // Windows List |
519cb848 | 25 | wxWindowList wxTopLevelWindows; |
e9576ca5 SC |
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 | |
3752cadc | 92 | const wxChar *wxControlNameStr = wxT("control"); |
8208e181 SC |
93 | const wxChar *wxButtonNameStr = wxT("button"); |
94 | const wxChar *wxCanvasNameStr = wxT("canvas"); | |
95 | const wxChar *wxCheckBoxNameStr = wxT("check"); | |
96 | const wxChar *wxChoiceNameStr = wxT("choice"); | |
97 | const wxChar *wxComboBoxNameStr = wxT("comboBox"); | |
98 | const wxChar *wxDialogNameStr = wxT("dialog"); | |
99 | const wxChar *wxFrameNameStr = wxT("frame"); | |
100 | const wxChar *wxGaugeNameStr = wxT("gauge"); | |
101 | const wxChar *wxStaticBoxNameStr = wxT("groupBox"); | |
102 | const wxChar *wxListBoxNameStr = wxT("listBox"); | |
2f1ae414 SC |
103 | const wxChar *wxStaticTextNameStr = wxT("statictext"); |
104 | const wxChar *wxStaticBitmapNameStr = wxT("staticbitmap"); | |
8208e181 SC |
105 | const wxChar *wxMultiTextNameStr = wxT("multitext"); |
106 | const wxChar *wxPanelNameStr = wxT("panel"); | |
107 | const wxChar *wxRadioBoxNameStr = wxT("radioBox"); | |
108 | const wxChar *wxRadioButtonNameStr = wxT("radioButton"); | |
109 | const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton"); | |
110 | const wxChar *wxScrollBarNameStr = wxT("scrollBar"); | |
111 | const wxChar *wxSliderNameStr = wxT("slider"); | |
112 | const wxChar *wxStaticNameStr = wxT("static"); | |
113 | const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow"); | |
114 | const wxChar *wxTextCtrlNameStr = wxT("text"); | |
115 | const wxChar *wxVirtListBoxNameStr = wxT("virtListBox"); | |
116 | const wxChar *wxButtonBarNameStr = wxT("buttonbar"); | |
117 | const wxChar *wxEnhDialogNameStr = wxT("Shell"); | |
118 | const wxChar *wxToolBarNameStr = wxT("toolbar"); | |
119 | const wxChar *wxStatusLineNameStr = wxT("status_line"); | |
120 | ||
121 | const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text"); | |
122 | const wxChar *wxMessageBoxCaptionStr = wxT("Message"); | |
123 | const wxChar *wxFileSelectorPromptStr = wxT("Select a file"); | |
124 | const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*.*"); | |
8208e181 SC |
125 | const wxChar *wxTreeCtrlNameStr = wxT("treeCtrl"); |
126 | const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl"); | |
127 | const wxChar *wxDirDialogDefaultFolderStr = wxT("/"); | |
e9576ca5 SC |
128 | |
129 | // See wx/utils.h | |
8208e181 SC |
130 | const wxChar *wxFloatToStringStr = wxT("%.2f"); |
131 | const wxChar *wxDoubleToStringStr = wxT("%.2f"); | |
e9576ca5 | 132 | |
2f1ae414 SC |
133 | #if wxUSE_SHARED_LIBRARY |
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 | #endif | |
144 | ||
e9576ca5 SC |
145 | const wxSize wxDefaultSize(-1, -1); |
146 | const wxPoint wxDefaultPosition(-1, -1); |