]> git.saurik.com Git - wxWidgets.git/blame - src/mac/carbon/data.cpp
don't use deprecated IntToString function
[wxWidgets.git] / src / mac / carbon / data.cpp
CommitLineData
e9576ca5
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: data.cpp
3// Purpose: Various data
a31a5f85 4// Author: Stefan Csomor
e9576ca5 5// Modified by:
a31a5f85 6// Created: 1998-01-01
e9576ca5 7// RCS-ID: $Id$
a31a5f85 8// Copyright: (c) Stefan Csomor
e40298d5 9// Licence: wxWindows licence
e9576ca5
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation
14#endif
15
16#include "wx/wx.h"
17
18#if wxUSE_POSTSCRIPT
169935ad 19#include "wx/generic/dcpsg.h"
e9576ca5
SC
20#endif
21
22#define _MAXPATHLEN 500
23
e9576ca5 24// Windows List
519cb848 25wxWindowList wxTopLevelWindows;
e9576ca5
SC
26
27// List of windows pending deletion
28wxList wxPendingDelete;
29
30int wxPageNumber;
31
32// GDI Object Lists
33wxBrushList *wxTheBrushList = NULL;
34wxPenList *wxThePenList = NULL;
35wxFontList *wxTheFontList = NULL;
36wxBitmapList *wxTheBitmapList = NULL;
37
38wxColourDatabase *wxTheColourDatabase = NULL;
39
40// Stock objects
41wxFont *wxNORMAL_FONT;
42wxFont *wxSMALL_FONT;
43wxFont *wxITALIC_FONT;
44wxFont *wxSWISS_FONT;
45wxPen *wxRED_PEN;
46
47wxPen *wxCYAN_PEN;
48wxPen *wxGREEN_PEN;
49wxPen *wxBLACK_PEN;
50wxPen *wxWHITE_PEN;
51wxPen *wxTRANSPARENT_PEN;
52wxPen *wxBLACK_DASHED_PEN;
53wxPen *wxGREY_PEN;
54wxPen *wxMEDIUM_GREY_PEN;
55wxPen *wxLIGHT_GREY_PEN;
56
57wxBrush *wxBLUE_BRUSH;
58wxBrush *wxGREEN_BRUSH;
59wxBrush *wxWHITE_BRUSH;
60wxBrush *wxBLACK_BRUSH;
61wxBrush *wxTRANSPARENT_BRUSH;
62wxBrush *wxCYAN_BRUSH;
63wxBrush *wxRED_BRUSH;
64wxBrush *wxGREY_BRUSH;
65wxBrush *wxMEDIUM_GREY_BRUSH;
66wxBrush *wxLIGHT_GREY_BRUSH;
67
68wxColour *wxBLACK;
69wxColour *wxWHITE;
70wxColour *wxRED;
71wxColour *wxBLUE;
72wxColour *wxGREEN;
73wxColour *wxCYAN;
74wxColour *wxLIGHT_GREY;
75
76wxCursor *wxSTANDARD_CURSOR = NULL;
77wxCursor *wxHOURGLASS_CURSOR = NULL;
78wxCursor *wxCROSS_CURSOR = NULL;
79
80// 'Null' objects
81wxAcceleratorTable wxNullAcceleratorTable;
82wxBitmap wxNullBitmap;
83wxIcon wxNullIcon;
84wxCursor wxNullCursor;
85wxPen wxNullPen;
86wxBrush wxNullBrush;
87wxPalette wxNullPalette;
88wxFont wxNullFont;
89wxColour wxNullColour;
90
91// Default window names
3752cadc 92const wxChar *wxControlNameStr = wxT("control");
8208e181
SC
93const wxChar *wxButtonNameStr = wxT("button");
94const wxChar *wxCanvasNameStr = wxT("canvas");
95const wxChar *wxCheckBoxNameStr = wxT("check");
96const wxChar *wxChoiceNameStr = wxT("choice");
97const wxChar *wxComboBoxNameStr = wxT("comboBox");
98const wxChar *wxDialogNameStr = wxT("dialog");
99const wxChar *wxFrameNameStr = wxT("frame");
100const wxChar *wxGaugeNameStr = wxT("gauge");
101const wxChar *wxStaticBoxNameStr = wxT("groupBox");
102const wxChar *wxListBoxNameStr = wxT("listBox");
2f1ae414
SC
103const wxChar *wxStaticTextNameStr = wxT("statictext");
104const wxChar *wxStaticBitmapNameStr = wxT("staticbitmap");
8208e181
SC
105const wxChar *wxMultiTextNameStr = wxT("multitext");
106const wxChar *wxPanelNameStr = wxT("panel");
107const wxChar *wxRadioBoxNameStr = wxT("radioBox");
108const wxChar *wxRadioButtonNameStr = wxT("radioButton");
109const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton");
110const wxChar *wxScrollBarNameStr = wxT("scrollBar");
111const wxChar *wxSliderNameStr = wxT("slider");
112const wxChar *wxStaticNameStr = wxT("static");
113const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow");
114const wxChar *wxTextCtrlNameStr = wxT("text");
115const wxChar *wxVirtListBoxNameStr = wxT("virtListBox");
116const wxChar *wxButtonBarNameStr = wxT("buttonbar");
117const wxChar *wxEnhDialogNameStr = wxT("Shell");
118const wxChar *wxToolBarNameStr = wxT("toolbar");
119const wxChar *wxStatusLineNameStr = wxT("status_line");
120
121const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text");
122const wxChar *wxMessageBoxCaptionStr = wxT("Message");
123const wxChar *wxFileSelectorPromptStr = wxT("Select a file");
124const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*.*");
8208e181
SC
125const wxChar *wxTreeCtrlNameStr = wxT("treeCtrl");
126const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl");
127const wxChar *wxDirDialogDefaultFolderStr = wxT("/");
e9576ca5 128
2f1ae414
SC
129#if wxUSE_SHARED_LIBRARY
130///// Event tables (also must be in one, statically-linked file for shared libraries)
131
132// This is the base, wxEvtHandler 'bootstrap' code which is expanded manually here
133const wxEventTable *wxEvtHandler::GetEventTable() const { return &wxEvtHandler::sm_eventTable; }
134
135const wxEventTable wxEvtHandler::sm_eventTable =
e40298d5 136 { NULL, &wxEvtHandler::sm_eventTableEntries[0] };
2f1ae414
SC
137
138const wxEventTableEntry wxEvtHandler::sm_eventTableEntries[] = { { 0, 0, 0, NULL } };
139#endif
140
e9576ca5
SC
141const wxSize wxDefaultSize(-1, -1);
142const wxPoint wxDefaultPosition(-1, -1);