]> git.saurik.com Git - wxWidgets.git/blob - src/mac/data.cpp
added GetStdIcon support to wxRenderer
[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 *wxControlNameStr = wxT("control");
96 const wxChar *wxButtonNameStr = wxT("button");
97 const wxChar *wxCanvasNameStr = wxT("canvas");
98 const wxChar *wxCheckBoxNameStr = wxT("check");
99 const wxChar *wxChoiceNameStr = wxT("choice");
100 const wxChar *wxComboBoxNameStr = wxT("comboBox");
101 const wxChar *wxDialogNameStr = wxT("dialog");
102 const wxChar *wxFrameNameStr = wxT("frame");
103 const wxChar *wxGaugeNameStr = wxT("gauge");
104 const wxChar *wxStaticBoxNameStr = wxT("groupBox");
105 const wxChar *wxListBoxNameStr = wxT("listBox");
106 const wxChar *wxStaticTextNameStr = wxT("statictext");
107 const wxChar *wxStaticBitmapNameStr = wxT("staticbitmap");
108 const wxChar *wxMultiTextNameStr = wxT("multitext");
109 const wxChar *wxPanelNameStr = wxT("panel");
110 const wxChar *wxRadioBoxNameStr = wxT("radioBox");
111 const wxChar *wxRadioButtonNameStr = wxT("radioButton");
112 const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton");
113 const wxChar *wxScrollBarNameStr = wxT("scrollBar");
114 const wxChar *wxSliderNameStr = wxT("slider");
115 const wxChar *wxStaticNameStr = wxT("static");
116 const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow");
117 const wxChar *wxTextCtrlNameStr = wxT("text");
118 const wxChar *wxVirtListBoxNameStr = wxT("virtListBox");
119 const wxChar *wxButtonBarNameStr = wxT("buttonbar");
120 const wxChar *wxEnhDialogNameStr = wxT("Shell");
121 const wxChar *wxToolBarNameStr = wxT("toolbar");
122 const wxChar *wxStatusLineNameStr = wxT("status_line");
123
124 const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text");
125 const wxChar *wxMessageBoxCaptionStr = wxT("Message");
126 const wxChar *wxFileSelectorPromptStr = wxT("Select a file");
127 const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*.*");
128 const wxChar *wxInternalErrorStr = wxT("wxWindows Internal Error");
129 const wxChar *wxFatalErrorStr = wxT("wxWindows Fatal Error");
130 const wxChar *wxTreeCtrlNameStr = wxT("treeCtrl");
131 const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl");
132 const wxChar *wxDirDialogDefaultFolderStr = wxT("/");
133
134 // See wx/utils.h
135 const wxChar *wxFloatToStringStr = wxT("%.2f");
136 const wxChar *wxDoubleToStringStr = wxT("%.2f");
137
138 #if wxUSE_SHARED_LIBRARY
139 ///// Event tables (also must be in one, statically-linked file for shared libraries)
140
141 // This is the base, wxEvtHandler 'bootstrap' code which is expanded manually here
142 const wxEventTable *wxEvtHandler::GetEventTable() const { return &wxEvtHandler::sm_eventTable; }
143
144 const wxEventTable wxEvtHandler::sm_eventTable =
145 { NULL, &wxEvtHandler::sm_eventTableEntries[0] };
146
147 const wxEventTableEntry wxEvtHandler::sm_eventTableEntries[] = { { 0, 0, 0, NULL } };
148 #endif
149
150 const wxSize wxDefaultSize(-1, -1);
151 const wxPoint wxDefaultPosition(-1, -1);