Add XRC handler for wxAuiToolBar.

Also add the demonstration of AUI handlers (this one and the existing one for
wxAuiNotebook) to the xrc sample.

See #15686.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-11-23 00:34:55 +00:00
parent 76845041b7
commit f269f868d7
37 changed files with 856 additions and 39 deletions

View File

@@ -41,6 +41,11 @@
#include "wx/xrc/xh_ribbon.h"
#endif // wxUSE_RIBBON
#if wxUSE_AUI
#include "wx/xrc/xh_auinotbk.h"
#include "wx/xrc/xh_auitoolb.h"
#endif // wxUSE_AUI
#include "wx/cshelp.h" // wxSimpleHelpProvider for helptext
#include "myframe.h"
@@ -85,6 +90,11 @@ bool MyApp::OnInit()
wxXmlResource::Get()->AddHandler(new wxRibbonXmlHandler);
#endif
#if wxUSE_AUI
wxXmlResource::Get()->AddHandler(new wxAuiNotebookXmlHandler);
wxXmlResource::Get()->AddHandler(new wxAuiToolBarXmlHandler);
#endif
// Load all of the XRC files that will be used. You can put everything
// into one giant XRC file if you wanted, but then they become more
// diffcult to manage, and harder to reuse in later projects.