]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/gtk1/data.cpp
fixed radiobox layouting: asks GTK for best size, does not compute it from string...
[wxWidgets.git] / src / gtk1 / data.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: data.cpp
3// Purpose:
4// Author: Robert Roebling
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifdef __GNUG__
11// #pragma implementation
12#endif
13
14#include "wx/defs.h"
15#include "wx/object.h"
16#include "wx/window.h"
17#include "wx/dc.h"
18#include "wx/accel.h"
19#include "wx/dcps.h"
20#include "wx/icon.h"
21
22#define _MAXPATHLEN 500
23
24/* Useful buffer, initialized in wxCommonInit */
25wxChar *wxBuffer = (wxChar *) NULL;
26
27/* Windows List */
28wxWindowList wxTopLevelWindows;
29
30/* List of windows pending deletion */
31wxList wxPendingDelete;
32
33/* Current cursor, in order to hang on to
34 * cursor handle when setting the cursor globally */
35wxCursor g_globalCursor;
36
37/* Don't allow event propagation during drag */
38bool g_blockEventsOnDrag = FALSE;
39
40/* Don't allow mouse event propagation during scroll */
41bool g_blockEventsOnScroll = FALSE;
42
43/* Don't allow window closing if there are open dialogs */
44int g_openDialogs = 0;
45
46/* TRUE when the message queue is empty. this gets set to
47 FALSE by all event callbacks before anything else is done */
48bool g_isIdle = FALSE;
49
50/* Message Strings for Internationalization */
51char **wx_msg_str = (char**)NULL;
52
53/* Custom OS version, as optionally placed in wx.ini/.wxrc
54 * Currently this can be Win95, Windows, Win32s, WinNT.
55 * For some systems, you can't tell until run-time what services you
56 * have. See wxGetOsVersion, which uses this string if present. */
57char *wxOsVersion = (char *) NULL;
58
59/* For printing several pages */
60int wxPageNumber;
61
62// Now in prntbase.cpp
63// wxPrintPaperDatabase* wxThePrintPaperDatabase = (wxPrintPaperDatabase *) NULL;
64
65/* GDI Object Lists */
66wxBrushList *wxTheBrushList = (wxBrushList *) NULL;
67wxPenList *wxThePenList = (wxPenList *) NULL;
68wxFontList *wxTheFontList = (wxFontList *) NULL;
69wxColourDatabase *wxTheColourDatabase = (wxColourDatabase *) NULL;
70wxBitmapList *wxTheBitmapList = (wxBitmapList *) NULL;
71
72/* X only font names */
73/*
74wxFontNameDirectory *wxTheFontNameDirectory;
75*/
76
77/* Stock objects */
78wxFont *wxNORMAL_FONT;
79wxFont *wxSMALL_FONT;
80wxFont *wxITALIC_FONT;
81wxFont *wxSWISS_FONT;
82
83wxPen *wxRED_PEN;
84wxPen *wxCYAN_PEN;
85wxPen *wxGREEN_PEN;
86wxPen *wxBLACK_PEN;
87wxPen *wxWHITE_PEN;
88wxPen *wxTRANSPARENT_PEN;
89wxPen *wxBLACK_DASHED_PEN;
90wxPen *wxGREY_PEN;
91wxPen *wxMEDIUM_GREY_PEN;
92wxPen *wxLIGHT_GREY_PEN;
93
94wxBrush *wxBLUE_BRUSH;
95wxBrush *wxGREEN_BRUSH;
96wxBrush *wxWHITE_BRUSH;
97wxBrush *wxBLACK_BRUSH;
98wxBrush *wxTRANSPARENT_BRUSH;
99wxBrush *wxCYAN_BRUSH;
100wxBrush *wxRED_BRUSH;
101wxBrush *wxGREY_BRUSH;
102wxBrush *wxMEDIUM_GREY_BRUSH;
103wxBrush *wxLIGHT_GREY_BRUSH;
104
105wxColour *wxBLACK;
106wxColour *wxWHITE;
107wxColour *wxGREY;
108wxColour *wxRED;
109wxColour *wxBLUE;
110wxColour *wxGREEN;
111wxColour *wxCYAN;
112wxColour *wxLIGHT_GREY;
113
114wxCursor *wxSTANDARD_CURSOR = (wxCursor *) NULL;
115wxCursor *wxHOURGLASS_CURSOR = (wxCursor *) NULL;
116wxCursor *wxCROSS_CURSOR = (wxCursor *) NULL;
117
118/* 'Null' objects */
119#if wxUSE_ACCEL
120 wxAcceleratorTable wxNullAcceleratorTable;
121#endif // wxUSE_ACCEL
122
123wxBitmap wxNullBitmap;
124wxIcon wxNullIcon;
125wxCursor wxNullCursor;
126wxPen wxNullPen;
127wxBrush wxNullBrush;
128wxFont wxNullFont;
129wxColour wxNullColour;
130wxPalette wxNullPalette;
131
132/* Default window names */
133const wxChar *wxControlNameStr = wxT("control");
134const wxChar *wxButtonNameStr = wxT("button");
135const wxChar *wxCanvasNameStr = wxT("canvas");
136const wxChar *wxCheckBoxNameStr = wxT("check");
137const wxChar *wxChoiceNameStr = wxT("choice");
138const wxChar *wxComboBoxNameStr = wxT("comboBox");
139const wxChar *wxDialogNameStr = wxT("dialog");
140const wxChar *wxFrameNameStr = wxT("frame");
141const wxChar *wxGaugeNameStr = wxT("gauge");
142const wxChar *wxStaticBoxNameStr = wxT("groupBox");
143const wxChar *wxListBoxNameStr = wxT("listBox");
144const wxChar *wxStaticTextNameStr = wxT("message");
145const wxChar *wxStaticBitmapNameStr = wxT("message");
146const wxChar *wxMultiTextNameStr = wxT("multitext");
147const wxChar *wxPanelNameStr = wxT("panel");
148const wxChar *wxRadioBoxNameStr = wxT("radioBox");
149const wxChar *wxRadioButtonNameStr = wxT("radioButton");
150const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton");
151const wxChar *wxScrollBarNameStr = wxT("scrollBar");
152const wxChar *wxSliderNameStr = wxT("slider");
153const wxChar *wxStaticNameStr = wxT("static");
154const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow");
155const wxChar *wxTextCtrlNameStr = wxT("text");
156const wxChar *wxVirtListBoxNameStr = wxT("virtListBox");
157const wxChar *wxButtonBarNameStr = wxT("buttonbar");
158const wxChar *wxEnhDialogNameStr = wxT("Shell");
159const wxChar *wxToolBarNameStr = wxT("toolbar");
160const wxChar *wxStatusLineNameStr = wxT("status_line");
161const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text");
162const wxChar *wxMessageBoxCaptionStr = wxT("Message");
163const wxChar *wxFileSelectorPromptStr = wxT("Select a file");
164const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*");
165const wxChar *wxInternalErrorStr = wxT("wxWindows Internal Error");
166const wxChar *wxFatalErrorStr = wxT("wxWindows Fatal Error");
167const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl");
168const wxChar *wxDirDialogDefaultFolderStr = wxT("/");
169const wxChar *wxTreeCtrlNameStr = wxT("wxTreeCtrl");
170
171/* See wx/utils.h */
172const wxChar *wxFloatToStringStr = wxT("%.2f");
173const wxChar *wxDoubleToStringStr = wxT("%.2f");
174
175/* Dafaults for wxWindow etc. */
176const wxSize wxDefaultSize(-1, -1);
177const wxPoint wxDefaultPosition(-1, -1);