1
/***************************************************************
2
* Name: DragScrollEvent
4
* Purpose: This class implements the events sent by/for a
5
* DragScroll request to the
6
* DragScroll plugin to request services such as
7
* start/end scroll monitoring of an open window.
8
* wxCommandEvent m_id contains a window id.
14
**************************************************************/
15
#ifndef DRAGSCROLL_EVENT_H
16
#define DRAGSCROLL_EVENT_H
22
idDragScrollAddWindow = 1,
23
idDragScrollRemoveWindow,
25
idDragScrollReadConfig,
26
idDragScrollInvokeConfig
28
// ----------------------------------------------------------------------------
29
class DragScrollEvent : public wxCommandEvent
30
// ----------------------------------------------------------------------------
34
DragScrollEvent(wxEventType commandType = wxEVT_NULL, int id = 0);
36
/** Copy constructor. */
37
DragScrollEvent( const DragScrollEvent& event);
42
virtual wxEvent* Clone() const { return new DragScrollEvent(*this);}
44
DECLARE_DYNAMIC_CLASS(DragScrollEvent);
46
wxString GetEventTypeLabel() const {return m_EventTypeLabel;}
48
bool PostDragScrollEvent(const cbPlugin* targetWin);
49
bool ProcessDragScrollEvent(const cbPlugin* targetWin);
53
//-wxWindow* m_pWindow;
54
wxString m_EventTypeLabel;
57
typedef void (wxEvtHandler::*DragScrollEventFunction)(DragScrollEvent&);
60
extern const wxEventType wxEVT_DRAGSCROLL_EVENT;
61
#define EVT_DRAGSCROLL_EVENT(id, fn) \
62
DECLARE_EVENT_TABLE_ENTRY(wxEVT_DRAGSCROLL_EVENT, id, -1, \
63
(wxObjectEventFunction)(wxEventFunction) (DragScrollEventFunction) & fn,(wxObject *) NULL ),
65
#endif // DRAGSCROLL_EVENT_H