]> git.saurik.com Git - wxWidgets.git/blame - src/msw/data.cpp
More makefiles, distrib things,
[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"
25#endif
26
2a47d3c1
JS
27#include "wx/prntbase.h"
28
2bda0e17
KB
29#define _MAXPATHLEN 500
30
31// Useful buffer, initialized in wxCommonInit
837e5743 32wxChar *wxBuffer = NULL;
2bda0e17
KB
33
34// Windows List
e146b8c8 35wxWindowList wxTopLevelWindows;
2bda0e17
KB
36
37// List of windows pending deletion
cde9f08e 38wxList WXDLLEXPORT wxPendingDelete;
2bda0e17 39
7214297d
GL
40// List of events pending processing
41#if wxUSE_THREADS
4d3a259a
GL
42wxList *wxPendingEvents = NULL;
43wxCriticalSection *wxPendingEventsLocker = NULL;
7214297d
GL
44#endif
45
2bda0e17
KB
46// Current cursor, in order to hang on to
47// cursor handle when setting the cursor globally
48wxCursor *g_globalCursor = NULL;
49
50// Message Strings for Internationalization
51char **wx_msg_str = (char**)NULL;
52
53// Custom OS version, as optionally placed in wx.ini/.wxrc
54// Currently this can be Win95, Windows, Win32s, WinNT.
55// For some systems, you can't tell until run-time what services you
56// have. See wxGetOsVersion, which uses this string if present.
57char *wxOsVersion = NULL;
58
59int wxPageNumber;
60
61// GDI Object Lists
62wxBrushList *wxTheBrushList = NULL;
63wxPenList *wxThePenList = NULL;
64wxFontList *wxTheFontList = NULL;
65wxBitmapList *wxTheBitmapList = NULL;
66
67wxColourDatabase *wxTheColourDatabase = NULL;
68
69// Stock objects
70wxFont *wxNORMAL_FONT;
71wxFont *wxSMALL_FONT;
72wxFont *wxITALIC_FONT;
73wxFont *wxSWISS_FONT;
74wxPen *wxRED_PEN;
75
76wxPen *wxCYAN_PEN;
77wxPen *wxGREEN_PEN;
78wxPen *wxBLACK_PEN;
79wxPen *wxWHITE_PEN;
80wxPen *wxTRANSPARENT_PEN;
81wxPen *wxBLACK_DASHED_PEN;
82wxPen *wxGREY_PEN;
83wxPen *wxMEDIUM_GREY_PEN;
84wxPen *wxLIGHT_GREY_PEN;
85
86wxBrush *wxBLUE_BRUSH;
87wxBrush *wxGREEN_BRUSH;
88wxBrush *wxWHITE_BRUSH;
89wxBrush *wxBLACK_BRUSH;
90wxBrush *wxTRANSPARENT_BRUSH;
91wxBrush *wxCYAN_BRUSH;
92wxBrush *wxRED_BRUSH;
93wxBrush *wxGREY_BRUSH;
94wxBrush *wxMEDIUM_GREY_BRUSH;
95wxBrush *wxLIGHT_GREY_BRUSH;
96
97wxColour *wxBLACK;
98wxColour *wxWHITE;
99wxColour *wxRED;
100wxColour *wxBLUE;
101wxColour *wxGREEN;
102wxColour *wxCYAN;
103wxColour *wxLIGHT_GREY;
104
105wxCursor *wxSTANDARD_CURSOR = NULL;
106wxCursor *wxHOURGLASS_CURSOR = NULL;
107wxCursor *wxCROSS_CURSOR = NULL;
108
109// 'Null' objects
57a7b7c1 110wxAcceleratorTable wxNullAcceleratorTable;
2bda0e17
KB
111wxBitmap wxNullBitmap;
112wxIcon wxNullIcon;
113wxCursor wxNullCursor;
114wxPen wxNullPen;
115wxBrush wxNullBrush;
116wxPalette wxNullPalette;
117wxFont wxNullFont;
118wxColour wxNullColour;
119
120// Default window names
223d09f6
KB
121const wxChar *wxButtonNameStr = wxT("button");
122const wxChar *wxCanvasNameStr = wxT("canvas");
123const wxChar *wxCheckBoxNameStr = wxT("check");
124const wxChar *wxChoiceNameStr = wxT("choice");
125const wxChar *wxComboBoxNameStr = wxT("comboBox");
126const wxChar *wxDialogNameStr = wxT("dialog");
127const wxChar *wxFrameNameStr = wxT("frame");
128const wxChar *wxGaugeNameStr = wxT("gauge");
129const wxChar *wxStaticBoxNameStr = wxT("groupBox");
130const wxChar *wxListBoxNameStr = wxT("listBox");
131const wxChar *wxStaticTextNameStr = wxT("message");
132const wxChar *wxStaticBitmapNameStr = wxT("message");
133const wxChar *wxMultiTextNameStr = wxT("multitext");
134const wxChar *wxPanelNameStr = wxT("panel");
135const wxChar *wxRadioBoxNameStr = wxT("radioBox");
136const wxChar *wxRadioButtonNameStr = wxT("radioButton");
137const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton");
138const wxChar *wxScrollBarNameStr = wxT("scrollBar");
139const wxChar *wxSliderNameStr = wxT("slider");
140const wxChar *wxStaticNameStr = wxT("static");
141const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow");
142const wxChar *wxTextCtrlNameStr = wxT("text");
143const wxChar *wxVirtListBoxNameStr = wxT("virtListBox");
144const wxChar *wxButtonBarNameStr = wxT("buttonbar");
145const wxChar *wxEnhDialogNameStr = wxT("Shell");
146const wxChar *wxToolBarNameStr = wxT("toolbar");
147const wxChar *wxStatusLineNameStr = wxT("status_line");
148const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text");
149const wxChar *wxMessageBoxCaptionStr = wxT("Message");
150const wxChar *wxFileSelectorPromptStr = wxT("Select a file");
151const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*.*");
152const wxChar *wxInternalErrorStr = wxT("wxWindows Internal Error");
153const wxChar *wxFatalErrorStr = wxT("wxWindows Fatal Error");
154const wxChar *wxTreeCtrlNameStr = wxT("treeCtrl");
155const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl");
156const wxChar *wxDirDialogDefaultFolderStr = wxT("/");
2bda0e17
KB
157
158// See wx/utils.h
223d09f6
KB
159const wxChar *wxFloatToStringStr = wxT("%.2f");
160const wxChar *wxDoubleToStringStr = wxT("%.2f");
2bda0e17 161
2049ba38 162#ifdef __WXMSW__
223d09f6 163const wxChar *wxUserResourceStr = wxT("TEXT");
2bda0e17
KB
164#endif
165
47d67540 166#if wxUSE_SHARED_LIBRARY
2bda0e17
KB
167/*
168 * For wxWindows to be made into a dynamic library (e.g. Sun),
169 * all IMPLEMENT_... macros must be in one place.
170 * But normally, the definitions are in the appropriate places.
171 */
172
173// Hand-coded IMPLEMENT... macro for wxObject (define static data)
174wxClassInfo wxObject::classwxObject("wxObject", NULL, NULL, sizeof(wxObject), NULL);
175wxClassInfo *wxClassInfo::first = NULL;
f4a8c29f 176wxClassInfo wxClassInfo::classTable(wxKEY_STRING);
2bda0e17
KB
177
178#include "wx/button.h"
179#include "wx/bmpbuttn.h"
180IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl)
181IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton, wxButton)
182
183#include "wx/checkbox.h"
184IMPLEMENT_DYNAMIC_CLASS(wxCheckBox, wxControl)
185IMPLEMENT_DYNAMIC_CLASS(wxBitmapCheckBox, wxCheckBox)
186
187#include "wx/choice.h"
188IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl)
189
47d67540 190#if wxUSE_CLIPBOARD
2bda0e17
KB
191#include "wx/clipbrd.h"
192IMPLEMENT_DYNAMIC_CLASS(wxClipboard, wxObject)
193IMPLEMENT_ABSTRACT_CLASS(wxClipboardClient, wxObject)
194#endif
195
47d67540 196#if wxUSE_COMBOBOX
2bda0e17
KB
197#include "wx/combobox.h"
198IMPLEMENT_DYNAMIC_CLASS(wxComboBox, wxControl)
199#endif
200
201#include "wx/dc.h"
202#include "wx/dcmemory.h"
203#include "wx/dcclient.h"
204#include "wx/dcscreen.h"
205IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
2bda0e17 206IMPLEMENT_DYNAMIC_CLASS(wxWindowDC, wxDC)
e6460682
JS
207IMPLEMENT_DYNAMIC_CLASS(wxPaintDC, wxWindowDC)
208IMPLEMENT_DYNAMIC_CLASS(wxClientDC, wxWindowDC)
2bda0e17 209IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
e6460682 210IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC)
2bda0e17 211
2049ba38 212#if defined(__WXMSW__)
2bda0e17
KB
213#include "wx/dcprint.h"
214IMPLEMENT_CLASS(wxPrinterDC, wxDC)
215#endif
216
217#include "wx/dialog.h"
218IMPLEMENT_DYNAMIC_CLASS(wxDialog, wxWindow)
219
220#include "wx/frame.h"
221IMPLEMENT_DYNAMIC_CLASS(wxFrame, wxWindow)
222
223#include "wx/mdi.h"
224IMPLEMENT_DYNAMIC_CLASS(wxMDIParentFrame, wxFrame)
225IMPLEMENT_DYNAMIC_CLASS(wxMDIChildFrame, wxFrame)
226IMPLEMENT_DYNAMIC_CLASS(wxMDIClientWindow, wxWindow)
227
228#include "wx/cmndata.h"
229IMPLEMENT_DYNAMIC_CLASS(wxColourData, wxObject)
230IMPLEMENT_DYNAMIC_CLASS(wxFontData, wxObject)
231IMPLEMENT_DYNAMIC_CLASS(wxPrintData, wxObject)
232
233#include "wx/colordlg.h"
234#include "wx/fontdlg.h"
235
47d67540 236#if !defined(__WXMSW__) || wxUSE_GENERIC_DIALOGS_IN_MSW
2bda0e17
KB
237#include "wx/generic/colordlg.h"
238#include "wx/generic/fontdlg.h"
239IMPLEMENT_DYNAMIC_CLASS(wxGenericColourDialog, wxDialog)
240IMPLEMENT_DYNAMIC_CLASS(wxGenericFontDialog, wxDialog)
241#endif
242
243// X defines wxColourDialog to be wxGenericColourDialog
244#ifndef __X__
245IMPLEMENT_DYNAMIC_CLASS(wxColourDialog, wxDialog)
246IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog)
247#endif
248
249#include "wx/gdicmn.h"
250#include "wx/pen.h"
251#include "wx/brush.h"
252#include "wx/font.h"
253#include "wx/palette.h"
254#include "wx/icon.h"
255#include "wx/cursor.h"
256
257IMPLEMENT_DYNAMIC_CLASS(wxColour, wxObject)
258IMPLEMENT_CLASS(wxColourDatabase, wxList)
259IMPLEMENT_DYNAMIC_CLASS(wxFontList, wxList)
260IMPLEMENT_DYNAMIC_CLASS(wxPenList, wxList)
261IMPLEMENT_DYNAMIC_CLASS(wxBrushList, wxList)
262IMPLEMENT_DYNAMIC_CLASS(wxBitmapList, wxList)
263
6a6c0a8b 264/*
2bda0e17
KB
265#if (!USE_TYPEDEFS)
266IMPLEMENT_DYNAMIC_CLASS(wxPoint, wxObject)
267IMPLEMENT_DYNAMIC_CLASS(wxRealPoint, wxObject)
268#endif
6a6c0a8b 269*/
2bda0e17
KB
270
271#include "wx/hash.h"
272IMPLEMENT_DYNAMIC_CLASS(wxHashTable, wxObject)
273
274#include "wx/helpbase.h"
275IMPLEMENT_CLASS(wxHelpControllerBase, wxObject)
276
47d67540 277#if wxUSE_HELP
2bda0e17 278
2049ba38 279#ifdef __WXMSW__
2bda0e17
KB
280#include "wx/msw/helpwin.h"
281IMPLEMENT_DYNAMIC_CLASS(wxWinHelpController, wxHelpControllerBase)
282#endif
283
284// Generic wxHelp controller
285IMPLEMENT_CLASS(wxXLPHelpController, wxHelpControllerBase)
286
2049ba38 287#ifdef __WXMSW__
2bda0e17
KB
288IMPLEMENT_CLASS(wxXLPHelpClient, wxDDEClient)
289IMPLEMENT_CLASS(wxXLPHelpConnection, wxDDEConnection)
290#else
291IMPLEMENT_CLASS(wxXLPHelpClient, wxTCPClient)
292IMPLEMENT_CLASS(wxXLPHelpConnection, wxTCPConnection)
293#endif
294
295#endif
296
297IMPLEMENT_DYNAMIC_CLASS(wxString, wxObject)
298
299#include "wx/list.h"
300IMPLEMENT_DYNAMIC_CLASS(wxNode, wxObject)
301IMPLEMENT_DYNAMIC_CLASS(wxList, wxObject)
302IMPLEMENT_DYNAMIC_CLASS(wxStringList, wxList)
303
47d67540 304#if wxUSE_PRINTING_ARCHITECTURE
2bda0e17
KB
305#include "wx/print.h"
306IMPLEMENT_DYNAMIC_CLASS(wxPrintDialog, wxDialog)
307IMPLEMENT_DYNAMIC_CLASS(wxPrinterBase, wxObject)
308IMPLEMENT_DYNAMIC_CLASS(wxPostScriptPrinter, wxPrinterBase)
309IMPLEMENT_DYNAMIC_CLASS(wxWindowsPrinter, wxPrinterBase)
310IMPLEMENT_ABSTRACT_CLASS(wxPrintout, wxObject)
311IMPLEMENT_CLASS(wxPreviewCanvas, wxWindow)
312IMPLEMENT_CLASS(wxPreviewControlBar, wxWindow)
313IMPLEMENT_CLASS(wxPreviewFrame, wxFrame)
314IMPLEMENT_CLASS(wxPrintPreviewBase, wxObject)
315IMPLEMENT_CLASS(wxPostScriptPrintPreview, wxPrintPreviewBase)
316IMPLEMENT_CLASS(wxWindowsPrintPreview, wxPrintPreviewBase)
317IMPLEMENT_CLASS(wxGenericPrintDialog, wxDialog)
318IMPLEMENT_CLASS(wxGenericPrintSetupDialog, wxDialog)
319#endif
320
47d67540 321#if wxUSE_POSTSCRIPT
bf38cbff 322#include "wx/dcps.h"
2bda0e17
KB
323IMPLEMENT_DYNAMIC_CLASS(wxPostScriptDC, wxDC)
324IMPLEMENT_DYNAMIC_CLASS(wxPrintSetupData, wxObject)
325IMPLEMENT_DYNAMIC_CLASS(wxPageSetupData, wxObject)
2a47d3c1
JS
326#endif
327
2bda0e17
KB
328IMPLEMENT_DYNAMIC_CLASS(wxPrintPaperType, wxObject)
329IMPLEMENT_DYNAMIC_CLASS(wxPrintPaperDatabase, wxList)
2bda0e17 330
47d67540 331#if wxUSE_WX_RESOURCES
2bda0e17
KB
332#include "wx/resource.h"
333IMPLEMENT_DYNAMIC_CLASS(wxItemResource, wxObject)
334IMPLEMENT_DYNAMIC_CLASS(wxResourceTable, wxHashTable)
335#endif
336
337#include "wx/event.h"
338IMPLEMENT_DYNAMIC_CLASS(wxEvtHandler, wxObject)
339IMPLEMENT_ABSTRACT_CLASS(wxEvent, wxObject)
340IMPLEMENT_DYNAMIC_CLASS(wxCommandEvent, wxEvent)
92976ab6 341IMPLEMENT_DYNAMIC_CLASS(wxNotifyEvent, wxCommandEvent)
2bda0e17
KB
342IMPLEMENT_DYNAMIC_CLASS(wxScrollEvent, wxCommandEvent)
343IMPLEMENT_DYNAMIC_CLASS(wxMouseEvent, wxEvent)
344IMPLEMENT_DYNAMIC_CLASS(wxKeyEvent, wxEvent)
345IMPLEMENT_DYNAMIC_CLASS(wxSizeEvent, wxEvent)
346IMPLEMENT_DYNAMIC_CLASS(wxPaintEvent, wxEvent)
347IMPLEMENT_DYNAMIC_CLASS(wxEraseEvent, wxEvent)
348IMPLEMENT_DYNAMIC_CLASS(wxMoveEvent, wxEvent)
349IMPLEMENT_DYNAMIC_CLASS(wxFocusEvent, wxEvent)
350IMPLEMENT_DYNAMIC_CLASS(wxCloseEvent, wxEvent)
351IMPLEMENT_DYNAMIC_CLASS(wxShowEvent, wxEvent)
352IMPLEMENT_DYNAMIC_CLASS(wxMaximizeEvent, wxEvent)
353IMPLEMENT_DYNAMIC_CLASS(wxIconizeEvent, wxEvent)
354IMPLEMENT_DYNAMIC_CLASS(wxMenuEvent, wxEvent)
355IMPLEMENT_DYNAMIC_CLASS(wxJoystickEvent, wxEvent)
356IMPLEMENT_DYNAMIC_CLASS(wxDropFilesEvent, wxEvent)
357IMPLEMENT_DYNAMIC_CLASS(wxActivateEvent, wxEvent)
358IMPLEMENT_DYNAMIC_CLASS(wxInitDialogEvent, wxEvent)
359IMPLEMENT_DYNAMIC_CLASS(wxSysColourChangedEvent, wxEvent)
360IMPLEMENT_DYNAMIC_CLASS(wxIdleEvent, wxEvent)
361IMPLEMENT_DYNAMIC_CLASS(wxUpdateUIEvent, wxEvent)
ca7731b7 362IMPLEMENT_DYNAMIC_CLASS(wxProcessEvent, wxEvent)
2bda0e17
KB
363
364#include "wx/utils.h"
365IMPLEMENT_DYNAMIC_CLASS(wxPathList, wxList)
366
6a6c0a8b 367// IMPLEMENT_DYNAMIC_CLASS(wxRect, wxObject)
2bda0e17 368
ca7731b7
GL
369#include "wx/process.h"
370IMPLEMENT_DYNAMIC_CLASS(wxProcess, wxEvtHandler)
371
47d67540 372#if wxUSE_TIMEDATE
2bda0e17
KB
373#include "wx/date.h"
374IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject)
375#endif
376
47d67540 377#if wxUSE_DOC_VIEW_ARCHITECTURE
2bda0e17
KB
378#include "wx/docview.h"
379//IMPLEMENT_ABSTRACT_CLASS(wxDocItem, wxObject)
380IMPLEMENT_ABSTRACT_CLASS(wxDocument, wxEvtHandler)
381IMPLEMENT_ABSTRACT_CLASS(wxView, wxEvtHandler)
382IMPLEMENT_ABSTRACT_CLASS(wxDocTemplate, wxObject)
383IMPLEMENT_DYNAMIC_CLASS(wxDocManager, wxEvtHandler)
384IMPLEMENT_CLASS(wxDocChildFrame, wxFrame)
385IMPLEMENT_CLASS(wxDocParentFrame, wxFrame)
47d67540 386#if wxUSE_PRINTING_ARCHITECTURE
2bda0e17
KB
387IMPLEMENT_DYNAMIC_CLASS(wxDocPrintout, wxPrintout)
388#endif
389IMPLEMENT_CLASS(wxCommand, wxObject)
390IMPLEMENT_DYNAMIC_CLASS(wxCommandProcessor, wxObject)
391IMPLEMENT_DYNAMIC_CLASS(wxFileHistory, wxObject)
392#endif
393
47d67540 394#if wxUSE_CONSTRAINTS
2bda0e17
KB
395#include "wx/layout.h"
396IMPLEMENT_DYNAMIC_CLASS(wxIndividualLayoutConstraint, wxObject)
397IMPLEMENT_DYNAMIC_CLASS(wxLayoutConstraints, wxObject)
398IMPLEMENT_DYNAMIC_CLASS(wxSizer, wxObject)
399IMPLEMENT_DYNAMIC_CLASS(wxRowColSizer, wxSizer)
400#endif
401
47d67540 402#if wxUSE_TOOLBAR
2bda0e17
KB
403#include "wx/tbarbase.h"
404IMPLEMENT_DYNAMIC_CLASS(wxToolBarTool, wxObject)
405IMPLEMENT_DYNAMIC_CLASS(wxToolBarBase, wxControl)
406
407#include "wx/tbarsmpl.h"
408IMPLEMENT_DYNAMIC_CLASS(wxToolBarSimple, wxToolBarBase)
409
2049ba38 410#ifdef __WXMSW__
2bda0e17
KB
411#include "wx/tbarmsw.h"
412IMPLEMENT_DYNAMIC_CLASS(wxToolBarMSW, wxToolBarBase)
413
414#include "wx/tbar95.h"
415IMPLEMENT_DYNAMIC_CLASS(wxToolBar95, wxToolBarBase)
416#endif
417
418#endif
419
35a4dab7
GL
420#if wxUSE_SOCKETS
421
856d2e52
GL
422#include "wx/sckaddr.h"
423
424IMPLEMENT_DYNAMIC_CLASS(wxIPV4address, wxSockAddress)
425#ifdef ENABLE_IPV6
426IMPLEMENT_DYNAMIC_CLASS(wxIPV6address, wxSockAddress)
427#endif
428#ifndef __UNIX__
429IMPLEMENT_DYNAMIC_CLASS(wxUNIXaddress, wxSockAddress)
430#endif
431
432#include "wx/socket.h"
433
434IMPLEMENT_CLASS(wxSocketBase, wxEvtHandler)
435IMPLEMENT_CLASS(wxSocketClient, wxSocketBase)
436IMPLEMENT_CLASS(wxSocketServer, wxSocketBase)
437IMPLEMENT_CLASS(wxSocketHandler, wxObject)
438IMPLEMENT_DYNAMIC_CLASS(wxSocketEvent, wxEvent)
439
440#include "wx/url.h"
441
442IMPLEMENT_CLASS(wxProtoInfo, wxObject)
443IMPLEMENT_CLASS(wxURL, wxObject)
444
445#include "wx/protocol/http.h"
446
447IMPLEMENT_DYNAMIC_CLASS(wxHTTP, wxProtocol)
448IMPLEMENT_PROTOCOL(wxHTTP, "http", "80", TRUE)
449
450#include "wx/protocol/ftp.h"
451
452IMPLEMENT_DYNAMIC_CLASS(wxFTP, wxProtocol)
453IMPLEMENT_PROTOCOL(wxFTP, "ftp", "21", TRUE)
454
455#include "wx/protocol/sckfile.h"
456
457IMPLEMENT_DYNAMIC_CLASS(wxFileProto, wxProtocol)
458IMPLEMENT_PROTOCOL(wxFileProto, "file", NULL, FALSE)
459
460#include "wx/sckipc.h"
461
462IMPLEMENT_DYNAMIC_CLASS(wxTCPServer, wxServerBase)
463IMPLEMENT_DYNAMIC_CLASS(wxTCPClient, wxClientBase)
464IMPLEMENT_DYNAMIC_CLASS(wxTCPConnection, wxConnectionBase)
465
35a4dab7
GL
466#endif
467
2bda0e17
KB
468#include "wx/statusbr.h"
469
470IMPLEMENT_DYNAMIC_CLASS(wxStatusBar, wxWindow)
471
472BEGIN_EVENT_TABLE(wxStatusBar, wxWindow)
e146b8c8 473 EVT_PAINT(wxStatusBar::OnPaint)
2bda0e17
KB
474 EVT_SYS_COLOUR_CHANGED(wxStatusBar::OnSysColourChanged)
475END_EVENT_TABLE()
476
47d67540 477#if wxUSE_TIMEDATE
2bda0e17
KB
478#include "wx/time.h"
479IMPLEMENT_DYNAMIC_CLASS(wxTime, wxObject)
480#endif
481
482#if !USE_GNU_WXSTRING
483#include "wx/string.h"
484IMPLEMENT_DYNAMIC_CLASS(wxString, wxObject)
485#endif
486
2049ba38 487#ifdef __WXMOTIF__
2bda0e17
KB
488IMPLEMENT_DYNAMIC_CLASS(wxXColormap, wxObject)
489IMPLEMENT_DYNAMIC_CLASS(wxXFont, wxObject)
490IMPLEMENT_DYNAMIC_CLASS(wxXCursor, wxObject)
491#endif
492IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
493IMPLEMENT_DYNAMIC_CLASS(wxPalette, wxGDIObject)
494IMPLEMENT_DYNAMIC_CLASS(wxPen, wxGDIObject)
495IMPLEMENT_DYNAMIC_CLASS(wxBrush, wxGDIObject)
496IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap)
497IMPLEMENT_DYNAMIC_CLASS(wxCursor, wxBitmap)
498IMPLEMENT_DYNAMIC_CLASS(wxBitmap, wxGDIObject)
499IMPLEMENT_DYNAMIC_CLASS(wxMask, wxObject)
500
501// This will presumably be implemented on other platforms too
2049ba38 502#ifdef __WXMSW__
2bda0e17
KB
503IMPLEMENT_DYNAMIC_CLASS(wxBitmapHandler, wxObject)
504IMPLEMENT_DYNAMIC_CLASS(wxBMPResourceHandler, wxBitmapHandler)
505IMPLEMENT_DYNAMIC_CLASS(wxBMPFileHandler, wxBitmapHandler)
506IMPLEMENT_DYNAMIC_CLASS(wxXPMFileHandler, wxBitmapHandler)
507IMPLEMENT_DYNAMIC_CLASS(wxXPMDataHandler, wxBitmapHandler)
508IMPLEMENT_DYNAMIC_CLASS(wxICOFileHandler, wxBitmapHandler)
509IMPLEMENT_DYNAMIC_CLASS(wxICOResourceHandler, wxBitmapHandler)
510#endif
511
512#include "wx/statbox.h"
513IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl)
514
47d67540 515#if wxUSE_IPC
2bda0e17
KB
516#include "wx/dde.h"
517IMPLEMENT_CLASS(wxServerBase, wxObject)
518IMPLEMENT_CLASS(wxClientBase, wxObject)
519IMPLEMENT_CLASS(wxConnectionBase, wxObject)
520
521IMPLEMENT_DYNAMIC_CLASS(wxDDEServer, wxServerBase)
522IMPLEMENT_DYNAMIC_CLASS(wxDDEClient, wxClientBase)
523IMPLEMENT_CLASS(wxDDEConnection, wxConnectionBase)
524#endif
525
526IMPLEMENT_ABSTRACT_CLASS(wxControl, wxWindow)
527
528#include "wx/listbox.h"
529IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
530
531#include "wx/checklst.h"
532IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox)
533
534IMPLEMENT_DYNAMIC_CLASS(wxApp, wxEvtHandler)
535
536#include "wx/menu.h"
537IMPLEMENT_DYNAMIC_CLASS(wxMenu, wxEvtHandler)
538IMPLEMENT_DYNAMIC_CLASS(wxMenuItem, wxObject)
539IMPLEMENT_DYNAMIC_CLASS(wxMenuBar, wxEvtHandler)
540
541#include "wx/stattext.h"
542#include "wx/statbmp.h"
543IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl)
544IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl)
545
47d67540 546#if wxUSE_METAFILE
2bda0e17
KB
547#include "wx/metafile.h"
548IMPLEMENT_DYNAMIC_CLASS(wxMetaFile, wxObject)
549IMPLEMENT_ABSTRACT_CLASS(wxMetaFileDC, wxDC)
550#endif
551
552#include "wx/radiobox.h"
553#include "wx/radiobut.h"
554IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl)
555
556IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
557// IMPLEMENT_DYNAMIC_CLASS(wxBitmapRadioButton, wxRadioButton)
558
559#include "wx/scrolbar.h"
560IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
561
562#if WXWIN_COMPATIBILITY
563BEGIN_EVENT_TABLE(wxScrollBar, wxControl)
564 EVT_SCROLL(wxScrollBar::OnScroll)
565END_EVENT_TABLE()
566#endif
567
568#include "wx/slider.h"
569IMPLEMENT_DYNAMIC_CLASS(wxSlider, wxControl)
570
571#if WXWIN_COMPATIBILITY
572BEGIN_EVENT_TABLE(wxSlider, wxControl)
573 EVT_SCROLL(wxSlider::OnScroll)
574END_EVENT_TABLE()
575#endif
576
577#include "wx/timer.h"
578IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxObject)
579
580#include "wx/textctrl.h"
581IMPLEMENT_DYNAMIC_CLASS(wxTextCtrl, wxControl)
582
583#include "wx/window.h"
584IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxEvtHandler)
585
586#include "wx/scrolwin.h"
587IMPLEMENT_DYNAMIC_CLASS(wxScrolledWindow, wxWindow)
588
589#include "wx/panel.h"
590IMPLEMENT_DYNAMIC_CLASS(wxPanel, wxWindow)
591
592#include "wx/msgbxdlg.h"
593#include "wx/textdlg.h"
594#include "wx/filedlg.h"
595#include "wx/dirdlg.h"
596#include "wx/choicdlg.h"
597
47d67540 598#if !defined(__WXMSW__) || wxUSE_GENERIC_DIALOGS_IN_MSW
2bda0e17
KB
599#include "wx/generic/msgdlgg.h"
600IMPLEMENT_CLASS(wxGenericMessageDialog, wxDialog)
601#endif
602
603IMPLEMENT_CLASS(wxTextEntryDialog, wxDialog)
604IMPLEMENT_CLASS(wxSingleChoiceDialog, wxDialog)
605IMPLEMENT_CLASS(wxFileDialog, wxDialog)
606IMPLEMENT_CLASS(wxDirDialog, wxDialog)
607
2049ba38 608#ifdef __WXMSW__
2bda0e17
KB
609IMPLEMENT_CLASS(wxMessageDialog)
610#endif
611
47d67540 612#if wxUSE_GAUGE
2049ba38 613#ifdef __WXMOTIF__
2bda0e17
KB
614#include "../../contrib/xmgauge/gauge.h"
615#endif
616#include "wx_gauge.h"
617IMPLEMENT_DYNAMIC_CLASS(wxGauge, wxControl)
618#endif
619
620#include "wx/grid.h"
621IMPLEMENT_DYNAMIC_CLASS(wxGenericGrid, wxPanel)
622
623///// Event tables (also must be in one, statically-linked file for shared libraries)
624
625// This is the base, wxEvtHandler 'bootstrap' code which is expanded manually here
626const wxEventTable *wxEvtHandler::GetEventTable() const { return &wxEvtHandler::sm_eventTable; }
627
628const wxEventTable wxEvtHandler::sm_eventTable =
e146b8c8 629 { NULL, &wxEvtHandler::sm_eventTableEntries[0] };
2bda0e17
KB
630
631const wxEventTableEntry wxEvtHandler::sm_eventTableEntries[] = { { 0, 0, 0, NULL } };
632
633BEGIN_EVENT_TABLE(wxFrame, wxWindow)
e146b8c8
VZ
634 EVT_ACTIVATE(wxFrame::OnActivate)
635 EVT_SIZE(wxFrame::OnSize)
636 EVT_MENU_HIGHLIGHT_ALL(wxFrame::OnMenuHighlight)
2bda0e17
KB
637 EVT_SYS_COLOUR_CHANGED(wxFrame::OnSysColourChanged)
638 EVT_IDLE(wxFrame::OnIdle)
639 EVT_CLOSE(wxFrame::OnCloseWindow)
640END_EVENT_TABLE()
641
642BEGIN_EVENT_TABLE(wxDialog, wxPanel)
643 EVT_BUTTON(wxID_OK, wxDialog::OnOK)
644 EVT_BUTTON(wxID_APPLY, wxDialog::OnApply)
645 EVT_BUTTON(wxID_CANCEL, wxDialog::OnCancel)
646 EVT_CHAR_HOOK(wxDialog::OnCharHook)
647 EVT_SYS_COLOUR_CHANGED(wxDialog::OnSysColourChanged)
648 EVT_CLOSE(wxDialog::OnCloseWindow)
649END_EVENT_TABLE()
650
651BEGIN_EVENT_TABLE(wxWindow, wxEvtHandler)
652 EVT_CHAR(wxWindow::OnChar)
653 EVT_SIZE(wxWindow::Size)
654 EVT_ERASE_BACKGROUND(wxWindow::OnEraseBackground)
655 EVT_SYS_COLOUR_CHANGED(wxWindow::OnSysColourChanged)
656 EVT_INIT_DIALOG(wxWindow::OnInitDialog)
657 EVT_IDLE(wxWindow::OnIdle)
658END_EVENT_TABLE()
659
660BEGIN_EVENT_TABLE(wxScrolledWindow, wxWindow)
661 EVT_SCROLL(wxScrolledWindow::OnScroll)
662 EVT_SIZE(wxScrolledWindow::OnSize)
663 EVT_PAINT(wxScrolledWindow::OnPaint)
664END_EVENT_TABLE()
665
666BEGIN_EVENT_TABLE(wxPanel, wxWindow)
667 EVT_SYS_COLOUR_CHANGED(wxPanel::OnSysColourChanged)
668END_EVENT_TABLE()
669
670BEGIN_EVENT_TABLE(wxTextCtrl, wxControl)
e146b8c8
VZ
671 EVT_CHAR(wxTextCtrl::OnChar)
672 EVT_DROP_FILES(wxTextCtrl::OnDropFiles)
2bda0e17
KB
673END_EVENT_TABLE()
674
2049ba38 675#ifdef __WXMSW__
2bda0e17
KB
676BEGIN_EVENT_TABLE(wxMDIParentWindow, wxFrame)
677 EVT_SIZE(wxMDIParentWindow::OnSize)
678 EVT_ACTIVATE(wxMDIParentWindow::OnActivate)
679 EVT_SYS_COLOUR_CHANGED(wxMDIParentWindow::OnSysColourChanged)
680END_EVENT_TABLE()
681
682BEGIN_EVENT_TABLE(wxMDIClientWindow, wxWindow)
683 EVT_SCROLL(wxMDIClientWindow::OnScroll)
684END_EVENT_TABLE()
685#endif
686
687BEGIN_EVENT_TABLE(wxToolBarBase, wxControl)
688 EVT_SCROLL(wxToolBarBase::OnScroll)
689 EVT_SIZE(wxToolBarBase::OnSize)
690 EVT_IDLE(wxToolBarBase::OnIdle)
691END_EVENT_TABLE()
692
693BEGIN_EVENT_TABLE(wxToolBarSimple, wxToolBarBase)
e146b8c8
VZ
694 EVT_SIZE(wxToolBarSimple::OnSize)
695 EVT_PAINT(wxToolBarSimple::OnPaint)
696 EVT_KILL_FOCUS(wxToolBarSimple::OnKillFocus)
697 EVT_MOUSE_EVENTS(wxToolBarSimple::OnMouseEvent)
2bda0e17
KB
698END_EVENT_TABLE()
699
2049ba38 700#ifdef __WXMSW__
2bda0e17 701BEGIN_EVENT_TABLE(wxToolBarMSW, wxToolBarBase)
e146b8c8
VZ
702 EVT_SIZE(wxToolBarMSW::OnSize)
703 EVT_PAINT(wxToolBarMSW::OnPaint)
704 EVT_MOUSE_EVENTS(wxToolBarMSW::OnMouseEvent)
2bda0e17
KB
705END_EVENT_TABLE()
706
707BEGIN_EVENT_TABLE(wxToolBar95, wxToolBarBase)
e146b8c8
VZ
708 EVT_SIZE(wxToolBar95::OnSize)
709 EVT_PAINT(wxToolBar95::OnPaint)
710 EVT_KILL_FOCUS(wxToolBar95::OnKillFocus)
711 EVT_MOUSE_EVENTS(wxToolBar95::OnMouseEvent)
2bda0e17
KB
712 EVT_SYS_COLOUR_CHANGED(wxToolBar95::OnSysColourChanged)
713END_EVENT_TABLE()
714#endif
715
716BEGIN_EVENT_TABLE(wxGenericGrid, wxPanel)
e146b8c8
VZ
717 EVT_SIZE(wxGenericGrid::OnSize)
718 EVT_PAINT(wxGenericGrid::OnPaint)
719 EVT_MOUSE_EVENTS(wxGenericGrid::OnMouseEvent)
2bda0e17
KB
720 EVT_TEXT(wxGRID_TEXT_CTRL, wxGenericGrid::OnText)
721 EVT_COMMAND_SCROLL(wxGRID_HSCROLL, wxGenericGrid::OnGridScroll)
722 EVT_COMMAND_SCROLL(wxGRID_VSCROLL, wxGenericGrid::OnGridScroll)
723END_EVENT_TABLE()
724
725BEGIN_EVENT_TABLE(wxControl, wxWindow)
726 EVT_ERASE_BACKGROUND(wxControl::OnEraseBackground)
727END_EVENT_TABLE()
728
47d67540 729#if !defined(__WXMSW__) || wxUSE_GENERIC_DIALOGS_IN_MSW
2bda0e17 730BEGIN_EVENT_TABLE(wxGenericMessageDialog, wxDialog)
e146b8c8
VZ
731 EVT_BUTTON(wxID_YES, wxGenericMessageDialog::OnYes)
732 EVT_BUTTON(wxID_NO, wxGenericMessageDialog::OnNo)
733 EVT_BUTTON(wxID_CANCEL, wxGenericMessageDialog::OnCancel)
2bda0e17
KB
734END_EVENT_TABLE()
735
736BEGIN_EVENT_TABLE(wxGenericColourDialog, wxDialog)
e146b8c8
VZ
737 EVT_BUTTON(wxID_ADD_CUSTOM, wxGenericColourDialog::OnAddCustom)
738 EVT_SLIDER(wxID_RED_SLIDER, wxGenericColourDialog::OnRedSlider)
739 EVT_SLIDER(wxID_GREEN_SLIDER, wxGenericColourDialog::OnGreenSlider)
740 EVT_SLIDER(wxID_BLUE_SLIDER, wxGenericColourDialog::OnBlueSlider)
741 EVT_PAINT(wxGenericColourDialog::OnPaint)
742 EVT_MOUSE_EVENTS(wxGenericColourDialog::OnMouseEvent)
2bda0e17
KB
743END_EVENT_TABLE()
744
745BEGIN_EVENT_TABLE(wxGenericFontDialog, wxDialog)
e146b8c8
VZ
746 EVT_CHECKBOX(wxID_FONT_UNDERLINE, wxGenericFontDialog::OnChangeFont)
747 EVT_CHOICE(wxID_FONT_STYLE, wxGenericFontDialog::OnChangeFont)
748 EVT_CHOICE(wxID_FONT_WEIGHT, wxGenericFontDialog::OnChangeFont)
749 EVT_CHOICE(wxID_FONT_FAMILY, wxGenericFontDialog::OnChangeFont)
750 EVT_CHOICE(wxID_FONT_COLOUR, wxGenericFontDialog::OnChangeFont)
751 EVT_CHOICE(wxID_FONT_SIZE, wxGenericFontDialog::OnChangeFont)
752 EVT_PAINT(wxGenericFontDialog::OnPaint)
2bda0e17
KB
753END_EVENT_TABLE()
754
755BEGIN_EVENT_TABLE(wxGenericPrintDialog, wxDialog)
756 EVT_BUTTON(wxID_OK, wxGenericPrintDialog::OnOK)
757 EVT_BUTTON(wxPRINTID_SETUP, wxGenericPrintDialog::OnSetup)
758 EVT_RADIOBOX(wxPRINTID_RANGE, wxGenericPrintDialog::OnRange)
759END_EVENT_TABLE()
760
761#endif
762
763BEGIN_EVENT_TABLE(wxTextEntryDialog, wxDialog)
e146b8c8 764 EVT_BUTTON(wxID_OK, wxTextEntryDialog::OnOK)
2bda0e17
KB
765END_EVENT_TABLE()
766
767BEGIN_EVENT_TABLE(wxSingleChoiceDialog, wxDialog)
e146b8c8 768 EVT_BUTTON(wxID_OK, wxSingleChoiceDialog::OnOK)
2bda0e17
KB
769END_EVENT_TABLE()
770
771#include "wx/prntbase.h"
772
773BEGIN_EVENT_TABLE(wxPrintAbortDialog, wxDialog)
e146b8c8 774 EVT_BUTTON(wxID_CANCEL, wxPrintAbortDialog::OnCancel)
2bda0e17
KB
775END_EVENT_TABLE()
776
777BEGIN_EVENT_TABLE(wxPreviewControlBar, wxWindow)
e146b8c8
VZ
778 EVT_BUTTON(wxID_PREVIEW_CLOSE, wxPreviewControlBar::OnClose)
779 EVT_BUTTON(wxID_PREVIEW_PRINT, wxPreviewControlBar::OnPrint)
780 EVT_BUTTON(wxID_PREVIEW_PREVIOUS, wxPreviewControlBar::OnPrevious)
781 EVT_BUTTON(wxID_PREVIEW_NEXT, wxPreviewControlBar::OnNext)
782 EVT_CHOICE(wxID_PREVIEW_ZOOM, wxPreviewControlBar::OnZoom)
2bda0e17
KB
783END_EVENT_TABLE()
784
785#endif
786
787
788const wxSize wxDefaultSize(-1, -1);
789const wxPoint wxDefaultPosition(-1, -1);