1 #ifndef _WX_TASKBAR_H_BASE_
2 #define _WX_TASKBAR_H_BASE_
6 // ----------------------------------------------------------------------------
7 // wxTaskBarIconBase: define wxTaskBarIcon interface
8 // ----------------------------------------------------------------------------
10 class WXDLLEXPORT wxTaskBarIconBase
: public wxEvtHandler
15 // ----------------------------------------------------------------------------
16 // now include the actual class declaration
17 // ----------------------------------------------------------------------------
19 #if defined(__WXMSW__)
20 #include "wx/msw/taskbar.h"
21 #elif defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__)
22 #include "wx/unix/taskbarx11.h"
25 #if !defined(__WXCOCOA__) // && !defined(__WXOS2__) etc...
26 // ----------------------------------------------------------------------------
27 // wxTaskBarIcon events
28 // ----------------------------------------------------------------------------
30 class WXDLLEXPORT wxTaskBarIconEvent
: public wxEvent
33 wxTaskBarIconEvent(wxEventType evtType
, wxTaskBarIcon
*tbIcon
)
34 : wxEvent(-1, evtType
)
36 SetEventObject(tbIcon
);
39 virtual wxEvent
*Clone() const { return new wxTaskBarIconEvent(*this); }
42 BEGIN_DECLARE_EVENT_TYPES()
43 DECLARE_EVENT_TYPE( wxEVT_TASKBAR_MOVE
, 1550 )
44 DECLARE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_DOWN
, 1551 )
45 DECLARE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_UP
, 1552 )
46 DECLARE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_DOWN
, 1553 )
47 DECLARE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_UP
, 1554 )
48 DECLARE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_DCLICK
, 1555 )
49 DECLARE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_DCLICK
, 1556 )
50 END_DECLARE_EVENT_TYPES()
52 #define EVT_TASKBAR_MOVE(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_MOVE, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),
53 #define EVT_TASKBAR_LEFT_DOWN(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_LEFT_DOWN, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),
54 #define EVT_TASKBAR_LEFT_UP(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_LEFT_UP, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),
55 #define EVT_TASKBAR_RIGHT_DOWN(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_RIGHT_DOWN, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),
56 #define EVT_TASKBAR_RIGHT_UP(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_RIGHT_UP, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),
57 #define EVT_TASKBAR_LEFT_DCLICK(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_LEFT_DCLICK, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),
58 #define EVT_TASKBAR_RIGHT_DCLICK(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_RIGHT_DCLICK, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),
61 // !defined(__WXCOCOA__)
63 // _WX_TASKBAR_H_BASE_