Add XRC handlers for wxDataViewCtrl and related classes
The same handler is also used for wxDataViewListCtrl and wxDataViewTreeCtrl. Closes #18424.
This commit is contained in:
committed by
Vadim Zeitlin
parent
6ee5184171
commit
584e2715eb
34
include/wx/xrc/xh_dataview.h
Normal file
34
include/wx/xrc/xh_dataview.h
Normal file
@@ -0,0 +1,34 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/xrc/xh_dataview.h
|
||||
// Purpose: XML resource handler for wxDataViewCtrl
|
||||
// Author: Anton Triest
|
||||
// Created: 2019/06/27
|
||||
// Copyright: (c) 2019 Anton Triest, Bricsys
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_XH_DATAVIEW_H_
|
||||
#define _WX_XH_DATAVIEW_H_
|
||||
|
||||
#include "wx/xrc/xmlres.h"
|
||||
|
||||
#if wxUSE_XRC && wxUSE_DATAVIEWCTRL
|
||||
|
||||
class WXDLLIMPEXP_XRC wxDataViewXmlHandler : public wxXmlResourceHandler
|
||||
{
|
||||
wxDECLARE_DYNAMIC_CLASS(wxDataViewXmlHandler);
|
||||
|
||||
public:
|
||||
wxDataViewXmlHandler();
|
||||
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxObject* HandleCtrl();
|
||||
wxObject* HandleListCtrl();
|
||||
wxObject* HandleTreeCtrl();
|
||||
};
|
||||
|
||||
#endif // wxUSE_XRC && wxUSE_DATAVIEWCTRL
|
||||
|
||||
#endif // _WX_XH_DATAVIEW_H_
|
Reference in New Issue
Block a user