]> git.saurik.com Git - wxWidgets.git/blame - include/wx/taskbar.h
Applied [ 745533 ] implemented wxNotebook::DoGetBestSize
[wxWidgets.git] / include / wx / taskbar.h
CommitLineData
34138703
JS
1#ifndef _WX_TASKBAR_H_BASE_
2#define _WX_TASKBAR_H_BASE_
3
6af507f7
VS
4#include "wx/event.h"
5
6// ----------------------------------------------------------------------------
7// wxTaskBarIconBase: define wxTaskBarIcon interface
8// ----------------------------------------------------------------------------
9
10class WXDLLEXPORT wxTaskBarIconBase : public wxEvtHandler
11{
12};
13
14
15// ----------------------------------------------------------------------------
16// now include the actual class declaration
17// ----------------------------------------------------------------------------
18
34138703 19#if defined(__WXMSW__)
6af507f7 20 #include "wx/msw/taskbar.h"
fb29dcac
VS
21#elif defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__)
22 #include "wx/unix/taskbarx11.h"
34138703
JS
23#endif
24
b400d50a 25#if !defined(__WXCOCOA__) // && !defined(__WXOS2__) etc...
6af507f7
VS
26// ----------------------------------------------------------------------------
27// wxTaskBarIcon events
28// ----------------------------------------------------------------------------
29
30class WXDLLEXPORT wxTaskBarIconEvent : public wxEvent
31{
32public:
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
42BEGIN_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 )
50END_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
b400d50a
DE
60#endif
61 // !defined(__WXCOCOA__)
34138703
JS
62#endif
63 // _WX_TASKBAR_H_BASE_