]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/mac/data.cpp
merged 2 overloaded functions into a single membersections
[wxWidgets.git] / src / mac / data.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: data.cpp
3// Purpose: Various data
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
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
19#include "wx/generic/dcpsg.h"
20#endif
21
22#define _MAXPATHLEN 500
23
24// Windows List
25wxWindowList wxTopLevelWindows;
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
92const wxChar *wxControlNameStr = wxT("control");
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");
103const wxChar *wxStaticTextNameStr = wxT("statictext");
104const wxChar *wxStaticBitmapNameStr = wxT("staticbitmap");
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("*.*");
125const wxChar *wxTreeCtrlNameStr = wxT("treeCtrl");
126const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl");
127const wxChar *wxDirDialogDefaultFolderStr = wxT("/");
128
129// See wx/utils.h
130const wxChar *wxFloatToStringStr = wxT("%.2f");
131const wxChar *wxDoubleToStringStr = wxT("%.2f");
132
133#if wxUSE_SHARED_LIBRARY
134///// Event tables (also must be in one, statically-linked file for shared libraries)
135
136// This is the base, wxEvtHandler 'bootstrap' code which is expanded manually here
137const wxEventTable *wxEvtHandler::GetEventTable() const { return &wxEvtHandler::sm_eventTable; }
138
139const wxEventTable wxEvtHandler::sm_eventTable =
140 { NULL, &wxEvtHandler::sm_eventTableEntries[0] };
141
142const wxEventTableEntry wxEvtHandler::sm_eventTableEntries[] = { { 0, 0, 0, NULL } };
143#endif
144
145const wxSize wxDefaultSize(-1, -1);
146const wxPoint wxDefaultPosition(-1, -1);