]>
Commit | Line | Data |
---|---|---|
0e320a79 DW |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: data.cpp | |
3 | // Purpose: Various data | |
23e4b7d8 | 4 | // Author: David Webster |
0e320a79 | 5 | // Modified by: |
23e4b7d8 | 6 | // Created: 09/20/99 |
0e320a79 | 7 | // RCS-ID: $Id$ |
23e4b7d8 DW |
8 | // Copyright: (c) David Webster |
9 | // Licence: wxWindows licence | |
0e320a79 DW |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
23e4b7d8 DW |
12 | // For compilers that support precompilation, includes "wx.h". |
13 | #include "wx/wxprec.h" | |
0e320a79 | 14 | |
23e4b7d8 DW |
15 | #ifndef WX_PRECOMP |
16 | #include "wx/wx.h" | |
0e320a79 DW |
17 | #endif |
18 | ||
23e4b7d8 DW |
19 | #include "wx/prntbase.h" |
20 | ||
0e320a79 DW |
21 | #define _MAXPATHLEN 500 |
22 | ||
23e4b7d8 DW |
23 | // Useful buffer, initialized in wxCommonInit |
24 | wxChar *wxBuffer = NULL; | |
0e320a79 DW |
25 | |
26 | // Windows List | |
23e4b7d8 | 27 | wxWindowList wxTopLevelWindows; |
0e320a79 DW |
28 | |
29 | // List of windows pending deletion | |
23e4b7d8 DW |
30 | wxList WXDLLEXPORT wxPendingDelete; |
31 | ||
23e4b7d8 DW |
32 | // Current cursor, in order to hang on to |
33 | // cursor handle when setting the cursor globally | |
34 | wxCursor *g_globalCursor = NULL; | |
35 | ||
36 | // Message Strings for Internationalization | |
37 | char **wx_msg_str = (char**)NULL; | |
38 | ||
0e320a79 DW |
39 | int wxPageNumber; |
40 | ||
41 | // GDI Object Lists | |
42 | wxBrushList *wxTheBrushList = NULL; | |
43 | wxPenList *wxThePenList = NULL; | |
44 | wxFontList *wxTheFontList = NULL; | |
45 | wxBitmapList *wxTheBitmapList = NULL; | |
46 | ||
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 | wxPen *wxRED_PEN; | |
55 | ||
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; | |
44227537 | 99 | wxNativeFontInfo wxNullNativeFontInfo; |
0e320a79 | 100 | |
d0a6b279 | 101 | // |
0e320a79 | 102 | // Default window names |
d0a6b279 DW |
103 | // |
104 | const wxChar* wxButtonNameStr = wxT("button"); | |
105 | const wxChar* wxCanvasNameStr = wxT("canvas"); | |
106 | const wxChar* wxCheckBoxNameStr = wxT("check"); | |
107 | const wxChar* wxChoiceNameStr = wxT("choice"); | |
108 | const wxChar* wxComboBoxNameStr = wxT("comboBox"); | |
109 | const wxChar* wxDialogNameStr = wxT("dialog"); | |
110 | const wxChar* wxFrameNameStr = wxT("frame"); | |
111 | const wxChar* wxGaugeNameStr = wxT("gauge"); | |
112 | const wxChar* wxStaticBoxNameStr = wxT("groupBox"); | |
113 | const wxChar* wxListBoxNameStr = wxT("listBox"); | |
114 | const wxChar* wxStaticTextNameStr = wxT("message"); | |
115 | const wxChar* wxStaticBitmapNameStr = wxT("message"); | |
116 | const wxChar* wxMultiTextNameStr = wxT("multitext"); | |
117 | const wxChar* wxPanelNameStr = wxT("panel"); | |
118 | const wxChar* wxRadioBoxNameStr = wxT("radioBox"); | |
119 | const wxChar* wxRadioButtonNameStr = wxT("radioButton"); | |
120 | const wxChar* wxBitmapRadioButtonNameStr = wxT("radioButton"); | |
121 | const wxChar* wxScrollBarNameStr = wxT("scrollBar"); | |
122 | const wxChar* wxSliderNameStr = wxT("slider"); | |
123 | const wxChar* wxStaticNameStr = wxT("static"); | |
124 | const wxChar* wxTextCtrlWindowNameStr = wxT("textWindow"); | |
125 | const wxChar* wxTextCtrlNameStr = wxT("text"); | |
126 | const wxChar* wxVirtListBoxNameStr = wxT("virtListBox"); | |
127 | const wxChar* wxButtonBarNameStr = wxT("buttonbar"); | |
128 | const wxChar* wxEnhDialogNameStr = wxT("Shell"); | |
129 | const wxChar* wxToolBarNameStr = wxT("toolbar"); | |
130 | const wxChar* wxStatusLineNameStr = wxT("status_line"); | |
131 | const wxChar* wxGetTextFromUserPromptStr = wxT("Input Text"); | |
132 | const wxChar* wxMessageBoxCaptionStr = wxT("Message"); | |
133 | const wxChar* wxFileSelectorPromptStr = wxT("Select a file"); | |
134 | const wxChar* wxFileSelectorDefaultWildcardStr = wxT("*.*"); | |
d0a6b279 DW |
135 | const wxChar* wxTreeCtrlNameStr = wxT("treeCtrl"); |
136 | const wxChar* wxDirDialogNameStr = wxT("wxDirCtrl"); | |
137 | const wxChar* wxDirDialogDefaultFolderStr = wxT("/"); | |
138 | ||
139 | // | |
140 | // Class names | |
141 | // | |
142 | const wxChar* wxFrameClassName = wxT("wxFrameClass"); | |
143 | const wxChar* wxFrameClassNameNoRedraw = wxT("wxFrameClassNR"); | |
144 | const wxChar* wxMDIFrameClassName = wxT("wxMDIFrameClass"); | |
145 | const wxChar* wxMDIFrameClassNameNoRedraw = wxT("wxMDIFrameClassNR"); | |
146 | const wxChar* wxMDIChildFrameClassName = wxT("wxMDIChildFrameClass"); | |
147 | const wxChar* wxMDIChildFrameClassNameNoRedraw = wxT("wxMDIChildFrameClassNR"); | |
148 | const wxChar* wxPanelClassName = wxT("wxPanelClass"); | |
149 | const wxChar* wxPanelClassNameNR = wxT("wxPanelClassNR"); | |
150 | const wxChar* wxCanvasClassName = wxT("wxCanvasClass"); | |
151 | const wxChar* wxCanvasClassNameNR = wxT("wxCanvasClassNR"); | |
0e320a79 DW |
152 | |
153 | // See wx/utils.h | |
223d09f6 KB |
154 | const wxChar *wxFloatToStringStr = wxT("%.2f"); |
155 | const wxChar *wxDoubleToStringStr = wxT("%.2f"); | |
23e4b7d8 | 156 | |
223d09f6 | 157 | const wxChar *wxUserResourceStr = wxT("TEXT"); |
23e4b7d8 | 158 | |
0e320a79 DW |
159 | const wxSize wxDefaultSize(-1, -1); |
160 | const wxPoint wxDefaultPosition(-1, -1); | |
fb46a9a6 | 161 |