]>
Commit | Line | Data |
---|---|---|
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 | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifdef __GNUG__ | |
13 | #pragma implementation "data.h" | |
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 | ||
27 | #include "wx/prntbase.h" | |
28 | ||
29 | #define _MAXPATHLEN 500 | |
30 | ||
31 | // Useful buffer, initialized in wxCommonInit | |
32 | wxChar *wxBuffer = NULL; | |
33 | ||
34 | // Windows List | |
35 | wxWindowList wxTopLevelWindows; | |
36 | ||
37 | // List of windows pending deletion | |
38 | wxList WXDLLEXPORT wxPendingDelete; | |
39 | ||
40 | int wxPageNumber; | |
41 | ||
42 | // GDI Object Lists | |
43 | wxFontList *wxTheFontList = NULL; | |
44 | wxPenList *wxThePenList = NULL; | |
45 | wxBrushList *wxTheBrushList = NULL; | |
46 | wxBitmapList *wxTheBitmapList = NULL; | |
47 | wxColourDatabase *wxTheColourDatabase = NULL; | |
48 | ||
49 | // Stock objects | |
50 | wxFont *wxNORMAL_FONT; | |
51 | wxFont *wxSMALL_FONT; | |
52 | wxFont *wxITALIC_FONT; | |
53 | wxFont *wxSWISS_FONT; | |
54 | ||
55 | wxPen *wxRED_PEN; | |
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 | |
90 | wxAcceleratorTable wxNullAcceleratorTable; | |
91 | wxBitmap wxNullBitmap; | |
92 | wxIcon wxNullIcon; | |
93 | wxCursor wxNullCursor; | |
94 | wxPen wxNullPen; | |
95 | wxBrush wxNullBrush; | |
96 | wxPalette wxNullPalette; | |
97 | wxFont wxNullFont; | |
98 | wxColour wxNullColour; | |
99 | ||
100 | // Default window names | |
101 | const wxChar *wxControlNameStr = wxT("control"); | |
102 | const wxChar *wxButtonNameStr = wxT("button"); | |
103 | const wxChar *wxCanvasNameStr = wxT("canvas"); | |
104 | const wxChar *wxCheckBoxNameStr = wxT("check"); | |
105 | const wxChar *wxChoiceNameStr = wxT("choice"); | |
106 | const wxChar *wxComboBoxNameStr = wxT("comboBox"); | |
107 | const wxChar *wxDialogNameStr = wxT("dialog"); | |
108 | const wxChar *wxFrameNameStr = wxT("frame"); | |
109 | const wxChar *wxGaugeNameStr = wxT("gauge"); | |
110 | const wxChar *wxStaticBoxNameStr = wxT("groupBox"); | |
111 | const wxChar *wxListBoxNameStr = wxT("listBox"); | |
112 | const wxChar *wxStaticTextNameStr = wxT("message"); | |
113 | const wxChar *wxStaticBitmapNameStr = wxT("message"); | |
114 | const wxChar *wxMultiTextNameStr = wxT("multitext"); | |
115 | const wxChar *wxPanelNameStr = wxT("panel"); | |
116 | const wxChar *wxRadioBoxNameStr = wxT("radioBox"); | |
117 | const wxChar *wxRadioButtonNameStr = wxT("radioButton"); | |
118 | const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton"); | |
119 | const wxChar *wxScrollBarNameStr = wxT("scrollBar"); | |
120 | const wxChar *wxSliderNameStr = wxT("slider"); | |
121 | const wxChar *wxStaticNameStr = wxT("static"); | |
122 | const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow"); | |
123 | const wxChar *wxTextCtrlNameStr = wxT("text"); | |
124 | const wxChar *wxVirtListBoxNameStr = wxT("virtListBox"); | |
125 | const wxChar *wxButtonBarNameStr = wxT("buttonbar"); | |
126 | const wxChar *wxEnhDialogNameStr = wxT("Shell"); | |
127 | const wxChar *wxToolBarNameStr = wxT("toolbar"); | |
128 | const wxChar *wxStatusLineNameStr = wxT("status_line"); | |
129 | const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text"); | |
130 | const wxChar *wxMessageBoxCaptionStr = wxT("Message"); | |
131 | const wxChar *wxFileSelectorPromptStr = wxT("Select a file"); | |
132 | const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*.*"); | |
133 | const wxChar *wxInternalErrorStr = wxT("wxWindows Internal Error"); | |
134 | const wxChar *wxFatalErrorStr = wxT("wxWindows Fatal Error"); | |
135 | const wxChar *wxTreeCtrlNameStr = wxT("treeCtrl"); | |
136 | const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl"); | |
137 | const wxChar *wxDirDialogDefaultFolderStr = wxT("/"); | |
138 | ||
139 | // See wx/utils.h | |
140 | const wxChar *wxFloatToStringStr = wxT("%.2f"); | |
141 | const wxChar *wxDoubleToStringStr = wxT("%.2f"); | |
142 | ||
143 | #ifdef __WXMSW__ | |
144 | const wxChar *wxUserResourceStr = wxT("TEXT"); | |
145 | #endif | |
146 | ||
147 | ||
148 | const wxSize wxDefaultSize(-1, -1); | |
149 | const wxPoint wxDefaultPosition(-1, -1); |