added wxRTTI to XRC handlers (patch #752996 by David Falkinder)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "wx/xrc/xh_bmp.h"
|
||||
#include "wx/bitmap.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxBitmapXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxBitmapXmlHandler::wxBitmapXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
@@ -38,6 +39,8 @@ bool wxBitmapXmlHandler::CanHandle(wxXmlNode *node)
|
||||
return IsOfClass(node, wxT("wxBitmap"));
|
||||
}
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxIconXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxIconXmlHandler::wxIconXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
{
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include "wx/xrc/xh_bmpbt.h"
|
||||
#include <wx/bmpbuttn.h>
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxBitmapButtonXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxBitmapButtonXmlHandler::wxBitmapButtonXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
{
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "wx/xrc/xh_bttn.h"
|
||||
#include "wx/button.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxButtonXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxButtonXmlHandler::wxButtonXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "wx/event.h"
|
||||
#include "wx/calctrl.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxCalendarCtrlXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxCalendarCtrlXmlHandler::wxCalendarCtrlXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
|
||||
#if wxUSE_CHECKBOX
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxCheckBoxXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxCheckBoxXmlHandler::wxCheckBoxXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
{
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
#include "wx/checklst.h"
|
||||
#include "wx/intl.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxCheckListXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxCheckListXmlHandler::wxCheckListXmlHandler()
|
||||
: wxXmlResourceHandler(), m_insideBox(FALSE)
|
||||
{
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
#include "wx/choice.h"
|
||||
#include "wx/intl.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxChoiceXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxChoiceXmlHandler::wxChoiceXmlHandler()
|
||||
: wxXmlResourceHandler() , m_insideBox(FALSE)
|
||||
{
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
|
||||
#if wxUSE_COMBOBOX
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxComboBoxXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxComboBoxXmlHandler::wxComboBoxXmlHandler()
|
||||
: wxXmlResourceHandler() , m_insideBox(FALSE)
|
||||
{
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "wx/log.h"
|
||||
#include "wx/intl.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxDialogXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxDialogXmlHandler::wxDialogXmlHandler() : wxXmlResourceHandler()
|
||||
{
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "wx/log.h"
|
||||
#include "wx/intl.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxFrameXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxFrameXmlHandler::wxFrameXmlHandler() : wxXmlResourceHandler()
|
||||
{
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
|
||||
#if wxUSE_GAUGE
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxGaugeXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxGaugeXmlHandler::wxGaugeXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
{
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
#include "wx/xrc/xh_gdctl.h"
|
||||
#include "wx/dirctrl.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxGenericDirCtrlXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxGenericDirCtrlXmlHandler::wxGenericDirCtrlXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
{
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "wx/html/htmlwin.h"
|
||||
#include "wx/filesys.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxHtmlWindowXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxHtmlWindowXmlHandler::wxHtmlWindowXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
#include "wx/listbox.h"
|
||||
#include "wx/intl.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBoxXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxListBoxXmlHandler::wxListBoxXmlHandler()
|
||||
: wxXmlResourceHandler() , m_insideBox(FALSE)
|
||||
{
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include "wx/listctrl.h"
|
||||
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListCtrlXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxListCtrlXmlHandler::wxListCtrlXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
{
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "wx/menu.h"
|
||||
#include "wx/frame.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxMenuXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxMenuXmlHandler::wxMenuXmlHandler() :
|
||||
wxXmlResourceHandler(), m_insideMenu(FALSE)
|
||||
@@ -110,6 +111,8 @@ bool wxMenuXmlHandler::CanHandle(wxXmlNode *node)
|
||||
);
|
||||
}
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxMenuBarXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxMenuBarXmlHandler::wxMenuBarXmlHandler() : wxXmlResourceHandler()
|
||||
{
|
||||
XRC_ADD_STYLE(wxMB_DOCKABLE);
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
#include "wx/notebook.h"
|
||||
#include "wx/sizer.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxNotebookXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxNotebookXmlHandler::wxNotebookXmlHandler()
|
||||
: wxXmlResourceHandler(), m_isInside(FALSE), m_notebook(NULL)
|
||||
{
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "wx/xrc/xh_panel.h"
|
||||
#include "wx/panel.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxPanelXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxPanelXmlHandler::wxPanelXmlHandler() : wxXmlResourceHandler()
|
||||
{
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
|
||||
#if wxUSE_RADIOBOX
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxRadioButtonXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxRadioButtonXmlHandler::wxRadioButtonXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
{
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
|
||||
#if wxUSE_RADIOBOX
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxRadioBoxXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxRadioBoxXmlHandler::wxRadioBoxXmlHandler()
|
||||
: wxXmlResourceHandler(), m_insideBox(FALSE)
|
||||
{
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "wx/xrc/xh_scrol.h"
|
||||
#include "wx/scrolbar.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxScrollBarXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxScrollBarXmlHandler::wxScrollBarXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "wx/xrc/xh_scwin.h"
|
||||
#include "wx/scrolwin.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxScrolledWindowXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxScrolledWindowXmlHandler::wxScrolledWindowXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
#include "wx/panel.h"
|
||||
#include "wx/tokenzr.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxSizerXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
bool wxSizerXmlHandler::IsSizerNode(wxXmlNode *node)
|
||||
{
|
||||
return (IsOfClass(node, wxT("wxBoxSizer"))) ||
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
|
||||
#if wxUSE_SLIDER
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxSliderXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxSliderXmlHandler::wxSliderXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
{
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
|
||||
#if wxUSE_SPINBTN
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxSpinButtonXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxSpinButtonXmlHandler::wxSpinButtonXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
{
|
||||
@@ -61,6 +63,8 @@ bool wxSpinButtonXmlHandler::CanHandle(wxXmlNode *node)
|
||||
|
||||
#if wxUSE_SPINCTRL
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxSpinCtrlXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxSpinCtrlXmlHandler::wxSpinCtrlXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
{
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
#include "wx/splitter.h"
|
||||
#include "wx/log.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxSplitterWindowXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxSplitterWindowXmlHandler::wxSplitterWindowXmlHandler() : wxXmlResourceHandler()
|
||||
{
|
||||
XRC_ADD_STYLE(wxSP_3D);
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include "wx/xrc/xh_stbmp.h"
|
||||
#include "wx/statbmp.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmapXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxStaticBitmapXmlHandler::wxStaticBitmapXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
{
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include "wx/xrc/xh_stbox.h"
|
||||
#include "wx/statbox.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxStaticBoxXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxStaticBoxXmlHandler::wxStaticBoxXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
{
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
|
||||
#if wxUSE_STATLINE
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxStaticLineXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxStaticLineXmlHandler::wxStaticLineXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
{
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include "wx/xrc/xh_sttxt.h"
|
||||
#include "wx/stattext.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxStaticTextXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxStaticTextXmlHandler::wxStaticTextXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
{
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include "wx/xrc/xh_text.h"
|
||||
#include "wx/textctrl.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxTextCtrlXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxTextCtrlXmlHandler::wxTextCtrlXmlHandler() : wxXmlResourceHandler()
|
||||
{
|
||||
XRC_ADD_STYLE(wxTE_PROCESS_ENTER);
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
|
||||
#if wxUSE_TOOLBAR
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxToolBarXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxToolBarXmlHandler::wxToolBarXmlHandler()
|
||||
: wxXmlResourceHandler(), m_isInside(FALSE), m_toolbar(NULL)
|
||||
{
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "wx/xrc/xh_tree.h"
|
||||
#include "wx/treectrl.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxTreeCtrlXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxTreeCtrlXmlHandler::wxTreeCtrlXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
|
||||
@@ -77,6 +77,8 @@ void wxUnknownControlContainer::RemoveChild(wxWindowBase *child)
|
||||
}
|
||||
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxUnknownWidgetXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxUnknownWidgetXmlHandler::wxUnknownWidgetXmlHandler()
|
||||
: wxXmlResourceHandler()
|
||||
{
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "wx/log.h"
|
||||
#include "wx/wizard.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxWizardXmlHandler, wxXmlResourceHandler)
|
||||
|
||||
wxWizardXmlHandler::wxWizardXmlHandler() : wxXmlResourceHandler()
|
||||
{
|
||||
|
||||
@@ -143,6 +143,7 @@ bool wxXmlResource::Load(const wxString& filemask)
|
||||
}
|
||||
|
||||
|
||||
IMPLEMENT_ABSTRACT_CLASS(wxXmlResourceHandler, wxObject)
|
||||
|
||||
void wxXmlResource::AddHandler(wxXmlResourceHandler *handler)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user