]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_taskbar.i
reSWIGged
[wxWidgets.git] / wxPython / src / _taskbar.i
CommitLineData
d14a1e28
RD
1/////////////////////////////////////////////////////////////////////////////
2// Name: _taskbar.i
3// Purpose: SWIG interface defs for wxTaskBarIcon
4//
5// Author: Robin Dunn
6//
7// Created: 2-June-1998
8// RCS-ID: $Id$
9// Copyright: (c) 2003 by Total Control Software
10// Licence: wxWindows license
11/////////////////////////////////////////////////////////////////////////////
12
13// Not a %module
14
15
16//---------------------------------------------------------------------------
17
18%{
19%}
20
21//---------------------------------------------------------------------------
22%newgroup;
23
24
25%{
26#ifdef __WXMAC__
27// implement dummy classes and such for wxMac
28
29class wxTaskBarIcon : public wxEvtHandler
30{
31public:
81cfe5e1 32 wxTaskBarIcon() { wxPyRaiseNotImplemented(); }
d14a1e28
RD
33};
34
35
36class wxTaskBarIconEvent : public wxEvent
37{
38public:
39 wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *)
81cfe5e1 40 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
41 virtual wxEvent* Clone() const { return NULL; }
42};
43
44enum {
45 wxEVT_TASKBAR_MOVE = 0,
46 wxEVT_TASKBAR_LEFT_DOWN = 0,
47 wxEVT_TASKBAR_LEFT_UP = 0,
48 wxEVT_TASKBAR_RIGHT_DOWN = 0,
49 wxEVT_TASKBAR_RIGHT_UP = 0,
50 wxEVT_TASKBAR_LEFT_DCLICK = 0,
51 wxEVT_TASKBAR_RIGHT_DCLICK = 0,
52};
53#endif
54%}
55
56
57
58
59class wxTaskBarIcon : public wxEvtHandler
60{
61public:
62 wxTaskBarIcon();
63 ~wxTaskBarIcon();
33e10b88
RD
64
65 %extend {
66 void Destroy() {
67 #ifndef __WXMAC__
68 self->RemoveIcon();
69 #endif
70 }
71 }
d14a1e28
RD
72
73#ifndef __WXMAC__
74 bool IsOk() const;
e0269b2e
RD
75 %pythoncode { def __nonzero__(self): return self.IsOk() }
76
d14a1e28
RD
77 bool IsIconInstalled() const;
78
79 bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxPyEmptyString);
80 bool RemoveIcon(void);
81 bool PopupMenu(wxMenu *menu);
82#endif
83};
84
85
86
87class wxTaskBarIconEvent : public wxEvent
88{
89public:
90 wxTaskBarIconEvent(wxEventType evtType, wxTaskBarIcon *tbIcon);
91};
92
93
94
95%constant wxEventType wxEVT_TASKBAR_MOVE;
96%constant wxEventType wxEVT_TASKBAR_LEFT_DOWN;
97%constant wxEventType wxEVT_TASKBAR_LEFT_UP;
98%constant wxEventType wxEVT_TASKBAR_RIGHT_DOWN;
99%constant wxEventType wxEVT_TASKBAR_RIGHT_UP;
100%constant wxEventType wxEVT_TASKBAR_LEFT_DCLICK;
101%constant wxEventType wxEVT_TASKBAR_RIGHT_DCLICK;
102
103
104%pythoncode {
105EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE )
106EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN )
107EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP )
108EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN )
109EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP )
110EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK )
111EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK )
112}
113
114//---------------------------------------------------------------------------