moving XRC to the core

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-09-18 08:53:16 +00:00
parent a6c23e02f5
commit a1e4ec8731
40 changed files with 138 additions and 59 deletions

View File

@@ -16,6 +16,9 @@
#endif #endif
#include "wx/defs.h" #include "wx/defs.h"
#if wxUSE_XRC
#include "wx/string.h" #include "wx/string.h"
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/datetime.h" #include "wx/datetime.h"
@@ -489,5 +492,6 @@ public:
#define GetXMLID GetXRCID #define GetXMLID GetXRCID
#endif #endif
#endif // wxUSE_XRC
#endif // _WX_XMLRES_H_ #endif // _WX_XMLRES_H_

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_bmp.h" #include "wx/xrc/xh_bmp.h"
#include "wx/bitmap.h" #include "wx/bitmap.h"
@@ -55,3 +57,5 @@ bool wxIconXmlHandler::CanHandle(wxXmlNode *node)
{ {
return IsOfClass(node, wxT("wxIcon")); return IsOfClass(node, wxT("wxIcon"));
} }
#endif // wxUSE_XRC

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_bmpbt.h" #include "wx/xrc/xh_bmpbt.h"
#include <wx/bmpbuttn.h> #include <wx/bmpbuttn.h>
@@ -65,3 +67,5 @@ bool wxBitmapButtonXmlHandler::CanHandle(wxXmlNode *node)
{ {
return IsOfClass(node, wxT("wxBitmapButton")); return IsOfClass(node, wxT("wxBitmapButton"));
} }
#endif // wxUSE_XRC

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_bttn.h" #include "wx/xrc/xh_bttn.h"
#include "wx/button.h" #include "wx/button.h"
@@ -58,3 +60,5 @@ bool wxButtonXmlHandler::CanHandle(wxXmlNode *node)
{ {
return IsOfClass(node, wxT("wxButton")); return IsOfClass(node, wxT("wxButton"));
} }
#endif // wxUSE_XRC

View File

@@ -19,9 +19,7 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/setup.h" #if wxUSE_XRC && wxUSE_CALENDARCTRL
#if wxUSE_CALENDARCTRL
#include "wx/xrc/xh_cald.h" #include "wx/xrc/xh_cald.h"
#include "wx/event.h" #include "wx/event.h"
@@ -66,4 +64,4 @@ bool wxCalendarCtrlXmlHandler::CanHandle(wxXmlNode *node)
return IsOfClass(node, wxT("wxCalendarCtrl")); return IsOfClass(node, wxT("wxCalendarCtrl"));
} }
#endif #endif // wxUSE_XRC && wxUSE_CALENDARCTRL

View File

@@ -19,11 +19,11 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC && wxUSE_CHECKBOX
#include "wx/xrc/xh_chckb.h" #include "wx/xrc/xh_chckb.h"
#include "wx/checkbox.h" #include "wx/checkbox.h"
#if wxUSE_CHECKBOX
IMPLEMENT_DYNAMIC_CLASS(wxCheckBoxXmlHandler, wxXmlResourceHandler) IMPLEMENT_DYNAMIC_CLASS(wxCheckBoxXmlHandler, wxXmlResourceHandler)
wxCheckBoxXmlHandler::wxCheckBoxXmlHandler() wxCheckBoxXmlHandler::wxCheckBoxXmlHandler()
@@ -59,4 +59,4 @@ bool wxCheckBoxXmlHandler::CanHandle(wxXmlNode *node)
return IsOfClass(node, wxT("wxCheckBox")); return IsOfClass(node, wxT("wxCheckBox"));
} }
#endif #endif // wxUSE_XRC && wxUSE_CHECKBOX

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#if wxUSE_OWNER_DRAWN || !defined(__WXMSW__) #if wxUSE_OWNER_DRAWN || !defined(__WXMSW__)
#include "wx/xrc/xh_chckl.h" #include "wx/xrc/xh_chckl.h"
@@ -129,5 +131,6 @@ bool wxCheckListBoxXmlHandler::CanHandle(wxXmlNode *node)
(m_insideBox && node->GetName() == wxT("item"))); (m_insideBox && node->GetName() == wxT("item")));
} }
#endif #endif // wxUSE_OWNER_DRAWN || !defined(__WXMSW__)
#endif // wxUSE_XRC

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_choic.h" #include "wx/xrc/xh_choic.h"
#include "wx/choice.h" #include "wx/choice.h"
#include "wx/intl.h" #include "wx/intl.h"
@@ -93,3 +95,5 @@ bool wxChoiceXmlHandler::CanHandle(wxXmlNode *node)
return (IsOfClass(node, wxT("wxChoice")) || return (IsOfClass(node, wxT("wxChoice")) ||
(m_insideBox && node->GetName() == wxT("item"))); (m_insideBox && node->GetName() == wxT("item")));
} }
#endif // wxUSE_XRC

View File

@@ -19,12 +19,12 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC && wxUSE_COMBOBOX
#include "wx/xrc/xh_combo.h" #include "wx/xrc/xh_combo.h"
#include "wx/combobox.h" #include "wx/combobox.h"
#include "wx/intl.h" #include "wx/intl.h"
#if wxUSE_COMBOBOX
IMPLEMENT_DYNAMIC_CLASS(wxComboBoxXmlHandler, wxXmlResourceHandler) IMPLEMENT_DYNAMIC_CLASS(wxComboBoxXmlHandler, wxXmlResourceHandler)
wxComboBoxXmlHandler::wxComboBoxXmlHandler() wxComboBoxXmlHandler::wxComboBoxXmlHandler()
@@ -100,4 +100,4 @@ bool wxComboBoxXmlHandler::CanHandle(wxXmlNode *node)
(m_insideBox && node->GetName() == wxT("item"))); (m_insideBox && node->GetName() == wxT("item")));
} }
#endif #endif // wxUSE_XRC && wxUSE_COMBOBOX

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_dlg.h" #include "wx/xrc/xh_dlg.h"
#include "wx/dialog.h" #include "wx/dialog.h"
#include "wx/log.h" #include "wx/log.h"
@@ -79,3 +81,5 @@ bool wxDialogXmlHandler::CanHandle(wxXmlNode *node)
{ {
return IsOfClass(node, wxT("wxDialog")); return IsOfClass(node, wxT("wxDialog"));
} }
#endif // wxUSE_XRC

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_frame.h" #include "wx/xrc/xh_frame.h"
#include "wx/frame.h" #include "wx/frame.h"
#include "wx/dialog.h" // to get wxDEFAULT_DIALOG_STYLE #include "wx/dialog.h" // to get wxDEFAULT_DIALOG_STYLE
@@ -84,3 +86,5 @@ bool wxFrameXmlHandler::CanHandle(wxXmlNode *node)
{ {
return IsOfClass(node, wxT("wxFrame")); return IsOfClass(node, wxT("wxFrame"));
} }
#endif // wxUSE_XRC

View File

@@ -19,11 +19,11 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC && wxUSE_GAUGE
#include "wx/xrc/xh_gauge.h" #include "wx/xrc/xh_gauge.h"
#include "wx/gauge.h" #include "wx/gauge.h"
#if wxUSE_GAUGE
IMPLEMENT_DYNAMIC_CLASS(wxGaugeXmlHandler, wxXmlResourceHandler) IMPLEMENT_DYNAMIC_CLASS(wxGaugeXmlHandler, wxXmlResourceHandler)
wxGaugeXmlHandler::wxGaugeXmlHandler() wxGaugeXmlHandler::wxGaugeXmlHandler()
@@ -71,4 +71,4 @@ bool wxGaugeXmlHandler::CanHandle(wxXmlNode *node)
return IsOfClass(node, wxT("wxGauge")); return IsOfClass(node, wxT("wxGauge"));
} }
#endif // wxUSE_GAUGE #endif // wxUSE_XRC && wxUSE_GAUGE

View File

@@ -19,8 +19,7 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/defs.h" #if wxUSE_XRC && wxUSE_DIRDLG
#if wxUSE_DIRDLG
#include "wx/textctrl.h" #include "wx/textctrl.h"
#include "wx/xrc/xh_gdctl.h" #include "wx/xrc/xh_gdctl.h"
@@ -61,4 +60,4 @@ bool wxGenericDirCtrlXmlHandler::CanHandle(wxXmlNode *node)
return IsOfClass(node, wxT("wxGenericDirCtrl")); return IsOfClass(node, wxT("wxGenericDirCtrl"));
} }
#endif #endif // wxUSE_XRC && wxUSE_DIRDLG

View File

@@ -19,9 +19,9 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/xrc/xh_html.h" #if wxUSE_XRC && wxUSE_HTML
#if wxUSE_HTML #include "wx/xrc/xh_html.h"
#include "wx/html/htmlwin.h" #include "wx/html/htmlwin.h"
#include "wx/filesys.h" #include "wx/filesys.h"
@@ -82,4 +82,4 @@ bool wxHtmlWindowXmlHandler::CanHandle(wxXmlNode *node)
return IsOfClass(node, wxT("wxHtmlWindow")); return IsOfClass(node, wxT("wxHtmlWindow"));
} }
#endif // wxUSE_HTML #endif // wxUSE_XRC && wxUSE_HTML

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_listb.h" #include "wx/xrc/xh_listb.h"
#include "wx/listbox.h" #include "wx/listbox.h"
#include "wx/intl.h" #include "wx/intl.h"
@@ -99,3 +101,5 @@ bool wxListBoxXmlHandler::CanHandle(wxXmlNode *node)
return (IsOfClass(node, wxT("wxListBox")) || return (IsOfClass(node, wxT("wxListBox")) ||
(m_insideBox && node->GetName() == wxT("item"))); (m_insideBox && node->GetName() == wxT("item")));
} }
#endif // wxUSE_XRC

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/textctrl.h" #include "wx/textctrl.h"
#include "wx/xrc/xh_listc.h" #include "wx/xrc/xh_listc.h"
#include "wx/listctrl.h" #include "wx/listctrl.h"
@@ -71,3 +73,5 @@ bool wxListCtrlXmlHandler::CanHandle(wxXmlNode *node)
{ {
return IsOfClass(node, wxT("wxListCtrl")); return IsOfClass(node, wxT("wxListCtrl"));
} }
#endif // wxUSE_XRC

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_menu.h" #include "wx/xrc/xh_menu.h"
#include "wx/menu.h" #include "wx/menu.h"
#include "wx/frame.h" #include "wx/frame.h"
@@ -139,3 +141,5 @@ bool wxMenuBarXmlHandler::CanHandle(wxXmlNode *node)
{ {
return IsOfClass(node, wxT("wxMenuBar")); return IsOfClass(node, wxT("wxMenuBar"));
} }
#endif // wxUSE_XRC

View File

@@ -19,9 +19,9 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/xrc/xh_notbk.h" #if wxUSE_XRC && wxUSE_NOTEBOOK
#if wxUSE_NOTEBOOK #include "wx/xrc/xh_notbk.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/notebook.h" #include "wx/notebook.h"
@@ -98,4 +98,4 @@ bool wxNotebookXmlHandler::CanHandle(wxXmlNode *node)
(m_isInside && IsOfClass(node, wxT("notebookpage")))); (m_isInside && IsOfClass(node, wxT("notebookpage"))));
} }
#endif #endif // wxUSE_XRC && wxUSE_NOTEBOOK

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_panel.h" #include "wx/xrc/xh_panel.h"
#include "wx/panel.h" #include "wx/panel.h"
#include "wx/frame.h" // to get wxNO_3D #include "wx/frame.h" // to get wxNO_3D
@@ -54,3 +56,5 @@ bool wxPanelXmlHandler::CanHandle(wxXmlNode *node)
{ {
return IsOfClass(node, wxT("wxPanel")); return IsOfClass(node, wxT("wxPanel"));
} }
#endif // wxUSE_XRC

View File

@@ -19,11 +19,11 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC && wxUSE_RADIOBOX
#include "wx/xrc/xh_radbt.h" #include "wx/xrc/xh_radbt.h"
#include "wx/radiobut.h" #include "wx/radiobut.h"
#if wxUSE_RADIOBOX
IMPLEMENT_DYNAMIC_CLASS(wxRadioButtonXmlHandler, wxXmlResourceHandler) IMPLEMENT_DYNAMIC_CLASS(wxRadioButtonXmlHandler, wxXmlResourceHandler)
wxRadioButtonXmlHandler::wxRadioButtonXmlHandler() wxRadioButtonXmlHandler::wxRadioButtonXmlHandler()
@@ -63,4 +63,4 @@ bool wxRadioButtonXmlHandler::CanHandle(wxXmlNode *node)
return IsOfClass(node, wxT("wxRadioButton")); return IsOfClass(node, wxT("wxRadioButton"));
} }
#endif #endif // wxUSE_XRC && wxUSE_NOTEBOOK

View File

@@ -19,12 +19,12 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC && wxUSE_RADIOBOX
#include "wx/xrc/xh_radbx.h" #include "wx/xrc/xh_radbx.h"
#include "wx/radiobox.h" #include "wx/radiobox.h"
#include "wx/intl.h" #include "wx/intl.h"
#if wxUSE_RADIOBOX
IMPLEMENT_DYNAMIC_CLASS(wxRadioBoxXmlHandler, wxXmlResourceHandler) IMPLEMENT_DYNAMIC_CLASS(wxRadioBoxXmlHandler, wxXmlResourceHandler)
wxRadioBoxXmlHandler::wxRadioBoxXmlHandler() wxRadioBoxXmlHandler::wxRadioBoxXmlHandler()
@@ -102,4 +102,4 @@ bool wxRadioBoxXmlHandler::CanHandle(wxXmlNode *node)
(m_insideBox && node->GetName() == wxT("item"))); (m_insideBox && node->GetName() == wxT("item")));
} }
#endif #endif // wxUSE_XRC && wxUSE_RADIOBOX

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_scrol.h" #include "wx/xrc/xh_scrol.h"
#include "wx/scrolbar.h" #include "wx/scrolbar.h"
@@ -58,3 +60,5 @@ bool wxScrollBarXmlHandler::CanHandle(wxXmlNode *node)
{ {
return IsOfClass(node, wxT("wxScrollBar")); return IsOfClass(node, wxT("wxScrollBar"));
} }
#endif // wxUSE_XRC

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_scwin.h" #include "wx/xrc/xh_scwin.h"
#include "wx/scrolwin.h" #include "wx/scrolwin.h"
#include "wx/frame.h" // to get wxNO_3D #include "wx/frame.h" // to get wxNO_3D
@@ -59,3 +61,5 @@ bool wxScrolledWindowXmlHandler::CanHandle(wxXmlNode *node)
{ {
return IsOfClass(node, wxT("wxScrolledWindow")); return IsOfClass(node, wxT("wxScrolledWindow"));
} }
#endif // wxUSE_XRC

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_sizer.h" #include "wx/xrc/xh_sizer.h"
#include "wx/sizer.h" #include "wx/sizer.h"
#include "wx/gbsizer.h" #include "wx/gbsizer.h"
@@ -361,12 +363,4 @@ void wxSizerXmlHandler::AddSizerItem(wxSizerItem* sitem)
m_parentSizer->Add(sitem); m_parentSizer->Add(sitem);
} }
#endif // wxUSE_XRC

View File

@@ -19,11 +19,11 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC && wxUSE_SLIDER
#include "wx/xrc/xh_slidr.h" #include "wx/xrc/xh_slidr.h"
#include "wx/slider.h" #include "wx/slider.h"
#if wxUSE_SLIDER
IMPLEMENT_DYNAMIC_CLASS(wxSliderXmlHandler, wxXmlResourceHandler) IMPLEMENT_DYNAMIC_CLASS(wxSliderXmlHandler, wxXmlResourceHandler)
wxSliderXmlHandler::wxSliderXmlHandler() wxSliderXmlHandler::wxSliderXmlHandler()
@@ -91,4 +91,4 @@ bool wxSliderXmlHandler::CanHandle(wxXmlNode *node)
return IsOfClass(node, wxT("wxSlider")); return IsOfClass(node, wxT("wxSlider"));
} }
#endif #endif // wxUSE_XRC && wxUSE_SLIDER

View File

@@ -19,11 +19,11 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC && wxUSE_SPINBTN
#include "wx/xrc/xh_spin.h" #include "wx/xrc/xh_spin.h"
#include "wx/spinctrl.h" #include "wx/spinctrl.h"
#if wxUSE_SPINBTN
IMPLEMENT_DYNAMIC_CLASS(wxSpinButtonXmlHandler, wxXmlResourceHandler) IMPLEMENT_DYNAMIC_CLASS(wxSpinButtonXmlHandler, wxXmlResourceHandler)
wxSpinButtonXmlHandler::wxSpinButtonXmlHandler() wxSpinButtonXmlHandler::wxSpinButtonXmlHandler()
@@ -98,4 +98,4 @@ bool wxSpinCtrlXmlHandler::CanHandle(wxXmlNode *node)
return IsOfClass(node, wxT("wxSpinCtrl")); return IsOfClass(node, wxT("wxSpinCtrl"));
} }
#endif // wxUSE_SPINCTRL #endif // wxUSE_XRC && wxUSE_SPINCTRL

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_split.h" #include "wx/xrc/xh_split.h"
#include "wx/splitter.h" #include "wx/splitter.h"
#include "wx/log.h" #include "wx/log.h"
@@ -103,4 +105,4 @@ bool wxSplitterWindowXmlHandler::CanHandle(wxXmlNode *node)
return IsOfClass(node, wxT("wxSplitterWindow")); return IsOfClass(node, wxT("wxSplitterWindow"));
} }
#endif // wxUSE_XRC

View File

@@ -19,12 +19,12 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC && wxUSE_STATUSBAR
#include "wx/frame.h" #include "wx/frame.h"
#include "wx/string.h" #include "wx/string.h"
#include "wx/log.h" #include "wx/log.h"
#if wxUSE_STATUSBAR
#include "wx/xrc/xh_statbar.h" #include "wx/xrc/xh_statbar.h"
#include "wx/statusbr.h" #include "wx/statusbr.h"
@@ -105,5 +105,5 @@ bool wxStatusBarXmlHandler::CanHandle(wxXmlNode *node)
return IsOfClass(node, wxT("wxStatusBar")); return IsOfClass(node, wxT("wxStatusBar"));
} }
#endif #endif // wxUSE_XRC && wxUSE_STATUSBAR

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_stbmp.h" #include "wx/xrc/xh_stbmp.h"
#include "wx/statbmp.h" #include "wx/statbmp.h"
@@ -50,3 +52,5 @@ bool wxStaticBitmapXmlHandler::CanHandle(wxXmlNode *node)
{ {
return IsOfClass(node, wxT("wxStaticBitmap")); return IsOfClass(node, wxT("wxStaticBitmap"));
} }
#endif // wxUSE_XRC

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_stbox.h" #include "wx/xrc/xh_stbox.h"
#include "wx/statbox.h" #include "wx/statbox.h"
@@ -50,3 +52,5 @@ bool wxStaticBoxXmlHandler::CanHandle(wxXmlNode *node)
{ {
return IsOfClass(node, wxT("wxStaticBox")); return IsOfClass(node, wxT("wxStaticBox"));
} }
#endif // wxUSE_XRC

View File

@@ -19,11 +19,11 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC && wxUSE_STATLINE
#include "wx/xrc/xh_stlin.h" #include "wx/xrc/xh_stlin.h"
#include "wx/statline.h" #include "wx/statline.h"
#if wxUSE_STATLINE
IMPLEMENT_DYNAMIC_CLASS(wxStaticLineXmlHandler, wxXmlResourceHandler) IMPLEMENT_DYNAMIC_CLASS(wxStaticLineXmlHandler, wxXmlResourceHandler)
wxStaticLineXmlHandler::wxStaticLineXmlHandler() wxStaticLineXmlHandler::wxStaticLineXmlHandler()
@@ -54,4 +54,4 @@ bool wxStaticLineXmlHandler::CanHandle(wxXmlNode *node)
return IsOfClass(node, wxT("wxStaticLine")); return IsOfClass(node, wxT("wxStaticLine"));
} }
#endif #endif // wxUSE_XRC && wxUSE_STATLINE

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_sttxt.h" #include "wx/xrc/xh_sttxt.h"
#include "wx/stattext.h" #include "wx/stattext.h"
@@ -54,3 +56,5 @@ bool wxStaticTextXmlHandler::CanHandle(wxXmlNode *node)
{ {
return IsOfClass(node, wxT("wxStaticText")); return IsOfClass(node, wxT("wxStaticText"));
} }
#endif // wxUSE_XRC

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_text.h" #include "wx/xrc/xh_text.h"
#include "wx/textctrl.h" #include "wx/textctrl.h"
@@ -68,3 +70,5 @@ bool wxTextCtrlXmlHandler::CanHandle(wxXmlNode *node)
{ {
return IsOfClass(node, wxT("wxTextCtrl")); return IsOfClass(node, wxT("wxTextCtrl"));
} }
#endif // wxUSE_XRC

View File

@@ -19,11 +19,11 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC && wxUSE_TOGGLEBTN
#include "wx/xrc/xh_tglbtn.h" #include "wx/xrc/xh_tglbtn.h"
#include "wx/tglbtn.h" #include "wx/tglbtn.h"
#if wxUSE_TOGGLEBTN
IMPLEMENT_DYNAMIC_CLASS(wxToggleButtonXmlHandler, wxXmlResourceHandler) IMPLEMENT_DYNAMIC_CLASS(wxToggleButtonXmlHandler, wxXmlResourceHandler)
wxToggleButtonXmlHandler::wxToggleButtonXmlHandler() wxToggleButtonXmlHandler::wxToggleButtonXmlHandler()
@@ -55,4 +55,4 @@ bool wxToggleButtonXmlHandler::CanHandle(wxXmlNode *node)
return IsOfClass(node, wxT("wxToggleButton")); return IsOfClass(node, wxT("wxToggleButton"));
} }
#endif #endif // wxUSE_XRC && wxUSE_TOGGLEBTN

View File

@@ -19,12 +19,12 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC && wxUSE_TOOLBAR
#include "wx/xrc/xh_toolb.h" #include "wx/xrc/xh_toolb.h"
#include "wx/toolbar.h" #include "wx/toolbar.h"
#include "wx/frame.h" #include "wx/frame.h"
#if wxUSE_TOOLBAR
IMPLEMENT_DYNAMIC_CLASS(wxToolBarXmlHandler, wxXmlResourceHandler) IMPLEMENT_DYNAMIC_CLASS(wxToolBarXmlHandler, wxXmlResourceHandler)
wxToolBarXmlHandler::wxToolBarXmlHandler() wxToolBarXmlHandler::wxToolBarXmlHandler()
@@ -167,4 +167,4 @@ bool wxToolBarXmlHandler::CanHandle(wxXmlNode *node)
(m_isInside && IsOfClass(node, wxT("separator")))); (m_isInside && IsOfClass(node, wxT("separator"))));
} }
#endif #endif // wxUSE_XRC && wxUSE_TOOLBAR

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_tree.h" #include "wx/xrc/xh_tree.h"
#include "wx/treectrl.h" #include "wx/treectrl.h"
@@ -64,3 +66,5 @@ bool wxTreeCtrlXmlHandler::CanHandle(wxXmlNode *node)
{ {
return IsOfClass(node, wxT("wxTreeCtrl")); return IsOfClass(node, wxT("wxTreeCtrl"));
} }
#endif // wxUSE_XRC

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xh_unkwn.h" #include "wx/xrc/xh_unkwn.h"
#include "wx/window.h" #include "wx/window.h"
#include "wx/log.h" #include "wx/log.h"
@@ -106,3 +108,4 @@ bool wxUnknownWidgetXmlHandler::CanHandle(wxXmlNode *node)
return IsOfClass(node, wxT("unknown")); return IsOfClass(node, wxT("unknown"));
} }
#endif // wxUSE_XRC

View File

@@ -19,7 +19,7 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_WIZARDDLG #if wxUSE_XRC && wxUSE_WIZARDDLG
#include "wx/xrc/xh_wizrd.h" #include "wx/xrc/xh_wizrd.h"
#include "wx/log.h" #include "wx/log.h"
@@ -99,4 +99,4 @@ bool wxWizardXmlHandler::CanHandle(wxXmlNode *node)
); );
} }
#endif // wxUSE_WIZARDDLG #endif // wxUSE_XRC && wxUSE_WIZARDDLG

View File

@@ -19,6 +19,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/dialog.h" #include "wx/dialog.h"
#include "wx/panel.h" #include "wx/panel.h"
#include "wx/frame.h" #include "wx/frame.h"
@@ -1427,3 +1429,5 @@ void wxXmlInitResourceModule()
module->Init(); module->Init();
wxModule::RegisterModule(module); wxModule::RegisterModule(module);
} }
#endif // wxUSE_XRC

View File

@@ -20,6 +20,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_XRC
#include "wx/xrc/xmlres.h" #include "wx/xrc/xmlres.h"
#include "wx/xrc/xh_all.h" #include "wx/xrc/xh_all.h"
@@ -106,3 +108,5 @@ void wxXmlResource::InitAllHandlers()
AddHandler(new wxStatusBarXmlHandler); AddHandler(new wxStatusBarXmlHandler);
#endif #endif
} }
#endif // wxUSE_XRC