]> git.saurik.com Git - wxWidgets.git/blob - src/msw/data.cpp
1. corrections for compilation of the wxBase apps with wxApp
[wxWidgets.git] / src / msw / data.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: data.cpp
3 // Purpose: Various data
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma implementation "data.h"
14 #endif
15
16 // For compilers that support precompilation, includes "wx.h".
17 #include "wx/wxprec.h"
18
19 #ifdef __BORLANDC__
20 #pragma hdrstop
21 #endif
22
23 #ifndef WX_PRECOMP
24 #include "wx/wx.h"
25 #endif
26
27 #include "wx/prntbase.h"
28
29 #define _MAXPATHLEN 500
30
31 // Useful buffer, initialized in wxCommonInit
32 wxChar *wxBuffer = NULL;
33
34 // Windows List
35 wxWindowList wxTopLevelWindows;
36
37 // List of windows pending deletion
38 wxList WXDLLEXPORT wxPendingDelete;
39
40 // Current cursor, in order to hang on to
41 // cursor handle when setting the cursor globally
42 wxCursor *g_globalCursor = NULL;
43
44 // Message Strings for Internationalization
45 char **wx_msg_str = (char**)NULL;
46
47 // Custom OS version, as optionally placed in wx.ini/.wxrc
48 // Currently this can be Win95, Windows, Win32s, WinNT.
49 // For some systems, you can't tell until run-time what services you
50 // have. See wxGetOsVersion, which uses this string if present.
51 char *wxOsVersion = NULL;
52
53 int wxPageNumber;
54
55 // GDI Object Lists
56 wxBrushList *wxTheBrushList = NULL;
57 wxPenList *wxThePenList = NULL;
58 wxFontList *wxTheFontList = NULL;
59 wxBitmapList *wxTheBitmapList = NULL;
60
61 wxColourDatabase *wxTheColourDatabase = NULL;
62
63 // Stock objects
64 wxFont *wxNORMAL_FONT;
65 wxFont *wxSMALL_FONT;
66 wxFont *wxITALIC_FONT;
67 wxFont *wxSWISS_FONT;
68 wxPen *wxRED_PEN;
69
70 wxPen *wxCYAN_PEN;
71 wxPen *wxGREEN_PEN;
72 wxPen *wxBLACK_PEN;
73 wxPen *wxWHITE_PEN;
74 wxPen *wxTRANSPARENT_PEN;
75 wxPen *wxBLACK_DASHED_PEN;
76 wxPen *wxGREY_PEN;
77 wxPen *wxMEDIUM_GREY_PEN;
78 wxPen *wxLIGHT_GREY_PEN;
79
80 wxBrush *wxBLUE_BRUSH;
81 wxBrush *wxGREEN_BRUSH;
82 wxBrush *wxWHITE_BRUSH;
83 wxBrush *wxBLACK_BRUSH;
84 wxBrush *wxTRANSPARENT_BRUSH;
85 wxBrush *wxCYAN_BRUSH;
86 wxBrush *wxRED_BRUSH;
87 wxBrush *wxGREY_BRUSH;
88 wxBrush *wxMEDIUM_GREY_BRUSH;
89 wxBrush *wxLIGHT_GREY_BRUSH;
90
91 wxColour *wxBLACK;
92 wxColour *wxWHITE;
93 wxColour *wxRED;
94 wxColour *wxBLUE;
95 wxColour *wxGREEN;
96 wxColour *wxCYAN;
97 wxColour *wxLIGHT_GREY;
98
99 wxCursor *wxSTANDARD_CURSOR = NULL;
100 wxCursor *wxHOURGLASS_CURSOR = NULL;
101 wxCursor *wxCROSS_CURSOR = NULL;
102
103 // 'Null' objects
104 wxAcceleratorTable wxNullAcceleratorTable;
105 wxBitmap wxNullBitmap;
106 wxIcon wxNullIcon;
107 wxCursor wxNullCursor;
108 wxPen wxNullPen;
109 wxBrush wxNullBrush;
110 wxPalette wxNullPalette;
111 wxFont wxNullFont;
112 wxColour wxNullColour;
113
114 // Default window names
115 const wxChar *wxControlNameStr = wxT("control");
116 const wxChar *wxButtonNameStr = wxT("button");
117 const wxChar *wxCanvasNameStr = wxT("canvas");
118 const wxChar *wxCheckBoxNameStr = wxT("check");
119 const wxChar *wxChoiceNameStr = wxT("choice");
120 const wxChar *wxComboBoxNameStr = wxT("comboBox");
121 const wxChar *wxDialogNameStr = wxT("dialog");
122 const wxChar *wxFrameNameStr = wxT("frame");
123 const wxChar *wxGaugeNameStr = wxT("gauge");
124 const wxChar *wxStaticBoxNameStr = wxT("groupBox");
125 const wxChar *wxListBoxNameStr = wxT("listBox");
126 const wxChar *wxStaticTextNameStr = wxT("message");
127 const wxChar *wxStaticBitmapNameStr = wxT("message");
128 const wxChar *wxMultiTextNameStr = wxT("multitext");
129 const wxChar *wxPanelNameStr = wxT("panel");
130 const wxChar *wxRadioBoxNameStr = wxT("radioBox");
131 const wxChar *wxRadioButtonNameStr = wxT("radioButton");
132 const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton");
133 const wxChar *wxScrollBarNameStr = wxT("scrollBar");
134 const wxChar *wxSliderNameStr = wxT("slider");
135 const wxChar *wxStaticNameStr = wxT("static");
136 const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow");
137 const wxChar *wxTextCtrlNameStr = wxT("text");
138 const wxChar *wxVirtListBoxNameStr = wxT("virtListBox");
139 const wxChar *wxButtonBarNameStr = wxT("buttonbar");
140 const wxChar *wxEnhDialogNameStr = wxT("Shell");
141 const wxChar *wxToolBarNameStr = wxT("toolbar");
142 const wxChar *wxStatusLineNameStr = wxT("status_line");
143 const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text");
144 const wxChar *wxMessageBoxCaptionStr = wxT("Message");
145 const wxChar *wxFileSelectorPromptStr = wxT("Select a file");
146 const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*.*");
147 const wxChar *wxInternalErrorStr = wxT("wxWindows Internal Error");
148 const wxChar *wxFatalErrorStr = wxT("wxWindows Fatal Error");
149 const wxChar *wxTreeCtrlNameStr = wxT("treeCtrl");
150 const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl");
151 const wxChar *wxDirDialogDefaultFolderStr = wxT("/");
152
153 // See wx/utils.h
154 const wxChar *wxFloatToStringStr = wxT("%.2f");
155 const wxChar *wxDoubleToStringStr = wxT("%.2f");
156
157 #ifdef __WXMSW__
158 const wxChar *wxUserResourceStr = wxT("TEXT");
159 #endif
160
161
162 const wxSize wxDefaultSize(-1, -1);
163 const wxPoint wxDefaultPosition(-1, -1);