]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/motif/data.cpp
If -1 is used for width/height, use best size.
[wxWidgets.git] / src / motif / data.cpp
... / ...
CommitLineData
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"
17#include "wx/dcps.h"
18
19#define _MAXPATHLEN 500
20
21// Windows List
22wxWindowList wxTopLevelWindows;
23
24// List of windows pending deletion
25wxList wxPendingDelete;
26
27int wxPageNumber;
28
29// GDI Object Lists
30wxBrushList *wxTheBrushList = NULL;
31wxPenList *wxThePenList = NULL;
32wxFontList *wxTheFontList = NULL;
33wxBitmapList *wxTheBitmapList = NULL;
34
35wxColourDatabase *wxTheColourDatabase = NULL;
36
37// Stock objects
38wxFont *wxNORMAL_FONT;
39wxFont *wxSMALL_FONT;
40wxFont *wxITALIC_FONT;
41wxFont *wxSWISS_FONT;
42wxPen *wxRED_PEN;
43
44wxPen *wxCYAN_PEN;
45wxPen *wxGREEN_PEN;
46wxPen *wxBLACK_PEN;
47wxPen *wxWHITE_PEN;
48wxPen *wxTRANSPARENT_PEN;
49wxPen *wxBLACK_DASHED_PEN;
50wxPen *wxGREY_PEN;
51wxPen *wxMEDIUM_GREY_PEN;
52wxPen *wxLIGHT_GREY_PEN;
53
54wxBrush *wxBLUE_BRUSH;
55wxBrush *wxGREEN_BRUSH;
56wxBrush *wxWHITE_BRUSH;
57wxBrush *wxBLACK_BRUSH;
58wxBrush *wxTRANSPARENT_BRUSH;
59wxBrush *wxCYAN_BRUSH;
60wxBrush *wxRED_BRUSH;
61wxBrush *wxGREY_BRUSH;
62wxBrush *wxMEDIUM_GREY_BRUSH;
63wxBrush *wxLIGHT_GREY_BRUSH;
64
65wxColour *wxBLACK;
66wxColour *wxWHITE;
67wxColour *wxRED;
68wxColour *wxBLUE;
69wxColour *wxGREEN;
70wxColour *wxCYAN;
71wxColour *wxLIGHT_GREY;
72
73wxCursor *wxSTANDARD_CURSOR = NULL;
74wxCursor *wxHOURGLASS_CURSOR = NULL;
75wxCursor *wxCROSS_CURSOR = NULL;
76
77// 'Null' objects
78wxAcceleratorTable wxNullAcceleratorTable;
79wxBitmap wxNullBitmap;
80wxIcon wxNullIcon;
81wxCursor wxNullCursor;
82wxPen wxNullPen;
83wxBrush wxNullBrush;
84wxPalette wxNullPalette;
85wxFont wxNullFont;
86wxColour wxNullColour;
87
88// Default window names
89const wxChar *wxButtonNameStr = wxT("button");
90const wxChar *wxCanvasNameStr = wxT("canvas");
91const wxChar *wxCheckBoxNameStr = wxT("check");
92const wxChar *wxChoiceNameStr = wxT("choice");
93const wxChar *wxComboBoxNameStr = wxT("comboBox");
94const wxChar *wxDialogNameStr = wxT("dialog");
95const wxChar *wxFrameNameStr = wxT("frame");
96const wxChar *wxGaugeNameStr = wxT("gauge");
97const wxChar *wxStaticBoxNameStr = wxT("groupBox");
98const wxChar *wxListBoxNameStr = wxT("listBox");
99const wxChar *wxStaticTextNameStr = wxT("message");
100const wxChar *wxStaticBitmapNameStr = wxT("message");
101const wxChar *wxMultiTextNameStr = wxT("multitext");
102const wxChar *wxPanelNameStr = wxT("panel");
103const wxChar *wxRadioBoxNameStr = wxT("radioBox");
104const wxChar *wxRadioButtonNameStr = wxT("radioButton");
105const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton");
106const wxChar *wxScrollBarNameStr = wxT("scrollBar");
107const wxChar *wxSliderNameStr = wxT("slider");
108const wxChar *wxStaticNameStr = wxT("static");
109const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow");
110const wxChar *wxTextCtrlNameStr = wxT("text");
111const wxChar *wxVirtListBoxNameStr = wxT("virtListBox");
112const wxChar *wxButtonBarNameStr = wxT("buttonbar");
113const wxChar *wxEnhDialogNameStr = wxT("Shell");
114const wxChar *wxToolBarNameStr = wxT("toolbar");
115const wxChar *wxStatusLineNameStr = wxT("status_line");
116
117const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text");
118const wxChar *wxMessageBoxCaptionStr = wxT("Message");
119const wxChar *wxFileSelectorPromptStr = wxT("Select a file");
120const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*.*");
121const wxChar *wxTreeCtrlNameStr = wxT("wxTreeCtrl");
122const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl");
123const wxChar *wxDirDialogDefaultFolderStr = wxT("/");
124
125// See wx/utils.h
126const wxChar *wxFloatToStringStr = wxT("%.2f");
127const wxChar *wxDoubleToStringStr = wxT("%.2f");
128
129
130const wxSize wxDefaultSize(-1, -1);
131const wxPoint wxDefaultPosition(-1, -1);