]> git.saurik.com Git - wxWidgets.git/blob - src/msw/data.cpp
Removed some superflous #defines already added by plaform.h, simplified a bit
[wxWidgets.git] / src / msw / data.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: data.cpp
3 // Purpose: Various data
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma implementation "data.h"
14 #endif
15
16 // For compilers that support precompilation, includes "wx.h".
17 #include "wx/wxprec.h"
18
19 #ifdef __BORLANDC__
20 #pragma hdrstop
21 #endif
22
23 #ifndef WX_PRECOMP
24 #include "wx/wx.h"
25 #include "wx/treectrl.h"
26 #endif
27
28 #include "wx/prntbase.h"
29
30 #define _MAXPATHLEN 500
31
32 // Useful buffer, initialized in wxCommonInit
33 wxChar *wxBuffer = NULL;
34
35 // Windows List
36 wxWindowList wxTopLevelWindows;
37
38 // List of windows pending deletion
39 wxList WXDLLEXPORT wxPendingDelete;
40
41 int wxPageNumber;
42
43 // GDI Object Lists
44 wxFontList *wxTheFontList = NULL;
45 wxPenList *wxThePenList = NULL;
46 wxBrushList *wxTheBrushList = NULL;
47 wxBitmapList *wxTheBitmapList = NULL;
48 wxColourDatabase *wxTheColourDatabase = NULL;
49
50 // Stock objects
51 wxFont *wxNORMAL_FONT;
52 wxFont *wxSMALL_FONT;
53 wxFont *wxITALIC_FONT;
54 wxFont *wxSWISS_FONT;
55
56 wxPen *wxRED_PEN;
57 wxPen *wxCYAN_PEN;
58 wxPen *wxGREEN_PEN;
59 wxPen *wxBLACK_PEN;
60 wxPen *wxWHITE_PEN;
61 wxPen *wxTRANSPARENT_PEN;
62 wxPen *wxBLACK_DASHED_PEN;
63 wxPen *wxGREY_PEN;
64 wxPen *wxMEDIUM_GREY_PEN;
65 wxPen *wxLIGHT_GREY_PEN;
66
67 wxBrush *wxBLUE_BRUSH;
68 wxBrush *wxGREEN_BRUSH;
69 wxBrush *wxWHITE_BRUSH;
70 wxBrush *wxBLACK_BRUSH;
71 wxBrush *wxTRANSPARENT_BRUSH;
72 wxBrush *wxCYAN_BRUSH;
73 wxBrush *wxRED_BRUSH;
74 wxBrush *wxGREY_BRUSH;
75 wxBrush *wxMEDIUM_GREY_BRUSH;
76 wxBrush *wxLIGHT_GREY_BRUSH;
77
78 wxColour *wxBLACK;
79 wxColour *wxWHITE;
80 wxColour *wxRED;
81 wxColour *wxBLUE;
82 wxColour *wxGREEN;
83 wxColour *wxCYAN;
84 wxColour *wxLIGHT_GREY;
85
86 wxCursor *wxSTANDARD_CURSOR = NULL;
87 wxCursor *wxHOURGLASS_CURSOR = NULL;
88 wxCursor *wxCROSS_CURSOR = NULL;
89
90 // 'Null' objects
91 #if wxUSE_ACCEL
92 wxAcceleratorTable wxNullAcceleratorTable;
93 #endif // wxUSE_ACCEL
94
95 wxBitmap wxNullBitmap;
96 wxIcon wxNullIcon;
97 wxCursor wxNullCursor;
98 wxPen wxNullPen;
99 wxBrush wxNullBrush;
100 #if wxUSE_PALETTE
101 wxPalette wxNullPalette;
102 #endif // wxUSE_PALETTE
103 wxFont wxNullFont;
104 wxColour wxNullColour;
105
106 // Default window names
107 WXDLLEXPORT_DATA(const wxChar *) wxControlNameStr = wxT("control");
108 WXDLLEXPORT_DATA(const wxChar *) wxButtonNameStr = wxT("button");
109 WXDLLEXPORT_DATA(const wxChar *) wxCanvasNameStr = wxT("canvas");
110 WXDLLEXPORT_DATA(const wxChar *) wxCheckBoxNameStr = wxT("check");
111 WXDLLEXPORT_DATA(const wxChar *) wxChoiceNameStr = wxT("choice");
112 WXDLLEXPORT_DATA(const wxChar *) wxComboBoxNameStr = wxT("comboBox");
113 WXDLLEXPORT_DATA(const wxChar *) wxDialogNameStr = wxT("dialog");
114 WXDLLEXPORT_DATA(const wxChar *) wxFrameNameStr = wxT("frame");
115 WXDLLEXPORT_DATA(const wxChar *) wxGaugeNameStr = wxT("gauge");
116 WXDLLEXPORT_DATA(const wxChar *) wxStaticBoxNameStr = wxT("groupBox");
117 WXDLLEXPORT_DATA(const wxChar *) wxListBoxNameStr = wxT("listBox");
118 WXDLLEXPORT_DATA(const wxChar *) wxStaticTextNameStr = wxT("message");
119 WXDLLEXPORT_DATA(const wxChar *) wxStaticBitmapNameStr = wxT("message");
120 WXDLLEXPORT_DATA(const wxChar *) wxMultiTextNameStr = wxT("multitext");
121 WXDLLEXPORT_DATA(const wxChar *) wxPanelNameStr = wxT("panel");
122 WXDLLEXPORT_DATA(const wxChar *) wxRadioBoxNameStr = wxT("radioBox");
123 WXDLLEXPORT_DATA(const wxChar *) wxRadioButtonNameStr = wxT("radioButton");
124 WXDLLEXPORT_DATA(const wxChar *) wxBitmapRadioButtonNameStr = wxT("radioButton");
125 WXDLLEXPORT_DATA(const wxChar *) wxScrollBarNameStr = wxT("scrollBar");
126 WXDLLEXPORT_DATA(const wxChar *) wxSliderNameStr = wxT("slider");
127 WXDLLEXPORT_DATA(const wxChar *) wxStaticNameStr = wxT("static");
128 WXDLLEXPORT_DATA(const wxChar *) wxTextCtrlWindowNameStr = wxT("textWindow");
129 WXDLLEXPORT_DATA(const wxChar *) wxTextCtrlNameStr = wxT("text");
130 WXDLLEXPORT_DATA(const wxChar *) wxVirtListBoxNameStr = wxT("virtListBox");
131 WXDLLEXPORT_DATA(const wxChar *) wxButtonBarNameStr = wxT("buttonbar");
132 WXDLLEXPORT_DATA(const wxChar *) wxEnhDialogNameStr = wxT("Shell");
133 WXDLLEXPORT_DATA(const wxChar *) wxToolBarNameStr = wxT("toolbar");
134 WXDLLEXPORT_DATA(const wxChar *) wxStatusLineNameStr = wxT("status_line");
135 WXDLLEXPORT_DATA(const wxChar *) wxGetTextFromUserPromptStr = wxT("Input Text");
136 WXDLLEXPORT_DATA(const wxChar *) wxMessageBoxCaptionStr = wxT("Message");
137 WXDLLEXPORT_DATA(const wxChar *) wxFileSelectorPromptStr = wxT("Select a file");
138 WXDLLEXPORT_DATA(const wxChar *) wxFileSelectorDefaultWildcardStr = wxT("*.*");
139 WXDLLEXPORT_DATA(const wxChar *) wxTreeCtrlNameStr = wxT("treeCtrl");
140 WXDLLEXPORT_DATA(const wxChar *) wxDirDialogNameStr = wxT("wxDirCtrl");
141 WXDLLEXPORT_DATA(const wxChar *) wxDirDialogDefaultFolderStr = wxT("/");
142
143 // See wx/utils.h
144 WXDLLEXPORT_DATA(const wxChar *) wxFloatToStringStr = wxT("%.2f");
145 WXDLLEXPORT_DATA(const wxChar *) wxDoubleToStringStr = wxT("%.2f");
146
147 #ifdef __WXMSW__
148 WXDLLEXPORT_DATA(const wxChar *) wxUserResourceStr = wxT("TEXT");
149 #endif
150
151
152 const wxSize wxDefaultSize(-1, -1);
153 const wxPoint wxDefaultPosition(-1, -1);