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