Add XRC handler for wxBannerWindow and a test for it to the xrc sample.
Also document the new XRC format elements. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
// Existing handlers:
|
||||
|
||||
#include "wx/xrc/xh_animatctrl.h"
|
||||
#include "wx/xrc/xh_bannerwindow.h"
|
||||
#include "wx/xrc/xh_bmp.h"
|
||||
#include "wx/xrc/xh_bmpbt.h"
|
||||
#include "wx/xrc/xh_bmpcbox.h"
|
||||
|
31
include/wx/xrc/xh_bannerwindow.h
Normal file
31
include/wx/xrc/xh_bannerwindow.h
Normal file
@@ -0,0 +1,31 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/xrc/xh_bannerwindow.h
|
||||
// Purpose: Declaration of wxBannerWindow XRC handler.
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2011-08-16
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_XH_BANNERWINDOW_H_
|
||||
#define _WX_XH_BANNERWINDOW_H_
|
||||
|
||||
#include "wx/xrc/xmlres.h"
|
||||
|
||||
#if wxUSE_XRC && wxUSE_BANNERWINDOW
|
||||
|
||||
class WXDLLIMPEXP_XRC wxBannerWindowXmlHandler : public wxXmlResourceHandler
|
||||
{
|
||||
public:
|
||||
wxBannerWindowXmlHandler();
|
||||
|
||||
virtual wxObject *DoCreateResource();
|
||||
virtual bool CanHandle(wxXmlNode *node);
|
||||
|
||||
wxDECLARE_DYNAMIC_CLASS(wxBannerWindowXmlHandler);
|
||||
};
|
||||
|
||||
#endif // wxUSE_XRC && wxUSE_BANNERWINDOW
|
||||
|
||||
#endif // _WX_XH_BANNERWINDOW_H_
|
Reference in New Issue
Block a user