]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/taskbar.h
removed wxLogTrace() without mask to fix DMC compilation
[wxWidgets.git] / include / wx / taskbar.h
... / ...
CommitLineData
1#ifndef _WX_TASKBAR_H_BASE_
2#define _WX_TASKBAR_H_BASE_
3
4#include "wx/defs.h"
5
6#ifdef wxHAS_TASK_BAR_ICON
7
8#include "wx/event.h"
9
10// ----------------------------------------------------------------------------
11// wxTaskBarIconBase: define wxTaskBarIcon interface
12// ----------------------------------------------------------------------------
13
14class WXDLLIMPEXP_ADV wxTaskBarIconBase : public wxEvtHandler
15{
16public:
17 wxTaskBarIconBase() { }
18
19private:
20 DECLARE_NO_COPY_CLASS(wxTaskBarIconBase)
21};
22
23
24// ----------------------------------------------------------------------------
25// now include the actual class declaration
26// ----------------------------------------------------------------------------
27
28#if defined(__WXMSW__)
29 #include "wx/msw/taskbar.h"
30#elif defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__)
31 #include "wx/unix/taskbarx11.h"
32#endif
33
34// ----------------------------------------------------------------------------
35// wxTaskBarIcon events
36// ----------------------------------------------------------------------------
37
38class WXDLLIMPEXP_ADV wxTaskBarIconEvent : public wxEvent
39{
40public:
41 wxTaskBarIconEvent(wxEventType evtType, wxTaskBarIcon *tbIcon)
42 : wxEvent(-1, evtType)
43 {
44 SetEventObject(tbIcon);
45 }
46
47 virtual wxEvent *Clone() const { return new wxTaskBarIconEvent(*this); }
48
49private:
50 DECLARE_NO_ASSIGN_CLASS(wxTaskBarIconEvent)
51};
52
53BEGIN_DECLARE_EVENT_TYPES()
54 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_ADV,wxEVT_TASKBAR_MOVE,1550)
55 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_ADV,wxEVT_TASKBAR_LEFT_DOWN,1551)
56 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_ADV,wxEVT_TASKBAR_LEFT_UP,1552)
57 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_ADV,wxEVT_TASKBAR_RIGHT_DOWN,1553)
58 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_ADV,wxEVT_TASKBAR_RIGHT_UP,1554)
59 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_ADV,wxEVT_TASKBAR_LEFT_DCLICK,1555)
60 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_ADV,wxEVT_TASKBAR_RIGHT_DCLICK,1556)
61END_DECLARE_EVENT_TYPES()
62
63#define EVT_TASKBAR_MOVE(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_MOVE, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),
64#define EVT_TASKBAR_LEFT_DOWN(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_LEFT_DOWN, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),
65#define EVT_TASKBAR_LEFT_UP(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_LEFT_UP, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),
66#define EVT_TASKBAR_RIGHT_DOWN(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_RIGHT_DOWN, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),
67#define EVT_TASKBAR_RIGHT_UP(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_RIGHT_UP, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),
68#define EVT_TASKBAR_LEFT_DCLICK(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_LEFT_DCLICK, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),
69#define EVT_TASKBAR_RIGHT_DCLICK(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_RIGHT_DCLICK, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),
70
71#endif
72 // wxHAS_TASK_BAR_ICON
73
74#endif
75 // _WX_TASKBAR_H_BASE_