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