]> git.saurik.com Git - wxWidgets.git/blame - src/motif/data.cpp
drawing optimization fix
[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
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation
14#endif
15
16#include "wx/wx.h"
621793f4 17#include "wx/postscrp.h"
4bb6408c
JS
18
19#define _MAXPATHLEN 500
20
21// Useful buffer, initialized in CommonInit
22char *wxBuffer = NULL;
23
24// Windows List
25wxList 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 char *wxButtonNameStr = "button";
93const char *wxCanvasNameStr = "canvas";
94const char *wxCheckBoxNameStr = "check";
95const char *wxChoiceNameStr = "choice";
96const char *wxComboBoxNameStr = "comboBox";
97const char *wxDialogNameStr = "dialog";
98const char *wxFrameNameStr = "frame";
99const char *wxGaugeNameStr = "gauge";
100const char *wxStaticBoxNameStr = "groupBox";
101const char *wxListBoxNameStr = "listBox";
102const char *wxStaticTextNameStr = "message";
103const char *wxStaticBitmapNameStr = "message";
104const char *wxMultiTextNameStr = "multitext";
105const char *wxPanelNameStr = "panel";
106const char *wxRadioBoxNameStr = "radioBox";
107const char *wxRadioButtonNameStr = "radioButton";
108const char *wxBitmapRadioButtonNameStr = "radioButton";
109const char *wxScrollBarNameStr = "scrollBar";
110const char *wxSliderNameStr = "slider";
111const char *wxStaticNameStr = "static";
112const char *wxTextCtrlWindowNameStr = "textWindow";
113const char *wxTextCtrlNameStr = "text";
114const char *wxVirtListBoxNameStr = "virtListBox";
115const char *wxButtonBarNameStr = "buttonbar";
116const char *wxEnhDialogNameStr = "Shell";
117const char *wxToolBarNameStr = "toolbar";
118const char *wxStatusLineNameStr = "status_line";
119const char *wxEmptyString = "";
120const char *wxGetTextFromUserPromptStr = "Input Text";
121const char *wxMessageBoxCaptionStr = "Message";
122const char *wxFileSelectorPromptStr = "Select a file";
123const char *wxFileSelectorDefaultWildcardStr = "*.*";
124const char *wxInternalErrorStr = "wxWindows Internal Error";
125const char *wxFatalErrorStr = "wxWindows Fatal Error";
126
127// See wx/utils.h
128const char *wxFloatToStringStr = "%.2f";
129const char *wxDoubleToStringStr = "%.2f";
130
47d67540 131#if wxUSE_POSTSCRIPT
4bb6408c
JS
132wxPrintPaperDatabase* wxThePrintPaperDatabase = NULL;
133#endif
134
47d67540 135#if wxUSE_SHARED_LIBRARY
4bb6408c
JS
136///// Event tables (also must be in one, statically-linked file for shared libraries)
137
138// This is the base, wxEvtHandler 'bootstrap' code which is expanded manually here
139const wxEventTable *wxEvtHandler::GetEventTable() const { return &wxEvtHandler::sm_eventTable; }
140
141const wxEventTable wxEvtHandler::sm_eventTable =
142 { NULL, &wxEvtHandler::sm_eventTableEntries[0] };
143
144const wxEventTableEntry wxEvtHandler::sm_eventTableEntries[] = { { 0, 0, 0, NULL } };
145#endif
146
147const wxSize wxDefaultSize(-1, -1);
148const wxPoint wxDefaultPosition(-1, -1);