1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Various data
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "data.h"
16 // For compilers that support precompilation, includes "wx.h".
17 #include "wx/wxprec.h"
27 #include "wx/prntbase.h"
29 #define _MAXPATHLEN 500
31 // Useful buffer, initialized in wxCommonInit
32 wxChar
*wxBuffer
= NULL
;
35 wxWindowList wxTopLevelWindows
;
37 // List of windows pending deletion
38 wxList WXDLLEXPORT wxPendingDelete
;
43 wxFontList
*wxTheFontList
= NULL
;
44 wxPenList
*wxThePenList
= NULL
;
45 wxBrushList
*wxTheBrushList
= NULL
;
46 wxBitmapList
*wxTheBitmapList
= NULL
;
47 wxColourDatabase
*wxTheColourDatabase
= NULL
;
50 wxFont
*wxNORMAL_FONT
;
52 wxFont
*wxITALIC_FONT
;
60 wxPen
*wxTRANSPARENT_PEN
;
61 wxPen
*wxBLACK_DASHED_PEN
;
63 wxPen
*wxMEDIUM_GREY_PEN
;
64 wxPen
*wxLIGHT_GREY_PEN
;
66 wxBrush
*wxBLUE_BRUSH
;
67 wxBrush
*wxGREEN_BRUSH
;
68 wxBrush
*wxWHITE_BRUSH
;
69 wxBrush
*wxBLACK_BRUSH
;
70 wxBrush
*wxTRANSPARENT_BRUSH
;
71 wxBrush
*wxCYAN_BRUSH
;
73 wxBrush
*wxGREY_BRUSH
;
74 wxBrush
*wxMEDIUM_GREY_BRUSH
;
75 wxBrush
*wxLIGHT_GREY_BRUSH
;
83 wxColour
*wxLIGHT_GREY
;
85 wxCursor
*wxSTANDARD_CURSOR
= NULL
;
86 wxCursor
*wxHOURGLASS_CURSOR
= NULL
;
87 wxCursor
*wxCROSS_CURSOR
= NULL
;
90 wxAcceleratorTable wxNullAcceleratorTable
;
91 wxBitmap wxNullBitmap
;
93 wxCursor wxNullCursor
;
96 wxPalette wxNullPalette
;
98 wxColour wxNullColour
;
99 wxNativeFontInfo wxNullNativeFontInfo
;
101 // Default window names
102 const wxChar
*wxControlNameStr
= wxT("control");
103 const wxChar
*wxButtonNameStr
= wxT("button");
104 const wxChar
*wxCanvasNameStr
= wxT("canvas");
105 const wxChar
*wxCheckBoxNameStr
= wxT("check");
106 const wxChar
*wxChoiceNameStr
= wxT("choice");
107 const wxChar
*wxComboBoxNameStr
= wxT("comboBox");
108 const wxChar
*wxDialogNameStr
= wxT("dialog");
109 const wxChar
*wxFrameNameStr
= wxT("frame");
110 const wxChar
*wxGaugeNameStr
= wxT("gauge");
111 const wxChar
*wxStaticBoxNameStr
= wxT("groupBox");
112 const wxChar
*wxListBoxNameStr
= wxT("listBox");
113 const wxChar
*wxStaticTextNameStr
= wxT("message");
114 const wxChar
*wxStaticBitmapNameStr
= wxT("message");
115 const wxChar
*wxMultiTextNameStr
= wxT("multitext");
116 const wxChar
*wxPanelNameStr
= wxT("panel");
117 const wxChar
*wxRadioBoxNameStr
= wxT("radioBox");
118 const wxChar
*wxRadioButtonNameStr
= wxT("radioButton");
119 const wxChar
*wxBitmapRadioButtonNameStr
= wxT("radioButton");
120 const wxChar
*wxScrollBarNameStr
= wxT("scrollBar");
121 const wxChar
*wxSliderNameStr
= wxT("slider");
122 const wxChar
*wxStaticNameStr
= wxT("static");
123 const wxChar
*wxTextCtrlWindowNameStr
= wxT("textWindow");
124 const wxChar
*wxTextCtrlNameStr
= wxT("text");
125 const wxChar
*wxVirtListBoxNameStr
= wxT("virtListBox");
126 const wxChar
*wxButtonBarNameStr
= wxT("buttonbar");
127 const wxChar
*wxEnhDialogNameStr
= wxT("Shell");
128 const wxChar
*wxToolBarNameStr
= wxT("toolbar");
129 const wxChar
*wxStatusLineNameStr
= wxT("status_line");
130 const wxChar
*wxGetTextFromUserPromptStr
= wxT("Input Text");
131 const wxChar
*wxMessageBoxCaptionStr
= wxT("Message");
132 const wxChar
*wxFileSelectorPromptStr
= wxT("Select a file");
133 const wxChar
*wxFileSelectorDefaultWildcardStr
= wxT("*.*");
134 const wxChar
*wxInternalErrorStr
= wxT("wxWindows Internal Error");
135 const wxChar
*wxFatalErrorStr
= wxT("wxWindows Fatal Error");
136 const wxChar
*wxTreeCtrlNameStr
= wxT("treeCtrl");
137 const wxChar
*wxDirDialogNameStr
= wxT("wxDirCtrl");
138 const wxChar
*wxDirDialogDefaultFolderStr
= wxT("/");
141 const wxChar
*wxFloatToStringStr
= wxT("%.2f");
142 const wxChar
*wxDoubleToStringStr
= wxT("%.2f");
145 const wxChar
*wxUserResourceStr
= wxT("TEXT");
149 const wxSize
wxDefaultSize(-1, -1);
150 const wxPoint
wxDefaultPosition(-1, -1);