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