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 WXDLLIMPEXP_FWD_CORE wxIcon
;
16 class WXDLLIMPEXP_FWD_CORE wxMenu
;
18 class WXDLLIMPEXP_ADV wxTaskBarIcon
: public wxTaskBarIconBase
20 DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon
)
22 // type of taskbar item to create (currently only DOCK is implemented)
23 enum wxTaskBarIconType
30 , DEFAULT_TYPE
= CUSTOM_STATUSITEM
36 wxTaskBarIcon(wxTaskBarIconType iconType
= DEFAULT_TYPE
);
37 virtual ~wxTaskBarIcon();
39 // returns true if the taskbaricon is in the global menubar
41 bool OSXIsStatusItem();
43 bool OSXIsStatusItem() { return false; }
45 bool IsOk() const { return true; }
47 bool IsIconInstalled() const;
48 bool SetIcon(const wxIcon
& icon
, const wxString
& tooltip
= wxEmptyString
);
50 bool PopupMenu(wxMenu
*menu
);
53 wxTaskBarIconType m_type
;
54 class wxTaskBarIconImpl
* m_impl
;
55 friend class wxTaskBarIconImpl
;