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