]> git.saurik.com Git - wxWidgets.git/blame - src/os2/data.cpp
fixed incorrect GetTextExtent for wxTELETYPE font
[wxWidgets.git] / src / os2 / data.cpp
CommitLineData
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
24wxChar *wxBuffer = NULL;
0e320a79
DW
25
26// Windows List
23e4b7d8 27wxWindowList wxTopLevelWindows;
0e320a79
DW
28
29// List of windows pending deletion
23e4b7d8
DW
30wxList WXDLLEXPORT wxPendingDelete;
31
23e4b7d8
DW
32// Current cursor, in order to hang on to
33// cursor handle when setting the cursor globally
34wxCursor *g_globalCursor = NULL;
35
36// Message Strings for Internationalization
37char **wx_msg_str = (char**)NULL;
38
0e320a79
DW
39int wxPageNumber;
40
41// GDI Object Lists
42wxBrushList *wxTheBrushList = NULL;
43wxPenList *wxThePenList = NULL;
44wxFontList *wxTheFontList = NULL;
45wxBitmapList *wxTheBitmapList = NULL;
46
47wxColourDatabase *wxTheColourDatabase = NULL;
48
49// Stock objects
50wxFont *wxNORMAL_FONT;
51wxFont *wxSMALL_FONT;
52wxFont *wxITALIC_FONT;
53wxFont *wxSWISS_FONT;
54wxPen *wxRED_PEN;
55
56wxPen *wxCYAN_PEN;
57wxPen *wxGREEN_PEN;
58wxPen *wxBLACK_PEN;
59wxPen *wxWHITE_PEN;
60wxPen *wxTRANSPARENT_PEN;
61wxPen *wxBLACK_DASHED_PEN;
62wxPen *wxGREY_PEN;
63wxPen *wxMEDIUM_GREY_PEN;
64wxPen *wxLIGHT_GREY_PEN;
65
66wxBrush *wxBLUE_BRUSH;
67wxBrush *wxGREEN_BRUSH;
68wxBrush *wxWHITE_BRUSH;
69wxBrush *wxBLACK_BRUSH;
70wxBrush *wxTRANSPARENT_BRUSH;
71wxBrush *wxCYAN_BRUSH;
72wxBrush *wxRED_BRUSH;
73wxBrush *wxGREY_BRUSH;
74wxBrush *wxMEDIUM_GREY_BRUSH;
75wxBrush *wxLIGHT_GREY_BRUSH;
76
77wxColour *wxBLACK;
78wxColour *wxWHITE;
79wxColour *wxRED;
80wxColour *wxBLUE;
81wxColour *wxGREEN;
82wxColour *wxCYAN;
83wxColour *wxLIGHT_GREY;
84
85wxCursor *wxSTANDARD_CURSOR = NULL;
86wxCursor *wxHOURGLASS_CURSOR = NULL;
87wxCursor *wxCROSS_CURSOR = NULL;
88
89// 'Null' objects
90wxAcceleratorTable wxNullAcceleratorTable;
91wxBitmap wxNullBitmap;
92wxIcon wxNullIcon;
93wxCursor wxNullCursor;
94wxPen wxNullPen;
95wxBrush wxNullBrush;
96wxPalette wxNullPalette;
97wxFont wxNullFont;
98wxColour wxNullColour;
99
100// Default window names
223d09f6
KB
101const wxChar *wxButtonNameStr = wxT("button");
102const wxChar *wxCanvasNameStr = wxT("canvas");
103const wxChar *wxCheckBoxNameStr = wxT("check");
104const wxChar *wxChoiceNameStr = wxT("choice");
105const wxChar *wxComboBoxNameStr = wxT("comboBox");
106const wxChar *wxDialogNameStr = wxT("dialog");
107const wxChar *wxFrameNameStr = wxT("frame");
108const wxChar *wxGaugeNameStr = wxT("gauge");
109const wxChar *wxStaticBoxNameStr = wxT("groupBox");
110const wxChar *wxListBoxNameStr = wxT("listBox");
111const wxChar *wxStaticTextNameStr = wxT("message");
112const wxChar *wxStaticBitmapNameStr = wxT("message");
113const wxChar *wxMultiTextNameStr = wxT("multitext");
114const wxChar *wxPanelNameStr = wxT("panel");
115const wxChar *wxRadioBoxNameStr = wxT("radioBox");
116const wxChar *wxRadioButtonNameStr = wxT("radioButton");
117const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton");
118const wxChar *wxScrollBarNameStr = wxT("scrollBar");
119const wxChar *wxSliderNameStr = wxT("slider");
120const wxChar *wxStaticNameStr = wxT("static");
121const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow");
122const wxChar *wxTextCtrlNameStr = wxT("text");
123const wxChar *wxVirtListBoxNameStr = wxT("virtListBox");
124const wxChar *wxButtonBarNameStr = wxT("buttonbar");
125const wxChar *wxEnhDialogNameStr = wxT("Shell");
126const wxChar *wxToolBarNameStr = wxT("toolbar");
127const wxChar *wxStatusLineNameStr = wxT("status_line");
223d09f6
KB
128const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text");
129const wxChar *wxMessageBoxCaptionStr = wxT("Message");
130const wxChar *wxFileSelectorPromptStr = wxT("Select a file");
131const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*.*");
132const wxChar *wxInternalErrorStr = wxT("wxWindows Internal Error");
133const wxChar *wxFatalErrorStr = wxT("wxWindows Fatal Error");
134const wxChar *wxTreeCtrlNameStr = wxT("treeCtrl");
135const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl");
136const wxChar *wxDirDialogDefaultFolderStr = wxT("/");
0e320a79
DW
137
138// See wx/utils.h
223d09f6
KB
139const wxChar *wxFloatToStringStr = wxT("%.2f");
140const wxChar *wxDoubleToStringStr = wxT("%.2f");
23e4b7d8 141
223d09f6 142const wxChar *wxUserResourceStr = wxT("TEXT");
23e4b7d8 143
0e320a79
DW
144const wxSize wxDefaultSize(-1, -1);
145const wxPoint wxDefaultPosition(-1, -1);
fb46a9a6 146