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