]> git.saurik.com Git - wxWidgets.git/blob - src/os2/data.cpp
wxHtmlFilterHTML adds fake <meta> tag so that the parser knows charset
[wxWidgets.git] / src / os2 / data.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: data.cpp
3 // Purpose: Various data
4 // Author: David Webster
5 // Modified by:
6 // Created: 09/20/99
7 // RCS-ID: $Id$
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
14
15 #ifndef WX_PRECOMP
16 #include "wx/wx.h"
17 #endif
18
19 #include "wx/prntbase.h"
20
21 #define _MAXPATHLEN 500
22
23 // Useful buffer, initialized in wxCommonInit
24 wxChar *wxBuffer = NULL;
25
26 // Windows List
27 wxWindowList wxTopLevelWindows;
28
29 // List of windows pending deletion
30 wxList WXDLLEXPORT wxPendingDelete;
31
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
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;
44
45 int wxPageNumber;
46
47 // GDI Object Lists
48 wxBrushList *wxTheBrushList = NULL;
49 wxPenList *wxThePenList = NULL;
50 wxFontList *wxTheFontList = NULL;
51 wxBitmapList *wxTheBitmapList = NULL;
52
53 wxColourDatabase *wxTheColourDatabase = NULL;
54
55 // Stock objects
56 wxFont *wxNORMAL_FONT;
57 wxFont *wxSMALL_FONT;
58 wxFont *wxITALIC_FONT;
59 wxFont *wxSWISS_FONT;
60 wxPen *wxRED_PEN;
61
62 wxPen *wxCYAN_PEN;
63 wxPen *wxGREEN_PEN;
64 wxPen *wxBLACK_PEN;
65 wxPen *wxWHITE_PEN;
66 wxPen *wxTRANSPARENT_PEN;
67 wxPen *wxBLACK_DASHED_PEN;
68 wxPen *wxGREY_PEN;
69 wxPen *wxMEDIUM_GREY_PEN;
70 wxPen *wxLIGHT_GREY_PEN;
71
72 wxBrush *wxBLUE_BRUSH;
73 wxBrush *wxGREEN_BRUSH;
74 wxBrush *wxWHITE_BRUSH;
75 wxBrush *wxBLACK_BRUSH;
76 wxBrush *wxTRANSPARENT_BRUSH;
77 wxBrush *wxCYAN_BRUSH;
78 wxBrush *wxRED_BRUSH;
79 wxBrush *wxGREY_BRUSH;
80 wxBrush *wxMEDIUM_GREY_BRUSH;
81 wxBrush *wxLIGHT_GREY_BRUSH;
82
83 wxColour *wxBLACK;
84 wxColour *wxWHITE;
85 wxColour *wxRED;
86 wxColour *wxBLUE;
87 wxColour *wxGREEN;
88 wxColour *wxCYAN;
89 wxColour *wxLIGHT_GREY;
90
91 wxCursor *wxSTANDARD_CURSOR = NULL;
92 wxCursor *wxHOURGLASS_CURSOR = NULL;
93 wxCursor *wxCROSS_CURSOR = NULL;
94
95 // 'Null' objects
96 wxAcceleratorTable wxNullAcceleratorTable;
97 wxBitmap wxNullBitmap;
98 wxIcon wxNullIcon;
99 wxCursor wxNullCursor;
100 wxPen wxNullPen;
101 wxBrush wxNullBrush;
102 wxPalette wxNullPalette;
103 wxFont wxNullFont;
104 wxColour wxNullColour;
105
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("/");
143
144 // See wx/utils.h
145 const wxChar *wxFloatToStringStr = wxT("%.2f");
146 const wxChar *wxDoubleToStringStr = wxT("%.2f");
147
148 const wxChar *wxUserResourceStr = wxT("TEXT");
149
150 const wxSize wxDefaultSize(-1, -1);
151 const wxPoint wxDefaultPosition(-1, -1);
152