1 /////////////////////////////////////////////////////////////////////////
2 // File: wx/mac/taskbarosx.h
3 // Purpose: Defines wxTaskBarIcon class for OSX
8 // Copyright: (c) Ryan Norton, 2003
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////
15 class WXDLLEXPORT wxIcon
;
16 class WXDLLEXPORT wxMenu
;
18 class WXDLLEXPORT wxTaskBarIcon
: public wxTaskBarIconBase
21 //type of taskbar item to create
22 //TODO: currently only DOCK is implemented
23 enum wxTaskBarIconType
30 wxTaskBarIcon(const wxTaskBarIconType
& nType
= DOCK
);
31 virtual ~wxTaskBarIcon();
33 inline bool IsOk() const { return true; }
34 inline bool IsIconInstalled() const { return m_iconAdded
; }
36 //TODO: not tested extensively
37 bool SetIcon(const wxIcon
& icon
, const wxString
& tooltip
= wxEmptyString
);
39 //TODO: end not tested extensively
42 bool PopupMenu(wxMenu
*menu
);
44 //internal functions - don't call
45 wxMenu
* GetCurrentMenu();
46 wxMenu
* DoCreatePopupMenu();
49 wxTaskBarIconType m_nType
;
50 void* m_pEventHandlerRef
;
52 WXHMENU m_theLastMenu
;
55 void OnRightDown(wxTaskBarIconEvent
& evt
);
57 DECLARE_DYNAMIC_CLASS(wxTaskBarIcon
)