1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Various data
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
19 #include "wx/prntbase.h"
21 #define _MAXPATHLEN 500
23 // Useful buffer, initialized in wxCommonInit
24 wxChar
*wxBuffer
= NULL
;
27 wxWindowList wxTopLevelWindows
;
29 // List of windows pending deletion
30 wxList WXDLLEXPORT wxPendingDelete
;
32 // Current cursor, in order to hang on to
33 // cursor handle when setting the cursor globally
34 wxCursor
*g_globalCursor
= NULL
;
36 // Message Strings for Internationalization
37 char **wx_msg_str
= (char**)NULL
;
39 // Custom OS version, as optionally placed in wx.ini/.wxrc
40 // Currently this can be Win95, Windows, Win32s, WinNT.
41 // For some systems, you can't tell until run-time what services you
42 // have. See wxGetOsVersion, which uses this string if present.
43 char *wxOsVersion
= NULL
;
48 wxBrushList
*wxTheBrushList
= NULL
;
49 wxPenList
*wxThePenList
= NULL
;
50 wxFontList
*wxTheFontList
= NULL
;
51 wxBitmapList
*wxTheBitmapList
= NULL
;
53 wxColourDatabase
*wxTheColourDatabase
= NULL
;
56 wxFont
*wxNORMAL_FONT
;
58 wxFont
*wxITALIC_FONT
;
66 wxPen
*wxTRANSPARENT_PEN
;
67 wxPen
*wxBLACK_DASHED_PEN
;
69 wxPen
*wxMEDIUM_GREY_PEN
;
70 wxPen
*wxLIGHT_GREY_PEN
;
72 wxBrush
*wxBLUE_BRUSH
;
73 wxBrush
*wxGREEN_BRUSH
;
74 wxBrush
*wxWHITE_BRUSH
;
75 wxBrush
*wxBLACK_BRUSH
;
76 wxBrush
*wxTRANSPARENT_BRUSH
;
77 wxBrush
*wxCYAN_BRUSH
;
79 wxBrush
*wxGREY_BRUSH
;
80 wxBrush
*wxMEDIUM_GREY_BRUSH
;
81 wxBrush
*wxLIGHT_GREY_BRUSH
;
89 wxColour
*wxLIGHT_GREY
;
91 wxCursor
*wxSTANDARD_CURSOR
= NULL
;
92 wxCursor
*wxHOURGLASS_CURSOR
= NULL
;
93 wxCursor
*wxCROSS_CURSOR
= NULL
;
96 wxAcceleratorTable wxNullAcceleratorTable
;
97 wxBitmap wxNullBitmap
;
99 wxCursor wxNullCursor
;
102 wxPalette wxNullPalette
;
104 wxColour wxNullColour
;
106 // Default window names
107 const wxChar
*wxButtonNameStr
= wxT("button");
108 const wxChar
*wxCanvasNameStr
= wxT("canvas");
109 const wxChar
*wxCheckBoxNameStr
= wxT("check");
110 const wxChar
*wxChoiceNameStr
= wxT("choice");
111 const wxChar
*wxComboBoxNameStr
= wxT("comboBox");
112 const wxChar
*wxDialogNameStr
= wxT("dialog");
113 const wxChar
*wxFrameNameStr
= wxT("frame");
114 const wxChar
*wxGaugeNameStr
= wxT("gauge");
115 const wxChar
*wxStaticBoxNameStr
= wxT("groupBox");
116 const wxChar
*wxListBoxNameStr
= wxT("listBox");
117 const wxChar
*wxStaticTextNameStr
= wxT("message");
118 const wxChar
*wxStaticBitmapNameStr
= wxT("message");
119 const wxChar
*wxMultiTextNameStr
= wxT("multitext");
120 const wxChar
*wxPanelNameStr
= wxT("panel");
121 const wxChar
*wxRadioBoxNameStr
= wxT("radioBox");
122 const wxChar
*wxRadioButtonNameStr
= wxT("radioButton");
123 const wxChar
*wxBitmapRadioButtonNameStr
= wxT("radioButton");
124 const wxChar
*wxScrollBarNameStr
= wxT("scrollBar");
125 const wxChar
*wxSliderNameStr
= wxT("slider");
126 const wxChar
*wxStaticNameStr
= wxT("static");
127 const wxChar
*wxTextCtrlWindowNameStr
= wxT("textWindow");
128 const wxChar
*wxTextCtrlNameStr
= wxT("text");
129 const wxChar
*wxVirtListBoxNameStr
= wxT("virtListBox");
130 const wxChar
*wxButtonBarNameStr
= wxT("buttonbar");
131 const wxChar
*wxEnhDialogNameStr
= wxT("Shell");
132 const wxChar
*wxToolBarNameStr
= wxT("toolbar");
133 const wxChar
*wxStatusLineNameStr
= wxT("status_line");
134 const wxChar
*wxGetTextFromUserPromptStr
= wxT("Input Text");
135 const wxChar
*wxMessageBoxCaptionStr
= wxT("Message");
136 const wxChar
*wxFileSelectorPromptStr
= wxT("Select a file");
137 const wxChar
*wxFileSelectorDefaultWildcardStr
= wxT("*.*");
138 const wxChar
*wxInternalErrorStr
= wxT("wxWindows Internal Error");
139 const wxChar
*wxFatalErrorStr
= wxT("wxWindows Fatal Error");
140 const wxChar
*wxTreeCtrlNameStr
= wxT("treeCtrl");
141 const wxChar
*wxDirDialogNameStr
= wxT("wxDirCtrl");
142 const wxChar
*wxDirDialogDefaultFolderStr
= wxT("/");
145 const wxChar
*wxFloatToStringStr
= wxT("%.2f");
146 const wxChar
*wxDoubleToStringStr
= wxT("%.2f");
148 const wxChar
*wxUserResourceStr
= wxT("TEXT");
150 const wxSize
wxDefaultSize(-1, -1);
151 const wxPoint
wxDefaultPosition(-1, -1);