Code::Blocks
SVN r11506
include
misctreeitemdata.h
Go to the documentation of this file.
1
/*
2
* This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3
* http://www.gnu.org/licenses/lgpl-3.0.html
4
*/
5
6
#ifndef MISCTREEITEMDATA_H
7
#define MISCTREEITEMDATA_H
8
9
#include <
wx/treectrl.h
>
10
11
/* New class: MiscTreeItemData.
12
* This class allows a TreeData to be created specifying
13
* which Event Handler should process its related events.
14
*/
15
16
class
DLLIMPORT
MiscTreeItemData
:
public
wxTreeItemData
17
{
18
public
:
19
MiscTreeItemData
():m_owner(0L) {}
20
wxEvtHandler
*
GetOwner
() {
return
m_owner; }
21
static
bool
OwnerCheck(
wxTreeEvent
& event,
wxTreeCtrl
*tree,
wxEvtHandler
*handler,
bool
strict=
false
);
22
~MiscTreeItemData
()
override
{ m_owner=0L; }
23
protected
:
24
void
SetOwner
(
wxEvtHandler
*owner) { m_owner=owner; }
25
private
:
26
wxEvtHandler
*
m_owner
;
27
};
28
29
#endif // MISCTREEITEMDATA_H
treectrl.h
MiscTreeItemData::m_owner
wxEvtHandler * m_owner
Definition:
misctreeitemdata.h:26
MiscTreeItemData::MiscTreeItemData
MiscTreeItemData()
Definition:
misctreeitemdata.h:19
MiscTreeItemData::GetOwner
wxEvtHandler * GetOwner()
Definition:
misctreeitemdata.h:20
DLLIMPORT
#define DLLIMPORT
Definition:
settings.h:16
MiscTreeItemData::SetOwner
void SetOwner(wxEvtHandler *owner)
Definition:
misctreeitemdata.h:24
MiscTreeItemData::~MiscTreeItemData
~MiscTreeItemData() override
Definition:
misctreeitemdata.h:22
wxTreeEvent
wxTreeCtrl
MiscTreeItemData
Definition:
misctreeitemdata.h:16
wxEvtHandler
wxTreeItemData
Generated by
1.8.13