]> git.saurik.com Git - wxWidgets.git/blame - src/os2/data.cpp
corrected scrolling problems for controls, switched to separate wxSpinCtrl implementa...
[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;
44227537 99wxNativeFontInfo wxNullNativeFontInfo;
0e320a79 100
d0a6b279 101//
0e320a79 102// Default window names
d0a6b279
DW
103//
104const wxChar* wxButtonNameStr = wxT("button");
105const wxChar* wxCanvasNameStr = wxT("canvas");
106const wxChar* wxCheckBoxNameStr = wxT("check");
107const wxChar* wxChoiceNameStr = wxT("choice");
108const wxChar* wxComboBoxNameStr = wxT("comboBox");
109const wxChar* wxDialogNameStr = wxT("dialog");
110const wxChar* wxFrameNameStr = wxT("frame");
111const wxChar* wxGaugeNameStr = wxT("gauge");
112const wxChar* wxStaticBoxNameStr = wxT("groupBox");
113const wxChar* wxListBoxNameStr = wxT("listBox");
114const wxChar* wxStaticTextNameStr = wxT("message");
115const wxChar* wxStaticBitmapNameStr = wxT("message");
116const wxChar* wxMultiTextNameStr = wxT("multitext");
117const wxChar* wxPanelNameStr = wxT("panel");
118const wxChar* wxRadioBoxNameStr = wxT("radioBox");
119const wxChar* wxRadioButtonNameStr = wxT("radioButton");
120const wxChar* wxBitmapRadioButtonNameStr = wxT("radioButton");
121const wxChar* wxScrollBarNameStr = wxT("scrollBar");
122const wxChar* wxSliderNameStr = wxT("slider");
123const wxChar* wxStaticNameStr = wxT("static");
124const wxChar* wxTextCtrlWindowNameStr = wxT("textWindow");
125const wxChar* wxTextCtrlNameStr = wxT("text");
126const wxChar* wxVirtListBoxNameStr = wxT("virtListBox");
127const wxChar* wxButtonBarNameStr = wxT("buttonbar");
128const wxChar* wxEnhDialogNameStr = wxT("Shell");
129const wxChar* wxToolBarNameStr = wxT("toolbar");
130const wxChar* wxStatusLineNameStr = wxT("status_line");
131const wxChar* wxGetTextFromUserPromptStr = wxT("Input Text");
132const wxChar* wxMessageBoxCaptionStr = wxT("Message");
133const wxChar* wxFileSelectorPromptStr = wxT("Select a file");
134const wxChar* wxFileSelectorDefaultWildcardStr = wxT("*.*");
d0a6b279
DW
135const wxChar* wxTreeCtrlNameStr = wxT("treeCtrl");
136const wxChar* wxDirDialogNameStr = wxT("wxDirCtrl");
137const wxChar* wxDirDialogDefaultFolderStr = wxT("/");
138
139//
140// Class names
141//
142const wxChar* wxFrameClassName = wxT("wxFrameClass");
143const wxChar* wxFrameClassNameNoRedraw = wxT("wxFrameClassNR");
144const wxChar* wxMDIFrameClassName = wxT("wxMDIFrameClass");
145const wxChar* wxMDIFrameClassNameNoRedraw = wxT("wxMDIFrameClassNR");
146const wxChar* wxMDIChildFrameClassName = wxT("wxMDIChildFrameClass");
147const wxChar* wxMDIChildFrameClassNameNoRedraw = wxT("wxMDIChildFrameClassNR");
148const wxChar* wxPanelClassName = wxT("wxPanelClass");
149const wxChar* wxPanelClassNameNR = wxT("wxPanelClassNR");
150const wxChar* wxCanvasClassName = wxT("wxCanvasClass");
151const wxChar* wxCanvasClassNameNR = wxT("wxCanvasClassNR");
0e320a79
DW
152
153// See wx/utils.h
223d09f6
KB
154const wxChar *wxFloatToStringStr = wxT("%.2f");
155const wxChar *wxDoubleToStringStr = wxT("%.2f");
23e4b7d8 156
223d09f6 157const wxChar *wxUserResourceStr = wxT("TEXT");
23e4b7d8 158
0e320a79
DW
159const wxSize wxDefaultSize(-1, -1);
160const wxPoint wxDefaultPosition(-1, -1);
fb46a9a6 161