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