Code::Blocks  SVN r11506
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 
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:
27 };
28 
29 #endif // MISCTREEITEMDATA_H
wxEvtHandler * m_owner
wxEvtHandler * GetOwner()
#define DLLIMPORT
Definition: settings.h:16
void SetOwner(wxEvtHandler *owner)
~MiscTreeItemData() override