2#ifndef wxtreemultievent_header
3#define wxtreemultievent_header
7#include "wxTreeMultiCtrl.h"
26 virtual wxEvent* Clone()
const {
36 this->m_Item = NewItem;
41 return this->m_OldItem;
45 this->m_OldItem = NewItem;
61BEGIN_DECLARE_EVENT_TYPES()
62DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_BEGIN_DRAG, -1)
63DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_BEGIN_RDRAG, -1)
64DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_BEGIN_LABEL_EDIT, -1)
65DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_END_LABEL_EDIT, -1)
66DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_DELETE_ITEM, -1)
67DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_GET_INFO, -1)
68DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_SET_INFO, -1)
69DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_ITEM_EXPANDED, -1)
70DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_ITEM_EXPANDING, -1)
71DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_ITEM_COLLAPSED, -1)
72DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_ITEM_COLLAPSING, -1)
73DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_SEL_CHANGED, -1)
74DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_SEL_CHANGING, -1)
75DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_KEY_DOWN, -1)
76DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_ITEM_ACTIVATED, -1)
77DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_ITEM_RIGHT_CLICK, -1)
78DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_ITEM_MIDDLE_CLICK, -1)
79DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_END_DRAG, -1)
80DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_STATE_IMAGE_CLICK, -1)
81DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_ITEM_GETTOOLTIP, -1)
82DECLARE_EVENT_TYPE(wxEVT_COMMAND_TREE_MULTI_ITEM_MENU, -1)
83END_DECLARE_EVENT_TYPES()
85#define wxTreeMultiEventHandler(func) \
86 (wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent(wxTreeMultiEventFunction, &func)
89#define EVT_TREE_MULTI_BEGIN_DRAG \
90 (id, fn) wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_BEGIN_DRAG, id, wxTreeMultiEventHandler(fn))
91#define EVT_TREE_MULTI_BEGIN_RDRAG(id, fn) \
92 wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_BEGIN_RDRAG, id, wxTreeMultiEventHandler(fn))
93#define EVT_TREE_MULTI_END_DRAG (id, fn) wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_END_DRAG, id, wxTreeMultiEventHandler(fn))
94#define EVT_TREE_MULTI_BEGIN_LABEL_EDIT(id, fn) \
95 wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, id, wxTreeMultiEventHandler(fn))
96#define EVT_TREE_MULTI_END_LABEL_EDIT(id, fn) \
97 wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_END_LABEL_EDIT, id, wxTreeMultiEventHandler(fn))
98#define EVT_TREE_MULTI_GET_INFO(id, fn) wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_GET_INFO, id, wxTreeMultiEventHandler(fn))
99#define EVT_TREE_MULTI_SET_INFO(id, fn) wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_SET_INFO, id, wxTreeMultiEventHandler(fn))
100#define EVT_TREE_MULTI_ITEM_EXPANDED(id, fn) \
101 wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_MULTI_ITEM_EXPANDED, id, wxTreeMultiEventHandler(fn))
102#define EVT_TREE_MULTI_ITEM_EXPANDING(id, fn) \
103 wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_MULTI_ITEM_EXPANDING, id, wxTreeMultiEventHandler(fn))
104#define EVT_TREE_MULTI_ITEM_COLLAPSED(id, fn) \
105 wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_MULTI_ITEM_COLLAPSED, id, wxTreeMultiEventHandler(fn))
106#define EVT_TREE_MULTI_ITEM_COLLAPSING(id, fn) \
107 wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_MULTI_ITEM_COLLAPSING, id, wxTreeMultiEventHandler(fn))
108#define EVT_TREE_MULTI_SEL_CHANGED(id, fn) \
109 wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_SEL_CHANGED, id, wxTreeMultiEventHandler(fn))
110#define EVT_TREE_MULTI_SEL_CHANGING(id, fn) \
111 wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_SEL_CHANGING, id, wxTreeMultiEventHandler(fn))
112#define EVT_TREE_MULTI_KEY_DOWN(id, fn) wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_KEY_DOWN, id, wxTreeMultiEventHandler(fn))
113#define EVT_TREE_MULTI_DELETE_ITEM(id, fn) \
114 wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_DELETE_ITEM, id, wxTreeMultiEventHandler(fn))
115#define EVT_TREE_MULTI_ITEM_ACTIVATED(id, fn) \
116 wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_MULTI_ITEM_ACTIVATED, id, wxTreeMultiEventHandler(fn))
117#define EVT_TREE_MULTI_ITEM_MENU(id, fn) \
118 wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_MULTI_ITEM_MENU, id, wxTreeMultiEventHandler(fn))
119#define EVT_TREE_MULTI_ITEM_RIGHT_CLICK(id, fn) \
120 wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_MULTI_ITEM_RIGHT_CLICK, id, wxTreeMultiEventHandler(fn))
121#define EVT_TREE_MULTI_ITEM_MIDDLE_CLICK(id, fn) \
122 wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_MULTI_ITEM_MIDDLE_CLICK, id, wxTreeMultiEventHandler(fn))
123#define EVT_TREE_MULTI_STATE_IMAGE_CLICK(id, fn) \
124 wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, id, wxTreeMultiEventHandler(fn))
125#define EVT_TREE_MULTI_ITEM_GETTOOLTIP(id, fn) \
126 wx__DECLARE_EVT1(wxEVT_COMMAND_TREE_MULTI_ITEM_GETTOOLTIP, id, wxTreeMultiEventHandler(fn))
Definition wxTreeMultiEvent.h:16
An intermediate class which is used to return as 'item' value for the wxTreeMultiCtrl....
Definition wxTreeMultiCtrl.h:173