]> git.saurik.com Git - wxWidgets.git/blame - src/msw/data.cpp
Applied patch [ 652491 ] Update makefiles for mingw
[wxWidgets.git] / src / msw / data.cpp
CommitLineData
2bda0e17
KB
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
e146b8c8 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
a3b46648 13#pragma implementation "data.h"
2bda0e17
KB
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"
196f463f 25#include "wx/treectrl.h"
2bda0e17
KB
26#endif
27
2a47d3c1
JS
28#include "wx/prntbase.h"
29
2bda0e17
KB
30#define _MAXPATHLEN 500
31
32// Useful buffer, initialized in wxCommonInit
837e5743 33wxChar *wxBuffer = NULL;
2bda0e17
KB
34
35// Windows List
e146b8c8 36wxWindowList wxTopLevelWindows;
2bda0e17
KB
37
38// List of windows pending deletion
cde9f08e 39wxList WXDLLEXPORT wxPendingDelete;
2bda0e17 40
2bda0e17
KB
41int wxPageNumber;
42
43// GDI Object Lists
2bda0e17 44wxFontList *wxTheFontList = NULL;
f6bcfd97
BP
45wxPenList *wxThePenList = NULL;
46wxBrushList *wxTheBrushList = NULL;
47wxBitmapList *wxTheBitmapList = NULL;
2bda0e17
KB
48wxColourDatabase *wxTheColourDatabase = NULL;
49
50// Stock objects
51wxFont *wxNORMAL_FONT;
52wxFont *wxSMALL_FONT;
53wxFont *wxITALIC_FONT;
54wxFont *wxSWISS_FONT;
2bda0e17 55
f6bcfd97 56wxPen *wxRED_PEN;
2bda0e17
KB
57wxPen *wxCYAN_PEN;
58wxPen *wxGREEN_PEN;
59wxPen *wxBLACK_PEN;
60wxPen *wxWHITE_PEN;
61wxPen *wxTRANSPARENT_PEN;
62wxPen *wxBLACK_DASHED_PEN;
63wxPen *wxGREY_PEN;
64wxPen *wxMEDIUM_GREY_PEN;
65wxPen *wxLIGHT_GREY_PEN;
66
67wxBrush *wxBLUE_BRUSH;
68wxBrush *wxGREEN_BRUSH;
69wxBrush *wxWHITE_BRUSH;
70wxBrush *wxBLACK_BRUSH;
71wxBrush *wxTRANSPARENT_BRUSH;
72wxBrush *wxCYAN_BRUSH;
73wxBrush *wxRED_BRUSH;
74wxBrush *wxGREY_BRUSH;
75wxBrush *wxMEDIUM_GREY_BRUSH;
76wxBrush *wxLIGHT_GREY_BRUSH;
77
78wxColour *wxBLACK;
79wxColour *wxWHITE;
80wxColour *wxRED;
81wxColour *wxBLUE;
82wxColour *wxGREEN;
83wxColour *wxCYAN;
84wxColour *wxLIGHT_GREY;
85
86wxCursor *wxSTANDARD_CURSOR = NULL;
87wxCursor *wxHOURGLASS_CURSOR = NULL;
88wxCursor *wxCROSS_CURSOR = NULL;
89
90// 'Null' objects
1e6feb95 91#if wxUSE_ACCEL
57a7b7c1 92wxAcceleratorTable wxNullAcceleratorTable;
1e6feb95
VZ
93#endif // wxUSE_ACCEL
94
f6bcfd97
BP
95wxBitmap wxNullBitmap;
96wxIcon wxNullIcon;
97wxCursor wxNullCursor;
98wxPen wxNullPen;
99wxBrush wxNullBrush;
d275c7eb 100#if wxUSE_PALETTE
2bda0e17 101wxPalette wxNullPalette;
d275c7eb 102#endif // wxUSE_PALETTE
f6bcfd97
BP
103wxFont wxNullFont;
104wxColour wxNullColour;
2bda0e17
KB
105
106// Default window names
ba5da12f
RD
107WXDLLEXPORT_DATA(const wxChar *) wxControlNameStr = wxT("control");
108WXDLLEXPORT_DATA(const wxChar *) wxButtonNameStr = wxT("button");
109WXDLLEXPORT_DATA(const wxChar *) wxCanvasNameStr = wxT("canvas");
110WXDLLEXPORT_DATA(const wxChar *) wxCheckBoxNameStr = wxT("check");
111WXDLLEXPORT_DATA(const wxChar *) wxChoiceNameStr = wxT("choice");
112WXDLLEXPORT_DATA(const wxChar *) wxComboBoxNameStr = wxT("comboBox");
113WXDLLEXPORT_DATA(const wxChar *) wxDialogNameStr = wxT("dialog");
114WXDLLEXPORT_DATA(const wxChar *) wxFrameNameStr = wxT("frame");
115WXDLLEXPORT_DATA(const wxChar *) wxGaugeNameStr = wxT("gauge");
116WXDLLEXPORT_DATA(const wxChar *) wxStaticBoxNameStr = wxT("groupBox");
117WXDLLEXPORT_DATA(const wxChar *) wxListBoxNameStr = wxT("listBox");
118WXDLLEXPORT_DATA(const wxChar *) wxStaticTextNameStr = wxT("message");
119WXDLLEXPORT_DATA(const wxChar *) wxStaticBitmapNameStr = wxT("message");
120WXDLLEXPORT_DATA(const wxChar *) wxMultiTextNameStr = wxT("multitext");
121WXDLLEXPORT_DATA(const wxChar *) wxPanelNameStr = wxT("panel");
122WXDLLEXPORT_DATA(const wxChar *) wxRadioBoxNameStr = wxT("radioBox");
123WXDLLEXPORT_DATA(const wxChar *) wxRadioButtonNameStr = wxT("radioButton");
124WXDLLEXPORT_DATA(const wxChar *) wxBitmapRadioButtonNameStr = wxT("radioButton");
125WXDLLEXPORT_DATA(const wxChar *) wxScrollBarNameStr = wxT("scrollBar");
126WXDLLEXPORT_DATA(const wxChar *) wxSliderNameStr = wxT("slider");
127WXDLLEXPORT_DATA(const wxChar *) wxStaticNameStr = wxT("static");
128WXDLLEXPORT_DATA(const wxChar *) wxTextCtrlWindowNameStr = wxT("textWindow");
129WXDLLEXPORT_DATA(const wxChar *) wxTextCtrlNameStr = wxT("text");
130WXDLLEXPORT_DATA(const wxChar *) wxVirtListBoxNameStr = wxT("virtListBox");
131WXDLLEXPORT_DATA(const wxChar *) wxButtonBarNameStr = wxT("buttonbar");
132WXDLLEXPORT_DATA(const wxChar *) wxEnhDialogNameStr = wxT("Shell");
133WXDLLEXPORT_DATA(const wxChar *) wxToolBarNameStr = wxT("toolbar");
134WXDLLEXPORT_DATA(const wxChar *) wxStatusLineNameStr = wxT("status_line");
135WXDLLEXPORT_DATA(const wxChar *) wxGetTextFromUserPromptStr = wxT("Input Text");
136WXDLLEXPORT_DATA(const wxChar *) wxMessageBoxCaptionStr = wxT("Message");
137WXDLLEXPORT_DATA(const wxChar *) wxFileSelectorPromptStr = wxT("Select a file");
138WXDLLEXPORT_DATA(const wxChar *) wxFileSelectorDefaultWildcardStr = wxT("*.*");
139WXDLLEXPORT_DATA(const wxChar *) wxTreeCtrlNameStr = wxT("treeCtrl");
140WXDLLEXPORT_DATA(const wxChar *) wxDirDialogNameStr = wxT("wxDirCtrl");
141WXDLLEXPORT_DATA(const wxChar *) wxDirDialogDefaultFolderStr = wxT("/");
2bda0e17
KB
142
143// See wx/utils.h
ba5da12f
RD
144WXDLLEXPORT_DATA(const wxChar *) wxFloatToStringStr = wxT("%.2f");
145WXDLLEXPORT_DATA(const wxChar *) wxDoubleToStringStr = wxT("%.2f");
2bda0e17 146
2049ba38 147#ifdef __WXMSW__
ba5da12f 148WXDLLEXPORT_DATA(const wxChar *) wxUserResourceStr = wxT("TEXT");
2bda0e17
KB
149#endif
150
2bda0e17
KB
151
152const wxSize wxDefaultSize(-1, -1);
153const wxPoint wxDefaultPosition(-1, -1);