]> git.saurik.com Git - wxWidgets.git/blob - src/motif/data.cpp
New makefile updates.
[wxWidgets.git] / src / motif / data.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: data.cpp
3 // Purpose: Various data
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 17/09/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma implementation
14 #endif
15
16 #include "wx/wx.h"
17 #include "wx/dcps.h"
18
19 #define _MAXPATHLEN 500
20
21 // Useful buffer, initialized in CommonInit
22 char *wxBuffer = NULL;
23
24 // Windows List
25 wxWindowList wxTopLevelWindows;
26
27 // List of windows pending deletion
28 wxList wxPendingDelete;
29
30 #if wxUSE_THREADS
31 // List of events pending propagation
32 wxList *wxPendingEvents = NULL;
33 wxCriticalSection *wxPendingEventsLocker = NULL;
34 #endif
35
36 int wxPageNumber;
37
38 // GDI Object Lists
39 wxBrushList *wxTheBrushList = NULL;
40 wxPenList *wxThePenList = NULL;
41 wxFontList *wxTheFontList = NULL;
42 wxBitmapList *wxTheBitmapList = NULL;
43
44 wxColourDatabase *wxTheColourDatabase = NULL;
45
46 // Stock objects
47 wxFont *wxNORMAL_FONT;
48 wxFont *wxSMALL_FONT;
49 wxFont *wxITALIC_FONT;
50 wxFont *wxSWISS_FONT;
51 wxPen *wxRED_PEN;
52
53 wxPen *wxCYAN_PEN;
54 wxPen *wxGREEN_PEN;
55 wxPen *wxBLACK_PEN;
56 wxPen *wxWHITE_PEN;
57 wxPen *wxTRANSPARENT_PEN;
58 wxPen *wxBLACK_DASHED_PEN;
59 wxPen *wxGREY_PEN;
60 wxPen *wxMEDIUM_GREY_PEN;
61 wxPen *wxLIGHT_GREY_PEN;
62
63 wxBrush *wxBLUE_BRUSH;
64 wxBrush *wxGREEN_BRUSH;
65 wxBrush *wxWHITE_BRUSH;
66 wxBrush *wxBLACK_BRUSH;
67 wxBrush *wxTRANSPARENT_BRUSH;
68 wxBrush *wxCYAN_BRUSH;
69 wxBrush *wxRED_BRUSH;
70 wxBrush *wxGREY_BRUSH;
71 wxBrush *wxMEDIUM_GREY_BRUSH;
72 wxBrush *wxLIGHT_GREY_BRUSH;
73
74 wxColour *wxBLACK;
75 wxColour *wxWHITE;
76 wxColour *wxRED;
77 wxColour *wxBLUE;
78 wxColour *wxGREEN;
79 wxColour *wxCYAN;
80 wxColour *wxLIGHT_GREY;
81
82 wxCursor *wxSTANDARD_CURSOR = NULL;
83 wxCursor *wxHOURGLASS_CURSOR = NULL;
84 wxCursor *wxCROSS_CURSOR = NULL;
85
86 // 'Null' objects
87 wxAcceleratorTable wxNullAcceleratorTable;
88 wxBitmap wxNullBitmap;
89 wxIcon wxNullIcon;
90 wxCursor wxNullCursor;
91 wxPen wxNullPen;
92 wxBrush wxNullBrush;
93 wxPalette wxNullPalette;
94 wxFont wxNullFont;
95 wxColour wxNullColour;
96
97 // Default window names
98 const char *wxButtonNameStr = "button";
99 const char *wxCanvasNameStr = "canvas";
100 const char *wxCheckBoxNameStr = "check";
101 const char *wxChoiceNameStr = "choice";
102 const char *wxComboBoxNameStr = "comboBox";
103 const char *wxDialogNameStr = "dialog";
104 const char *wxFrameNameStr = "frame";
105 const char *wxGaugeNameStr = "gauge";
106 const char *wxStaticBoxNameStr = "groupBox";
107 const char *wxListBoxNameStr = "listBox";
108 const char *wxStaticTextNameStr = "message";
109 const char *wxStaticBitmapNameStr = "message";
110 const char *wxMultiTextNameStr = "multitext";
111 const char *wxPanelNameStr = "panel";
112 const char *wxRadioBoxNameStr = "radioBox";
113 const char *wxRadioButtonNameStr = "radioButton";
114 const char *wxBitmapRadioButtonNameStr = "radioButton";
115 const char *wxScrollBarNameStr = "scrollBar";
116 const char *wxSliderNameStr = "slider";
117 const char *wxStaticNameStr = "static";
118 const char *wxTextCtrlWindowNameStr = "textWindow";
119 const char *wxTextCtrlNameStr = "text";
120 const char *wxVirtListBoxNameStr = "virtListBox";
121 const char *wxButtonBarNameStr = "buttonbar";
122 const char *wxEnhDialogNameStr = "Shell";
123 const char *wxToolBarNameStr = "toolbar";
124 const char *wxStatusLineNameStr = "status_line";
125 const char *wxEmptyString = "";
126 const char *wxGetTextFromUserPromptStr = "Input Text";
127 const char *wxMessageBoxCaptionStr = "Message";
128 const char *wxFileSelectorPromptStr = "Select a file";
129 const char *wxFileSelectorDefaultWildcardStr = "*.*";
130 const char *wxInternalErrorStr = "wxWindows Internal Error";
131 const char *wxFatalErrorStr = "wxWindows Fatal Error";
132
133 // See wx/utils.h
134 const char *wxFloatToStringStr = "%.2f";
135 const char *wxDoubleToStringStr = "%.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);