]>
Commit | Line | Data |
---|---|---|
83df96d6 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" | |
17 | #include "wx/dcps.h" | |
18 | ||
19 | #define _MAXPATHLEN 500 | |
20 | ||
83df96d6 JS |
21 | // Windows List |
22 | wxWindowList wxTopLevelWindows; | |
23 | ||
24 | // List of windows pending deletion | |
25 | wxList wxPendingDelete; | |
26 | ||
27 | int wxPageNumber; | |
28 | ||
29 | // GDI Object Lists | |
30 | wxBrushList *wxTheBrushList = NULL; | |
31 | wxPenList *wxThePenList = NULL; | |
32 | wxFontList *wxTheFontList = NULL; | |
33 | wxBitmapList *wxTheBitmapList = NULL; | |
34 | ||
35 | wxColourDatabase *wxTheColourDatabase = NULL; | |
36 | ||
37 | // Stock objects | |
38 | wxFont *wxNORMAL_FONT; | |
39 | wxFont *wxSMALL_FONT; | |
40 | wxFont *wxITALIC_FONT; | |
41 | wxFont *wxSWISS_FONT; | |
42 | wxPen *wxRED_PEN; | |
43 | ||
44 | wxPen *wxCYAN_PEN; | |
45 | wxPen *wxGREEN_PEN; | |
46 | wxPen *wxBLACK_PEN; | |
47 | wxPen *wxWHITE_PEN; | |
48 | wxPen *wxTRANSPARENT_PEN; | |
49 | wxPen *wxBLACK_DASHED_PEN; | |
50 | wxPen *wxGREY_PEN; | |
51 | wxPen *wxMEDIUM_GREY_PEN; | |
52 | wxPen *wxLIGHT_GREY_PEN; | |
53 | ||
54 | wxBrush *wxBLUE_BRUSH; | |
55 | wxBrush *wxGREEN_BRUSH; | |
56 | wxBrush *wxWHITE_BRUSH; | |
57 | wxBrush *wxBLACK_BRUSH; | |
58 | wxBrush *wxTRANSPARENT_BRUSH; | |
59 | wxBrush *wxCYAN_BRUSH; | |
60 | wxBrush *wxRED_BRUSH; | |
61 | wxBrush *wxGREY_BRUSH; | |
62 | wxBrush *wxMEDIUM_GREY_BRUSH; | |
63 | wxBrush *wxLIGHT_GREY_BRUSH; | |
64 | ||
65 | wxColour *wxBLACK; | |
66 | wxColour *wxWHITE; | |
67 | wxColour *wxRED; | |
68 | wxColour *wxBLUE; | |
69 | wxColour *wxGREEN; | |
70 | wxColour *wxCYAN; | |
71 | wxColour *wxLIGHT_GREY; | |
72 | ||
73 | wxCursor *wxSTANDARD_CURSOR = NULL; | |
74 | wxCursor *wxHOURGLASS_CURSOR = NULL; | |
75 | wxCursor *wxCROSS_CURSOR = NULL; | |
76 | ||
77 | // 'Null' objects | |
78 | wxAcceleratorTable wxNullAcceleratorTable; | |
79 | wxBitmap wxNullBitmap; | |
80 | wxIcon wxNullIcon; | |
81 | wxCursor wxNullCursor; | |
82 | wxPen wxNullPen; | |
83 | wxBrush wxNullBrush; | |
84 | wxPalette wxNullPalette; | |
85 | wxFont wxNullFont; | |
86 | wxColour wxNullColour; | |
87 | ||
88 | // Default window names | |
e88be8c9 | 89 | const char *wxControlNameStr = "control"; |
83df96d6 JS |
90 | const char *wxButtonNameStr = "button"; |
91 | const char *wxCanvasNameStr = "canvas"; | |
92 | const char *wxCheckBoxNameStr = "check"; | |
93 | const char *wxChoiceNameStr = "choice"; | |
94 | const char *wxComboBoxNameStr = "comboBox"; | |
95 | const char *wxDialogNameStr = "dialog"; | |
96 | const char *wxFrameNameStr = "frame"; | |
97 | const char *wxGaugeNameStr = "gauge"; | |
98 | const char *wxStaticBoxNameStr = "groupBox"; | |
99 | const char *wxListBoxNameStr = "listBox"; | |
100 | const char *wxStaticTextNameStr = "message"; | |
101 | const char *wxStaticBitmapNameStr = "message"; | |
102 | const char *wxMultiTextNameStr = "multitext"; | |
103 | const char *wxPanelNameStr = "panel"; | |
104 | const char *wxRadioBoxNameStr = "radioBox"; | |
105 | const char *wxRadioButtonNameStr = "radioButton"; | |
106 | const char *wxBitmapRadioButtonNameStr = "radioButton"; | |
107 | const char *wxScrollBarNameStr = "scrollBar"; | |
108 | const char *wxSliderNameStr = "slider"; | |
109 | const char *wxStaticNameStr = "static"; | |
110 | const char *wxTextCtrlWindowNameStr = "textWindow"; | |
111 | const char *wxTextCtrlNameStr = "text"; | |
112 | const char *wxVirtListBoxNameStr = "virtListBox"; | |
113 | const char *wxButtonBarNameStr = "buttonbar"; | |
114 | const char *wxEnhDialogNameStr = "Shell"; | |
115 | const char *wxToolBarNameStr = "toolbar"; | |
116 | const char *wxStatusLineNameStr = "status_line"; | |
83df96d6 JS |
117 | const char *wxGetTextFromUserPromptStr = "Input Text"; |
118 | const char *wxMessageBoxCaptionStr = "Message"; | |
119 | const char *wxFileSelectorPromptStr = "Select a file"; | |
120 | const char *wxFileSelectorDefaultWildcardStr = "*.*"; | |
83df96d6 JS |
121 | const char *wxDirDialogNameStr = "wxDirCtrl"; |
122 | const char *wxDirDialogDefaultFolderStr = "/"; | |
123 | const wxChar *wxTreeCtrlNameStr = wxT("wxTreeCtrl"); | |
124 | ||
125 | // See wx/utils.h | |
126 | const char *wxFloatToStringStr = "%.2f"; | |
127 | const char *wxDoubleToStringStr = "%.2f"; | |
128 | ||
129 | ||
130 | const wxSize wxDefaultSize(-1, -1); | |
131 | const wxPoint wxDefaultPosition(-1, -1); |