]> git.saurik.com Git - wxWidgets.git/blob - include/wx/taskbar.h
Applied patch [ 743248 ] wxArray::RemoveAt() error message fix
[wxWidgets.git] / include / wx / taskbar.h
1 #ifndef _WX_TASKBAR_H_BASE_
2 #define _WX_TASKBAR_H_BASE_
3
4 #include "wx/event.h"
5
6 // ----------------------------------------------------------------------------
7 // wxTaskBarIconBase: define wxTaskBarIcon interface
8 // ----------------------------------------------------------------------------
9
10 class WXDLLEXPORT wxTaskBarIconBase : public wxEvtHandler
11 {
12 };
13
14
15 // ----------------------------------------------------------------------------
16 // now include the actual class declaration
17 // ----------------------------------------------------------------------------
18
19 #if defined(__WXMSW__)
20 #include "wx/msw/taskbar.h"
21 #elif defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__)
22 #include "wx/unix/taskbarx11.h"
23 #endif
24
25 #if !defined(__WXCOCOA__) // && !defined(__WXOS2__) etc...
26 // ----------------------------------------------------------------------------
27 // wxTaskBarIcon events
28 // ----------------------------------------------------------------------------
29
30 class WXDLLEXPORT wxTaskBarIconEvent : public wxEvent
31 {
32 public:
33 wxTaskBarIconEvent(wxEventType evtType, wxTaskBarIcon *tbIcon)
34 : wxEvent(-1, evtType)
35 {
36 SetEventObject(tbIcon);
37 }
38
39 virtual wxEvent *Clone() const { return new wxTaskBarIconEvent(*this); }
40 };
41
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()
51
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),
59
60 #endif
61 // !defined(__WXCOCOA__)
62 #endif
63 // _WX_TASKBAR_H_BASE_