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