]>
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 | |
e146b8c8 | 9 | // Licence: wxWindows licence |
4bb6408c JS |
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 | ||
4bb6408c | 21 | // Windows List |
e146b8c8 | 22 | wxWindowList wxTopLevelWindows; |
4bb6408c JS |
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 | |
16990160 JS |
89 | const wxChar *wxButtonNameStr = wxT("button"); |
90 | const wxChar *wxCanvasNameStr = wxT("canvas"); | |
91 | const wxChar *wxCheckBoxNameStr = wxT("check"); | |
92 | const wxChar *wxChoiceNameStr = wxT("choice"); | |
93 | const wxChar *wxComboBoxNameStr = wxT("comboBox"); | |
94 | const wxChar *wxDialogNameStr = wxT("dialog"); | |
95 | const wxChar *wxFrameNameStr = wxT("frame"); | |
96 | const wxChar *wxGaugeNameStr = wxT("gauge"); | |
97 | const wxChar *wxStaticBoxNameStr = wxT("groupBox"); | |
98 | const wxChar *wxListBoxNameStr = wxT("listBox"); | |
99 | const wxChar *wxStaticTextNameStr = wxT("message"); | |
100 | const wxChar *wxStaticBitmapNameStr = wxT("message"); | |
101 | const wxChar *wxMultiTextNameStr = wxT("multitext"); | |
102 | const wxChar *wxPanelNameStr = wxT("panel"); | |
103 | const wxChar *wxRadioBoxNameStr = wxT("radioBox"); | |
104 | const wxChar *wxRadioButtonNameStr = wxT("radioButton"); | |
105 | const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton"); | |
106 | const wxChar *wxScrollBarNameStr = wxT("scrollBar"); | |
107 | const wxChar *wxSliderNameStr = wxT("slider"); | |
108 | const wxChar *wxStaticNameStr = wxT("static"); | |
109 | const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow"); | |
110 | const wxChar *wxTextCtrlNameStr = wxT("text"); | |
111 | const wxChar *wxVirtListBoxNameStr = wxT("virtListBox"); | |
112 | const wxChar *wxButtonBarNameStr = wxT("buttonbar"); | |
113 | const wxChar *wxEnhDialogNameStr = wxT("Shell"); | |
114 | const wxChar *wxToolBarNameStr = wxT("toolbar"); | |
115 | const wxChar *wxStatusLineNameStr = wxT("status_line"); | |
116 | ||
117 | const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text"); | |
118 | const wxChar *wxMessageBoxCaptionStr = wxT("Message"); | |
119 | const wxChar *wxFileSelectorPromptStr = wxT("Select a file"); | |
120 | const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*.*"); | |
36cc3968 | 121 | const wxChar *wxTreeCtrlNameStr = wxT("wxTreeCtrl"); |
16990160 JS |
122 | const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl"); |
123 | const wxChar *wxDirDialogDefaultFolderStr = wxT("/"); | |
4bb6408c JS |
124 | |
125 | // See wx/utils.h | |
16990160 JS |
126 | const wxChar *wxFloatToStringStr = wxT("%.2f"); |
127 | const wxChar *wxDoubleToStringStr = wxT("%.2f"); | |
4bb6408c | 128 | |
4bb6408c JS |
129 | |
130 | const wxSize wxDefaultSize(-1, -1); | |
131 | const wxPoint wxDefaultPosition(-1, -1); |