]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/mac/data.cpp
set more event object fields for lbox dbl click events
[wxWidgets.git] / src / mac / data.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: data.cpp
3// Purpose: Various data
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation
14#endif
15
16#include "wx/wx.h"
17
18#if wxUSE_POSTSCRIPT
19#include "wx/generic/dcpsg.h"
20#endif
21
22#define _MAXPATHLEN 500
23
24// Useful buffer, initialized in CommonInit
25char *wxBuffer = NULL;
26
27// Windows List
28wxWindowList wxTopLevelWindows;
29
30// List of windows pending deletion
31wxList wxPendingDelete;
32
33int wxPageNumber;
34
35// GDI Object Lists
36wxBrushList *wxTheBrushList = NULL;
37wxPenList *wxThePenList = NULL;
38wxFontList *wxTheFontList = NULL;
39wxBitmapList *wxTheBitmapList = NULL;
40
41wxColourDatabase *wxTheColourDatabase = NULL;
42
43// Stock objects
44wxFont *wxNORMAL_FONT;
45wxFont *wxSMALL_FONT;
46wxFont *wxITALIC_FONT;
47wxFont *wxSWISS_FONT;
48wxPen *wxRED_PEN;
49
50wxPen *wxCYAN_PEN;
51wxPen *wxGREEN_PEN;
52wxPen *wxBLACK_PEN;
53wxPen *wxWHITE_PEN;
54wxPen *wxTRANSPARENT_PEN;
55wxPen *wxBLACK_DASHED_PEN;
56wxPen *wxGREY_PEN;
57wxPen *wxMEDIUM_GREY_PEN;
58wxPen *wxLIGHT_GREY_PEN;
59
60wxBrush *wxBLUE_BRUSH;
61wxBrush *wxGREEN_BRUSH;
62wxBrush *wxWHITE_BRUSH;
63wxBrush *wxBLACK_BRUSH;
64wxBrush *wxTRANSPARENT_BRUSH;
65wxBrush *wxCYAN_BRUSH;
66wxBrush *wxRED_BRUSH;
67wxBrush *wxGREY_BRUSH;
68wxBrush *wxMEDIUM_GREY_BRUSH;
69wxBrush *wxLIGHT_GREY_BRUSH;
70
71wxColour *wxBLACK;
72wxColour *wxWHITE;
73wxColour *wxRED;
74wxColour *wxBLUE;
75wxColour *wxGREEN;
76wxColour *wxCYAN;
77wxColour *wxLIGHT_GREY;
78
79wxCursor *wxSTANDARD_CURSOR = NULL;
80wxCursor *wxHOURGLASS_CURSOR = NULL;
81wxCursor *wxCROSS_CURSOR = NULL;
82
83// 'Null' objects
84wxAcceleratorTable wxNullAcceleratorTable;
85wxBitmap wxNullBitmap;
86wxIcon wxNullIcon;
87wxCursor wxNullCursor;
88wxPen wxNullPen;
89wxBrush wxNullBrush;
90wxPalette wxNullPalette;
91wxFont wxNullFont;
92wxColour wxNullColour;
93
94// Default window names
95const wxChar *wxButtonNameStr = wxT("button");
96const wxChar *wxCanvasNameStr = wxT("canvas");
97const wxChar *wxCheckBoxNameStr = wxT("check");
98const wxChar *wxChoiceNameStr = wxT("choice");
99const wxChar *wxComboBoxNameStr = wxT("comboBox");
100const wxChar *wxDialogNameStr = wxT("dialog");
101const wxChar *wxFrameNameStr = wxT("frame");
102const wxChar *wxGaugeNameStr = wxT("gauge");
103const wxChar *wxStaticBoxNameStr = wxT("groupBox");
104const wxChar *wxListBoxNameStr = wxT("listBox");
105const wxChar *wxStaticTextNameStr = wxT("statictext");
106const wxChar *wxStaticBitmapNameStr = wxT("staticbitmap");
107const wxChar *wxMultiTextNameStr = wxT("multitext");
108const wxChar *wxPanelNameStr = wxT("panel");
109const wxChar *wxRadioBoxNameStr = wxT("radioBox");
110const wxChar *wxRadioButtonNameStr = wxT("radioButton");
111const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton");
112const wxChar *wxScrollBarNameStr = wxT("scrollBar");
113const wxChar *wxSliderNameStr = wxT("slider");
114const wxChar *wxStaticNameStr = wxT("static");
115const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow");
116const wxChar *wxTextCtrlNameStr = wxT("text");
117const wxChar *wxVirtListBoxNameStr = wxT("virtListBox");
118const wxChar *wxButtonBarNameStr = wxT("buttonbar");
119const wxChar *wxEnhDialogNameStr = wxT("Shell");
120const wxChar *wxToolBarNameStr = wxT("toolbar");
121const wxChar *wxStatusLineNameStr = wxT("status_line");
122
123const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text");
124const wxChar *wxMessageBoxCaptionStr = wxT("Message");
125const wxChar *wxFileSelectorPromptStr = wxT("Select a file");
126const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*.*");
127const wxChar *wxInternalErrorStr = wxT("wxWindows Internal Error");
128const wxChar *wxFatalErrorStr = wxT("wxWindows Fatal Error");
129const wxChar *wxTreeCtrlNameStr = wxT("treeCtrl");
130const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl");
131const wxChar *wxDirDialogDefaultFolderStr = wxT("/");
132
133// See wx/utils.h
134const wxChar *wxFloatToStringStr = wxT("%.2f");
135const wxChar *wxDoubleToStringStr = wxT("%.2f");
136
137#if wxUSE_SHARED_LIBRARY
138///// Event tables (also must be in one, statically-linked file for shared libraries)
139
140// This is the base, wxEvtHandler 'bootstrap' code which is expanded manually here
141const wxEventTable *wxEvtHandler::GetEventTable() const { return &wxEvtHandler::sm_eventTable; }
142
143const wxEventTable wxEvtHandler::sm_eventTable =
144 { NULL, &wxEvtHandler::sm_eventTableEntries[0] };
145
146const wxEventTableEntry wxEvtHandler::sm_eventTableEntries[] = { { 0, 0, 0, NULL } };
147#endif
148
149const wxSize wxDefaultSize(-1, -1);
150const wxPoint wxDefaultPosition(-1, -1);