1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Various data
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "data.h"
16 // For compilers that support precompilation, includes "wx.h".
17 #include "wx/wxprec.h"
27 #include "wx/prntbase.h"
29 #define _MAXPATHLEN 500
31 // Useful buffer, initialized in wxCommonInit
32 wxChar
*wxBuffer
= NULL
;
35 wxWindowList wxTopLevelWindows
;
37 // List of windows pending deletion
38 wxList WXDLLEXPORT wxPendingDelete
;
40 // Current cursor, in order to hang on to
41 // cursor handle when setting the cursor globally
42 wxCursor
*g_globalCursor
= NULL
;
44 // Message Strings for Internationalization
45 char **wx_msg_str
= (char**)NULL
;
47 // Custom OS version, as optionally placed in wx.ini/.wxrc
48 // Currently this can be Win95, Windows, Win32s, WinNT.
49 // For some systems, you can't tell until run-time what services you
50 // have. See wxGetOsVersion, which uses this string if present.
51 char *wxOsVersion
= NULL
;
56 wxBrushList
*wxTheBrushList
= NULL
;
57 wxPenList
*wxThePenList
= NULL
;
58 wxFontList
*wxTheFontList
= NULL
;
59 wxBitmapList
*wxTheBitmapList
= NULL
;
61 wxColourDatabase
*wxTheColourDatabase
= NULL
;
64 wxFont
*wxNORMAL_FONT
;
66 wxFont
*wxITALIC_FONT
;
74 wxPen
*wxTRANSPARENT_PEN
;
75 wxPen
*wxBLACK_DASHED_PEN
;
77 wxPen
*wxMEDIUM_GREY_PEN
;
78 wxPen
*wxLIGHT_GREY_PEN
;
80 wxBrush
*wxBLUE_BRUSH
;
81 wxBrush
*wxGREEN_BRUSH
;
82 wxBrush
*wxWHITE_BRUSH
;
83 wxBrush
*wxBLACK_BRUSH
;
84 wxBrush
*wxTRANSPARENT_BRUSH
;
85 wxBrush
*wxCYAN_BRUSH
;
87 wxBrush
*wxGREY_BRUSH
;
88 wxBrush
*wxMEDIUM_GREY_BRUSH
;
89 wxBrush
*wxLIGHT_GREY_BRUSH
;
97 wxColour
*wxLIGHT_GREY
;
99 wxCursor
*wxSTANDARD_CURSOR
= NULL
;
100 wxCursor
*wxHOURGLASS_CURSOR
= NULL
;
101 wxCursor
*wxCROSS_CURSOR
= NULL
;
104 wxAcceleratorTable wxNullAcceleratorTable
;
105 wxBitmap wxNullBitmap
;
107 wxCursor wxNullCursor
;
110 wxPalette wxNullPalette
;
112 wxColour wxNullColour
;
114 // Default window names
115 const wxChar
*wxButtonNameStr
= wxT("button");
116 const wxChar
*wxCanvasNameStr
= wxT("canvas");
117 const wxChar
*wxCheckBoxNameStr
= wxT("check");
118 const wxChar
*wxChoiceNameStr
= wxT("choice");
119 const wxChar
*wxComboBoxNameStr
= wxT("comboBox");
120 const wxChar
*wxDialogNameStr
= wxT("dialog");
121 const wxChar
*wxFrameNameStr
= wxT("frame");
122 const wxChar
*wxGaugeNameStr
= wxT("gauge");
123 const wxChar
*wxStaticBoxNameStr
= wxT("groupBox");
124 const wxChar
*wxListBoxNameStr
= wxT("listBox");
125 const wxChar
*wxStaticTextNameStr
= wxT("message");
126 const wxChar
*wxStaticBitmapNameStr
= wxT("message");
127 const wxChar
*wxMultiTextNameStr
= wxT("multitext");
128 const wxChar
*wxPanelNameStr
= wxT("panel");
129 const wxChar
*wxRadioBoxNameStr
= wxT("radioBox");
130 const wxChar
*wxRadioButtonNameStr
= wxT("radioButton");
131 const wxChar
*wxBitmapRadioButtonNameStr
= wxT("radioButton");
132 const wxChar
*wxScrollBarNameStr
= wxT("scrollBar");
133 const wxChar
*wxSliderNameStr
= wxT("slider");
134 const wxChar
*wxStaticNameStr
= wxT("static");
135 const wxChar
*wxTextCtrlWindowNameStr
= wxT("textWindow");
136 const wxChar
*wxTextCtrlNameStr
= wxT("text");
137 const wxChar
*wxVirtListBoxNameStr
= wxT("virtListBox");
138 const wxChar
*wxButtonBarNameStr
= wxT("buttonbar");
139 const wxChar
*wxEnhDialogNameStr
= wxT("Shell");
140 const wxChar
*wxToolBarNameStr
= wxT("toolbar");
141 const wxChar
*wxStatusLineNameStr
= wxT("status_line");
142 const wxChar
*wxGetTextFromUserPromptStr
= wxT("Input Text");
143 const wxChar
*wxMessageBoxCaptionStr
= wxT("Message");
144 const wxChar
*wxFileSelectorPromptStr
= wxT("Select a file");
145 const wxChar
*wxFileSelectorDefaultWildcardStr
= wxT("*.*");
146 const wxChar
*wxInternalErrorStr
= wxT("wxWindows Internal Error");
147 const wxChar
*wxFatalErrorStr
= wxT("wxWindows Fatal Error");
148 const wxChar
*wxTreeCtrlNameStr
= wxT("treeCtrl");
149 const wxChar
*wxDirDialogNameStr
= wxT("wxDirCtrl");
150 const wxChar
*wxDirDialogDefaultFolderStr
= wxT("/");
153 const wxChar
*wxFloatToStringStr
= wxT("%.2f");
154 const wxChar
*wxDoubleToStringStr
= wxT("%.2f");
157 const wxChar
*wxUserResourceStr
= wxT("TEXT");
160 #if wxUSE_SHARED_LIBRARY
162 * For wxWindows to be made into a dynamic library (e.g. Sun),
163 * all IMPLEMENT_... macros must be in one place.
164 * But normally, the definitions are in the appropriate places.
167 // Hand-coded IMPLEMENT... macro for wxObject (define static data)
168 wxClassInfo
wxObject::classwxObject("wxObject", NULL
, NULL
, sizeof(wxObject
), NULL
);
169 wxClassInfo
*wxClassInfo::first
= NULL
;
170 wxClassInfo
wxClassInfo::classTable(wxKEY_STRING
);
172 #include "wx/button.h"
173 #include "wx/bmpbuttn.h"
174 IMPLEMENT_DYNAMIC_CLASS(wxButton
, wxControl
)
175 IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton
, wxButton
)
177 #include "wx/checkbox.h"
178 IMPLEMENT_DYNAMIC_CLASS(wxCheckBox
, wxControl
)
179 IMPLEMENT_DYNAMIC_CLASS(wxBitmapCheckBox
, wxCheckBox
)
181 #include "wx/choice.h"
182 IMPLEMENT_DYNAMIC_CLASS(wxChoice
, wxControl
)
185 #include "wx/clipbrd.h"
186 IMPLEMENT_DYNAMIC_CLASS(wxClipboard
, wxObject
)
187 IMPLEMENT_ABSTRACT_CLASS(wxClipboardClient
, wxObject
)
191 #include "wx/combobox.h"
192 IMPLEMENT_DYNAMIC_CLASS(wxComboBox
, wxControl
)
196 #include "wx/dcmemory.h"
197 #include "wx/dcclient.h"
198 #include "wx/dcscreen.h"
199 IMPLEMENT_ABSTRACT_CLASS(wxDC
, wxObject
)
200 IMPLEMENT_DYNAMIC_CLASS(wxWindowDC
, wxDC
)
201 IMPLEMENT_DYNAMIC_CLASS(wxPaintDC
, wxWindowDC
)
202 IMPLEMENT_DYNAMIC_CLASS(wxClientDC
, wxWindowDC
)
203 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC
, wxWindowDC
)
204 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC
, wxDC
)
206 #if defined(__WXMSW__)
207 #include "wx/dcprint.h"
208 IMPLEMENT_CLASS(wxPrinterDC
, wxDC
)
211 #include "wx/dialog.h"
212 IMPLEMENT_DYNAMIC_CLASS(wxDialog
, wxWindow
)
214 #include "wx/frame.h"
215 IMPLEMENT_DYNAMIC_CLASS(wxFrame
, wxWindow
)
218 IMPLEMENT_DYNAMIC_CLASS(wxMDIParentFrame
, wxFrame
)
219 IMPLEMENT_DYNAMIC_CLASS(wxMDIChildFrame
, wxFrame
)
220 IMPLEMENT_DYNAMIC_CLASS(wxMDIClientWindow
, wxWindow
)
222 #include "wx/cmndata.h"
223 IMPLEMENT_DYNAMIC_CLASS(wxColourData
, wxObject
)
224 IMPLEMENT_DYNAMIC_CLASS(wxFontData
, wxObject
)
225 IMPLEMENT_DYNAMIC_CLASS(wxPrintData
, wxObject
)
227 #include "wx/colordlg.h"
228 #include "wx/fontdlg.h"
230 #if !defined(__WXMSW__) || wxUSE_GENERIC_DIALOGS_IN_MSW
231 #include "wx/generic/colordlg.h"
232 #include "wx/generic/fontdlg.h"
233 IMPLEMENT_DYNAMIC_CLASS(wxGenericColourDialog
, wxDialog
)
234 IMPLEMENT_DYNAMIC_CLASS(wxGenericFontDialog
, wxDialog
)
237 // X defines wxColourDialog to be wxGenericColourDialog
239 IMPLEMENT_DYNAMIC_CLASS(wxColourDialog
, wxDialog
)
240 IMPLEMENT_DYNAMIC_CLASS(wxFontDialog
, wxDialog
)
243 #include "wx/gdicmn.h"
245 #include "wx/brush.h"
247 #include "wx/palette.h"
249 #include "wx/cursor.h"
251 IMPLEMENT_DYNAMIC_CLASS(wxColour
, wxObject
)
252 IMPLEMENT_CLASS(wxColourDatabase
, wxList
)
253 IMPLEMENT_DYNAMIC_CLASS(wxFontList
, wxList
)
254 IMPLEMENT_DYNAMIC_CLASS(wxPenList
, wxList
)
255 IMPLEMENT_DYNAMIC_CLASS(wxBrushList
, wxList
)
256 IMPLEMENT_DYNAMIC_CLASS(wxBitmapList
, wxList
)
260 IMPLEMENT_DYNAMIC_CLASS(wxPoint, wxObject)
261 IMPLEMENT_DYNAMIC_CLASS(wxRealPoint, wxObject)
266 IMPLEMENT_DYNAMIC_CLASS(wxHashTable
, wxObject
)
268 #include "wx/helpbase.h"
269 IMPLEMENT_CLASS(wxHelpControllerBase
, wxObject
)
274 #include "wx/msw/helpwin.h"
275 IMPLEMENT_DYNAMIC_CLASS(wxWinHelpController
, wxHelpControllerBase
)
278 // Generic wxHelp controller
279 IMPLEMENT_CLASS(wxXLPHelpController
, wxHelpControllerBase
)
282 IMPLEMENT_CLASS(wxXLPHelpClient
, wxDDEClient
)
283 IMPLEMENT_CLASS(wxXLPHelpConnection
, wxDDEConnection
)
285 IMPLEMENT_CLASS(wxXLPHelpClient
, wxTCPClient
)
286 IMPLEMENT_CLASS(wxXLPHelpConnection
, wxTCPConnection
)
291 IMPLEMENT_DYNAMIC_CLASS(wxString
, wxObject
)
294 IMPLEMENT_DYNAMIC_CLASS(wxNode
, wxObject
)
295 IMPLEMENT_DYNAMIC_CLASS(wxList
, wxObject
)
296 IMPLEMENT_DYNAMIC_CLASS(wxStringList
, wxList
)
298 #if wxUSE_PRINTING_ARCHITECTURE
299 #include "wx/print.h"
300 IMPLEMENT_DYNAMIC_CLASS(wxPrintDialog
, wxDialog
)
301 IMPLEMENT_DYNAMIC_CLASS(wxPrinterBase
, wxObject
)
302 IMPLEMENT_DYNAMIC_CLASS(wxPostScriptPrinter
, wxPrinterBase
)
303 IMPLEMENT_DYNAMIC_CLASS(wxWindowsPrinter
, wxPrinterBase
)
304 IMPLEMENT_ABSTRACT_CLASS(wxPrintout
, wxObject
)
305 IMPLEMENT_CLASS(wxPreviewCanvas
, wxWindow
)
306 IMPLEMENT_CLASS(wxPreviewControlBar
, wxWindow
)
307 IMPLEMENT_CLASS(wxPreviewFrame
, wxFrame
)
308 IMPLEMENT_CLASS(wxPrintPreviewBase
, wxObject
)
309 IMPLEMENT_CLASS(wxPostScriptPrintPreview
, wxPrintPreviewBase
)
310 IMPLEMENT_CLASS(wxWindowsPrintPreview
, wxPrintPreviewBase
)
311 IMPLEMENT_CLASS(wxGenericPrintDialog
, wxDialog
)
312 IMPLEMENT_CLASS(wxGenericPrintSetupDialog
, wxDialog
)
317 IMPLEMENT_DYNAMIC_CLASS(wxPostScriptDC
, wxDC
)
318 IMPLEMENT_DYNAMIC_CLASS(wxPrintSetupData
, wxObject
)
319 IMPLEMENT_DYNAMIC_CLASS(wxPageSetupData
, wxObject
)
322 IMPLEMENT_DYNAMIC_CLASS(wxPrintPaperType
, wxObject
)
323 IMPLEMENT_DYNAMIC_CLASS(wxPrintPaperDatabase
, wxList
)
325 #if wxUSE_WX_RESOURCES
326 #include "wx/resource.h"
327 IMPLEMENT_DYNAMIC_CLASS(wxItemResource
, wxObject
)
328 IMPLEMENT_DYNAMIC_CLASS(wxResourceTable
, wxHashTable
)
331 #include "wx/event.h"
332 IMPLEMENT_DYNAMIC_CLASS(wxEvtHandler
, wxObject
)
333 IMPLEMENT_ABSTRACT_CLASS(wxEvent
, wxObject
)
334 IMPLEMENT_DYNAMIC_CLASS(wxCommandEvent
, wxEvent
)
335 IMPLEMENT_DYNAMIC_CLASS(wxNotifyEvent
, wxCommandEvent
)
336 IMPLEMENT_DYNAMIC_CLASS(wxScrollEvent
, wxCommandEvent
)
337 IMPLEMENT_DYNAMIC_CLASS(wxMouseEvent
, wxEvent
)
338 IMPLEMENT_DYNAMIC_CLASS(wxKeyEvent
, wxEvent
)
339 IMPLEMENT_DYNAMIC_CLASS(wxSizeEvent
, wxEvent
)
340 IMPLEMENT_DYNAMIC_CLASS(wxPaintEvent
, wxEvent
)
341 IMPLEMENT_DYNAMIC_CLASS(wxEraseEvent
, wxEvent
)
342 IMPLEMENT_DYNAMIC_CLASS(wxMoveEvent
, wxEvent
)
343 IMPLEMENT_DYNAMIC_CLASS(wxFocusEvent
, wxEvent
)
344 IMPLEMENT_DYNAMIC_CLASS(wxCloseEvent
, wxEvent
)
345 IMPLEMENT_DYNAMIC_CLASS(wxShowEvent
, wxEvent
)
346 IMPLEMENT_DYNAMIC_CLASS(wxMaximizeEvent
, wxEvent
)
347 IMPLEMENT_DYNAMIC_CLASS(wxIconizeEvent
, wxEvent
)
348 IMPLEMENT_DYNAMIC_CLASS(wxMenuEvent
, wxEvent
)
349 IMPLEMENT_DYNAMIC_CLASS(wxJoystickEvent
, wxEvent
)
350 IMPLEMENT_DYNAMIC_CLASS(wxDropFilesEvent
, wxEvent
)
351 IMPLEMENT_DYNAMIC_CLASS(wxActivateEvent
, wxEvent
)
352 IMPLEMENT_DYNAMIC_CLASS(wxInitDialogEvent
, wxEvent
)
353 IMPLEMENT_DYNAMIC_CLASS(wxSysColourChangedEvent
, wxEvent
)
354 IMPLEMENT_DYNAMIC_CLASS(wxIdleEvent
, wxEvent
)
355 IMPLEMENT_DYNAMIC_CLASS(wxUpdateUIEvent
, wxEvent
)
356 IMPLEMENT_DYNAMIC_CLASS(wxProcessEvent
, wxEvent
)
358 #include "wx/utils.h"
359 IMPLEMENT_DYNAMIC_CLASS(wxPathList
, wxList
)
361 // IMPLEMENT_DYNAMIC_CLASS(wxRect, wxObject)
363 #include "wx/process.h"
364 IMPLEMENT_DYNAMIC_CLASS(wxProcess
, wxEvtHandler
)
368 IMPLEMENT_DYNAMIC_CLASS(wxDate
, wxObject
)
371 #if wxUSE_DOC_VIEW_ARCHITECTURE
372 #include "wx/docview.h"
373 //IMPLEMENT_ABSTRACT_CLASS(wxDocItem, wxObject)
374 IMPLEMENT_ABSTRACT_CLASS(wxDocument
, wxEvtHandler
)
375 IMPLEMENT_ABSTRACT_CLASS(wxView
, wxEvtHandler
)
376 IMPLEMENT_ABSTRACT_CLASS(wxDocTemplate
, wxObject
)
377 IMPLEMENT_DYNAMIC_CLASS(wxDocManager
, wxEvtHandler
)
378 IMPLEMENT_CLASS(wxDocChildFrame
, wxFrame
)
379 IMPLEMENT_CLASS(wxDocParentFrame
, wxFrame
)
380 #if wxUSE_PRINTING_ARCHITECTURE
381 IMPLEMENT_DYNAMIC_CLASS(wxDocPrintout
, wxPrintout
)
383 IMPLEMENT_CLASS(wxCommand
, wxObject
)
384 IMPLEMENT_DYNAMIC_CLASS(wxCommandProcessor
, wxObject
)
385 IMPLEMENT_DYNAMIC_CLASS(wxFileHistory
, wxObject
)
388 #if wxUSE_CONSTRAINTS
389 #include "wx/layout.h"
390 IMPLEMENT_DYNAMIC_CLASS(wxIndividualLayoutConstraint
, wxObject
)
391 IMPLEMENT_DYNAMIC_CLASS(wxLayoutConstraints
, wxObject
)
392 IMPLEMENT_DYNAMIC_CLASS(wxSizer
, wxObject
)
393 IMPLEMENT_DYNAMIC_CLASS(wxRowColSizer
, wxSizer
)
397 #include "wx/tbarbase.h"
398 IMPLEMENT_DYNAMIC_CLASS(wxToolBarTool
, wxObject
)
399 IMPLEMENT_DYNAMIC_CLASS(wxToolBarBase
, wxControl
)
401 #include "wx/tbarsmpl.h"
402 IMPLEMENT_DYNAMIC_CLASS(wxToolBarSimple
, wxToolBarBase
)
405 #include "wx/tbarmsw.h"
406 IMPLEMENT_DYNAMIC_CLASS(wxToolBarMSW
, wxToolBarBase
)
408 #include "wx/tbar95.h"
409 IMPLEMENT_DYNAMIC_CLASS(wxToolBar95
, wxToolBarBase
)
416 #include "wx/sckaddr.h"
418 IMPLEMENT_DYNAMIC_CLASS(wxIPV4address
, wxSockAddress
)
420 IMPLEMENT_DYNAMIC_CLASS(wxIPV6address
, wxSockAddress
)
423 IMPLEMENT_DYNAMIC_CLASS(wxUNIXaddress
, wxSockAddress
)
426 #include "wx/socket.h"
428 IMPLEMENT_CLASS(wxSocketBase
, wxEvtHandler
)
429 IMPLEMENT_CLASS(wxSocketClient
, wxSocketBase
)
430 IMPLEMENT_CLASS(wxSocketServer
, wxSocketBase
)
431 IMPLEMENT_CLASS(wxSocketHandler
, wxObject
)
432 IMPLEMENT_DYNAMIC_CLASS(wxSocketEvent
, wxEvent
)
436 IMPLEMENT_CLASS(wxProtoInfo
, wxObject
)
437 IMPLEMENT_CLASS(wxURL
, wxObject
)
439 #include "wx/protocol/http.h"
441 IMPLEMENT_DYNAMIC_CLASS(wxHTTP
, wxProtocol
)
442 IMPLEMENT_PROTOCOL(wxHTTP
, "http", "80", TRUE
)
444 #include "wx/protocol/ftp.h"
446 IMPLEMENT_DYNAMIC_CLASS(wxFTP
, wxProtocol
)
447 IMPLEMENT_PROTOCOL(wxFTP
, "ftp", "21", TRUE
)
449 #include "wx/protocol/sckfile.h"
451 IMPLEMENT_DYNAMIC_CLASS(wxFileProto
, wxProtocol
)
452 IMPLEMENT_PROTOCOL(wxFileProto
, "file", NULL
, FALSE
)
454 #include "wx/sckipc.h"
456 IMPLEMENT_DYNAMIC_CLASS(wxTCPServer
, wxServerBase
)
457 IMPLEMENT_DYNAMIC_CLASS(wxTCPClient
, wxClientBase
)
458 IMPLEMENT_DYNAMIC_CLASS(wxTCPConnection
, wxConnectionBase
)
462 #include "wx/statusbr.h"
464 IMPLEMENT_DYNAMIC_CLASS(wxStatusBar
, wxWindow
)
466 BEGIN_EVENT_TABLE(wxStatusBar
, wxWindow
)
467 EVT_PAINT(wxStatusBar::OnPaint
)
468 EVT_SYS_COLOUR_CHANGED(wxStatusBar::OnSysColourChanged
)
473 IMPLEMENT_DYNAMIC_CLASS(wxTime
, wxObject
)
476 #if !USE_GNU_WXSTRING
477 #include "wx/string.h"
478 IMPLEMENT_DYNAMIC_CLASS(wxString
, wxObject
)
482 IMPLEMENT_DYNAMIC_CLASS(wxXColormap
, wxObject
)
483 IMPLEMENT_DYNAMIC_CLASS(wxXFont
, wxObject
)
484 IMPLEMENT_DYNAMIC_CLASS(wxXCursor
, wxObject
)
486 IMPLEMENT_DYNAMIC_CLASS(wxFont
, wxGDIObject
)
487 IMPLEMENT_DYNAMIC_CLASS(wxPalette
, wxGDIObject
)
488 IMPLEMENT_DYNAMIC_CLASS(wxPen
, wxGDIObject
)
489 IMPLEMENT_DYNAMIC_CLASS(wxBrush
, wxGDIObject
)
490 IMPLEMENT_DYNAMIC_CLASS(wxIcon
, wxBitmap
)
491 IMPLEMENT_DYNAMIC_CLASS(wxCursor
, wxBitmap
)
492 IMPLEMENT_DYNAMIC_CLASS(wxBitmap
, wxGDIObject
)
493 IMPLEMENT_DYNAMIC_CLASS(wxMask
, wxObject
)
495 // This will presumably be implemented on other platforms too
497 IMPLEMENT_DYNAMIC_CLASS(wxBitmapHandler
, wxObject
)
498 IMPLEMENT_DYNAMIC_CLASS(wxBMPResourceHandler
, wxBitmapHandler
)
499 IMPLEMENT_DYNAMIC_CLASS(wxBMPFileHandler
, wxBitmapHandler
)
500 IMPLEMENT_DYNAMIC_CLASS(wxXPMFileHandler
, wxBitmapHandler
)
501 IMPLEMENT_DYNAMIC_CLASS(wxXPMDataHandler
, wxBitmapHandler
)
502 IMPLEMENT_DYNAMIC_CLASS(wxICOFileHandler
, wxBitmapHandler
)
503 IMPLEMENT_DYNAMIC_CLASS(wxICOResourceHandler
, wxBitmapHandler
)
506 #include "wx/statbox.h"
507 IMPLEMENT_DYNAMIC_CLASS(wxStaticBox
, wxControl
)
511 IMPLEMENT_CLASS(wxServerBase
, wxObject
)
512 IMPLEMENT_CLASS(wxClientBase
, wxObject
)
513 IMPLEMENT_CLASS(wxConnectionBase
, wxObject
)
515 IMPLEMENT_DYNAMIC_CLASS(wxDDEServer
, wxServerBase
)
516 IMPLEMENT_DYNAMIC_CLASS(wxDDEClient
, wxClientBase
)
517 IMPLEMENT_CLASS(wxDDEConnection
, wxConnectionBase
)
520 IMPLEMENT_ABSTRACT_CLASS(wxControl
, wxWindow
)
522 #include "wx/listbox.h"
523 IMPLEMENT_DYNAMIC_CLASS(wxListBox
, wxControl
)
525 #include "wx/checklst.h"
526 IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox
, wxListBox
)
528 IMPLEMENT_DYNAMIC_CLASS(wxApp
, wxEvtHandler
)
531 IMPLEMENT_DYNAMIC_CLASS(wxMenu
, wxEvtHandler
)
532 IMPLEMENT_DYNAMIC_CLASS(wxMenuItem
, wxObject
)
533 IMPLEMENT_DYNAMIC_CLASS(wxMenuBar
, wxEvtHandler
)
535 #include "wx/stattext.h"
536 #include "wx/statbmp.h"
537 IMPLEMENT_DYNAMIC_CLASS(wxStaticText
, wxControl
)
538 IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap
, wxControl
)
541 #include "wx/metafile.h"
542 IMPLEMENT_DYNAMIC_CLASS(wxMetaFile
, wxObject
)
543 IMPLEMENT_ABSTRACT_CLASS(wxMetaFileDC
, wxDC
)
546 #include "wx/radiobox.h"
547 #include "wx/radiobut.h"
548 IMPLEMENT_DYNAMIC_CLASS(wxRadioBox
, wxControl
)
550 IMPLEMENT_DYNAMIC_CLASS(wxRadioButton
, wxControl
)
551 // IMPLEMENT_DYNAMIC_CLASS(wxBitmapRadioButton, wxRadioButton)
553 #include "wx/scrolbar.h"
554 IMPLEMENT_DYNAMIC_CLASS(wxScrollBar
, wxControl
)
556 #if WXWIN_COMPATIBILITY
557 BEGIN_EVENT_TABLE(wxScrollBar
, wxControl
)
558 EVT_SCROLL(wxScrollBar::OnScroll
)
562 #include "wx/slider.h"
563 IMPLEMENT_DYNAMIC_CLASS(wxSlider
, wxControl
)
565 #if WXWIN_COMPATIBILITY
566 BEGIN_EVENT_TABLE(wxSlider
, wxControl
)
567 EVT_SCROLL(wxSlider::OnScroll
)
571 #include "wx/timer.h"
572 IMPLEMENT_ABSTRACT_CLASS(wxTimer
, wxObject
)
574 #include "wx/textctrl.h"
575 IMPLEMENT_DYNAMIC_CLASS(wxTextCtrl
, wxControl
)
577 #include "wx/window.h"
578 IMPLEMENT_DYNAMIC_CLASS(wxWindow
, wxEvtHandler
)
580 #include "wx/scrolwin.h"
581 IMPLEMENT_DYNAMIC_CLASS(wxScrolledWindow
, wxWindow
)
583 #include "wx/panel.h"
584 IMPLEMENT_DYNAMIC_CLASS(wxPanel
, wxWindow
)
586 #include "wx/msgbxdlg.h"
587 #include "wx/textdlg.h"
588 #include "wx/filedlg.h"
589 #include "wx/dirdlg.h"
590 #include "wx/choicdlg.h"
592 #if !defined(__WXMSW__) || wxUSE_GENERIC_DIALOGS_IN_MSW
593 #include "wx/generic/msgdlgg.h"
594 IMPLEMENT_CLASS(wxGenericMessageDialog
, wxDialog
)
597 IMPLEMENT_CLASS(wxTextEntryDialog
, wxDialog
)
598 IMPLEMENT_CLASS(wxSingleChoiceDialog
, wxDialog
)
599 IMPLEMENT_CLASS(wxFileDialog
, wxDialog
)
600 IMPLEMENT_CLASS(wxDirDialog
, wxDialog
)
603 IMPLEMENT_CLASS(wxMessageDialog
)
608 #include "../../contrib/xmgauge/gauge.h"
610 #include "wx_gauge.h"
611 IMPLEMENT_DYNAMIC_CLASS(wxGauge
, wxControl
)
615 IMPLEMENT_DYNAMIC_CLASS(wxGenericGrid
, wxPanel
)
617 ///// Event tables (also must be in one, statically-linked file for shared libraries)
619 // This is the base, wxEvtHandler 'bootstrap' code which is expanded manually here
620 const wxEventTable
*wxEvtHandler::GetEventTable() const { return &wxEvtHandler::sm_eventTable
; }
622 const wxEventTable
wxEvtHandler::sm_eventTable
=
623 { NULL
, &wxEvtHandler::sm_eventTableEntries
[0] };
625 const wxEventTableEntry
wxEvtHandler::sm_eventTableEntries
[] = { { 0, 0, 0, NULL
} };
627 BEGIN_EVENT_TABLE(wxFrame
, wxWindow
)
628 EVT_ACTIVATE(wxFrame::OnActivate
)
629 EVT_SIZE(wxFrame::OnSize
)
630 EVT_MENU_HIGHLIGHT_ALL(wxFrame::OnMenuHighlight
)
631 EVT_SYS_COLOUR_CHANGED(wxFrame::OnSysColourChanged
)
632 EVT_IDLE(wxFrame::OnIdle
)
633 EVT_CLOSE(wxFrame::OnCloseWindow
)
636 BEGIN_EVENT_TABLE(wxDialog
, wxPanel
)
637 EVT_BUTTON(wxID_OK
, wxDialog::OnOK
)
638 EVT_BUTTON(wxID_APPLY
, wxDialog::OnApply
)
639 EVT_BUTTON(wxID_CANCEL
, wxDialog::OnCancel
)
640 EVT_CHAR_HOOK(wxDialog::OnCharHook
)
641 EVT_SYS_COLOUR_CHANGED(wxDialog::OnSysColourChanged
)
642 EVT_CLOSE(wxDialog::OnCloseWindow
)
645 BEGIN_EVENT_TABLE(wxWindow
, wxEvtHandler
)
646 EVT_CHAR(wxWindow::OnChar
)
647 EVT_SIZE(wxWindow::Size
)
648 EVT_ERASE_BACKGROUND(wxWindow::OnEraseBackground
)
649 EVT_SYS_COLOUR_CHANGED(wxWindow::OnSysColourChanged
)
650 EVT_INIT_DIALOG(wxWindow::OnInitDialog
)
651 EVT_IDLE(wxWindow::OnIdle
)
654 BEGIN_EVENT_TABLE(wxScrolledWindow
, wxWindow
)
655 EVT_SCROLL(wxScrolledWindow::OnScroll
)
656 EVT_SIZE(wxScrolledWindow::OnSize
)
657 EVT_PAINT(wxScrolledWindow::OnPaint
)
660 BEGIN_EVENT_TABLE(wxPanel
, wxWindow
)
661 EVT_SYS_COLOUR_CHANGED(wxPanel::OnSysColourChanged
)
664 BEGIN_EVENT_TABLE(wxTextCtrl
, wxControl
)
665 EVT_CHAR(wxTextCtrl::OnChar
)
666 EVT_DROP_FILES(wxTextCtrl::OnDropFiles
)
670 BEGIN_EVENT_TABLE(wxMDIParentWindow
, wxFrame
)
671 EVT_SIZE(wxMDIParentWindow::OnSize
)
672 EVT_ACTIVATE(wxMDIParentWindow::OnActivate
)
673 EVT_SYS_COLOUR_CHANGED(wxMDIParentWindow::OnSysColourChanged
)
676 BEGIN_EVENT_TABLE(wxMDIClientWindow
, wxWindow
)
677 EVT_SCROLL(wxMDIClientWindow::OnScroll
)
681 BEGIN_EVENT_TABLE(wxToolBarBase
, wxControl
)
682 EVT_SCROLL(wxToolBarBase::OnScroll
)
683 EVT_SIZE(wxToolBarBase::OnSize
)
684 EVT_IDLE(wxToolBarBase::OnIdle
)
687 BEGIN_EVENT_TABLE(wxToolBarSimple
, wxToolBarBase
)
688 EVT_SIZE(wxToolBarSimple::OnSize
)
689 EVT_PAINT(wxToolBarSimple::OnPaint
)
690 EVT_KILL_FOCUS(wxToolBarSimple::OnKillFocus
)
691 EVT_MOUSE_EVENTS(wxToolBarSimple::OnMouseEvent
)
695 BEGIN_EVENT_TABLE(wxToolBarMSW
, wxToolBarBase
)
696 EVT_SIZE(wxToolBarMSW::OnSize
)
697 EVT_PAINT(wxToolBarMSW::OnPaint
)
698 EVT_MOUSE_EVENTS(wxToolBarMSW::OnMouseEvent
)
701 BEGIN_EVENT_TABLE(wxToolBar95
, wxToolBarBase
)
702 EVT_SIZE(wxToolBar95::OnSize
)
703 EVT_PAINT(wxToolBar95::OnPaint
)
704 EVT_KILL_FOCUS(wxToolBar95::OnKillFocus
)
705 EVT_MOUSE_EVENTS(wxToolBar95::OnMouseEvent
)
706 EVT_SYS_COLOUR_CHANGED(wxToolBar95::OnSysColourChanged
)
710 BEGIN_EVENT_TABLE(wxGenericGrid
, wxPanel
)
711 EVT_SIZE(wxGenericGrid::OnSize
)
712 EVT_PAINT(wxGenericGrid::OnPaint
)
713 EVT_MOUSE_EVENTS(wxGenericGrid::OnMouseEvent
)
714 EVT_TEXT(wxGRID_TEXT_CTRL
, wxGenericGrid::OnText
)
715 EVT_COMMAND_SCROLL(wxGRID_HSCROLL
, wxGenericGrid::OnGridScroll
)
716 EVT_COMMAND_SCROLL(wxGRID_VSCROLL
, wxGenericGrid::OnGridScroll
)
719 BEGIN_EVENT_TABLE(wxControl
, wxWindow
)
720 EVT_ERASE_BACKGROUND(wxControl::OnEraseBackground
)
723 #if !defined(__WXMSW__) || wxUSE_GENERIC_DIALOGS_IN_MSW
724 BEGIN_EVENT_TABLE(wxGenericMessageDialog
, wxDialog
)
725 EVT_BUTTON(wxID_YES
, wxGenericMessageDialog::OnYes
)
726 EVT_BUTTON(wxID_NO
, wxGenericMessageDialog::OnNo
)
727 EVT_BUTTON(wxID_CANCEL
, wxGenericMessageDialog::OnCancel
)
730 BEGIN_EVENT_TABLE(wxGenericColourDialog
, wxDialog
)
731 EVT_BUTTON(wxID_ADD_CUSTOM
, wxGenericColourDialog::OnAddCustom
)
732 EVT_SLIDER(wxID_RED_SLIDER
, wxGenericColourDialog::OnRedSlider
)
733 EVT_SLIDER(wxID_GREEN_SLIDER
, wxGenericColourDialog::OnGreenSlider
)
734 EVT_SLIDER(wxID_BLUE_SLIDER
, wxGenericColourDialog::OnBlueSlider
)
735 EVT_PAINT(wxGenericColourDialog::OnPaint
)
736 EVT_MOUSE_EVENTS(wxGenericColourDialog::OnMouseEvent
)
739 BEGIN_EVENT_TABLE(wxGenericFontDialog
, wxDialog
)
740 EVT_CHECKBOX(wxID_FONT_UNDERLINE
, wxGenericFontDialog::OnChangeFont
)
741 EVT_CHOICE(wxID_FONT_STYLE
, wxGenericFontDialog::OnChangeFont
)
742 EVT_CHOICE(wxID_FONT_WEIGHT
, wxGenericFontDialog::OnChangeFont
)
743 EVT_CHOICE(wxID_FONT_FAMILY
, wxGenericFontDialog::OnChangeFont
)
744 EVT_CHOICE(wxID_FONT_COLOUR
, wxGenericFontDialog::OnChangeFont
)
745 EVT_CHOICE(wxID_FONT_SIZE
, wxGenericFontDialog::OnChangeFont
)
746 EVT_PAINT(wxGenericFontDialog::OnPaint
)
749 BEGIN_EVENT_TABLE(wxGenericPrintDialog
, wxDialog
)
750 EVT_BUTTON(wxID_OK
, wxGenericPrintDialog::OnOK
)
751 EVT_BUTTON(wxPRINTID_SETUP
, wxGenericPrintDialog::OnSetup
)
752 EVT_RADIOBOX(wxPRINTID_RANGE
, wxGenericPrintDialog::OnRange
)
757 BEGIN_EVENT_TABLE(wxTextEntryDialog
, wxDialog
)
758 EVT_BUTTON(wxID_OK
, wxTextEntryDialog::OnOK
)
761 BEGIN_EVENT_TABLE(wxSingleChoiceDialog
, wxDialog
)
762 EVT_BUTTON(wxID_OK
, wxSingleChoiceDialog::OnOK
)
765 #include "wx/prntbase.h"
767 BEGIN_EVENT_TABLE(wxPrintAbortDialog
, wxDialog
)
768 EVT_BUTTON(wxID_CANCEL
, wxPrintAbortDialog::OnCancel
)
771 BEGIN_EVENT_TABLE(wxPreviewControlBar
, wxWindow
)
772 EVT_BUTTON(wxID_PREVIEW_CLOSE
, wxPreviewControlBar::OnClose
)
773 EVT_BUTTON(wxID_PREVIEW_PRINT
, wxPreviewControlBar::OnPrint
)
774 EVT_BUTTON(wxID_PREVIEW_PREVIOUS
, wxPreviewControlBar::OnPrevious
)
775 EVT_BUTTON(wxID_PREVIEW_NEXT
, wxPreviewControlBar::OnNext
)
776 EVT_CHOICE(wxID_PREVIEW_ZOOM
, wxPreviewControlBar::OnZoom
)
782 const wxSize
wxDefaultSize(-1, -1);
783 const wxPoint
wxDefaultPosition(-1, -1);