1 /////////////////////////////////////////////////////////////////////////
2 // File: wx/cocoa/taskbar.h
3 // Purpose: Defines wxTaskBarIcon class
4 // Author: David Elliott
7 // Copyright: (c) 2004 David Elliott
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_COCOA_TASKBAR_H__
12 #define _WX_COCOA_TASKBAR_H__
16 class WXDLLIMPEXP_FWD_CORE wxIcon
;
17 class WXDLLIMPEXP_FWD_CORE wxMenu
;
19 class wxTaskBarIconCocoaImpl
;
21 class WXDLLIMPEXP_ADV wxTaskBarIcon
: public wxTaskBarIconBase
23 friend class wxTaskBarIconCocoaImpl
;
24 DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon
)
26 //type of taskbar item to create (currently only DOCK is implemented)
27 enum wxTaskBarIconType
30 // , STATUSITEM // TODO: Implement using NSStatusItem w/o custom NSView
31 // , MENUEXTRA // Menu extras require undocumented hacks
32 , DEFAULT_TYPE
= CUSTOM_STATUSITEM
35 // Only one wxTaskBarIcon can be of the Dock type so by default
36 // create NSStatusItem for maximum source compatibility.
37 wxTaskBarIcon(wxTaskBarIconType iconType
= DEFAULT_TYPE
);
38 virtual ~wxTaskBarIcon();
40 bool SetIcon(const wxIcon
& icon
, const wxString
& tooltip
= wxEmptyString
);
42 bool PopupMenu(wxMenu
*menu
); //, int x, int y);
44 wxTaskBarIconCocoaImpl
*m_impl
;
47 #endif // _WX_COCOA_TASKBAR_H__