]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/os2/data.cpp
respect Veto()ing the column resize events; added test for this in the sample
[wxWidgets.git] / src / os2 / data.cpp
... / ...
CommitLineData
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
24wxChar *wxBuffer = NULL;
25
26// Windows List
27wxWindowList wxTopLevelWindows;
28
29// List of windows pending deletion
30wxList WXDLLEXPORT wxPendingDelete;
31
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
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;
99wxNativeFontInfo wxNullNativeFontInfo;
100
101//
102// Default window names
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("*.*");
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");
152
153// See wx/utils.h
154const wxChar *wxFloatToStringStr = wxT("%.2f");
155const wxChar *wxDoubleToStringStr = wxT("%.2f");
156
157const wxChar *wxUserResourceStr = wxT("TEXT");
158
159const wxSize wxDefaultSize(-1, -1);
160const wxPoint wxDefaultPosition(-1, -1);
161