]>
Commit | Line | Data |
---|---|---|
6762286d SC |
1 | ///////////////////////////////////////////////////////////////////////// |
2 | // File: wx/mac/taskbarosx.h | |
3 | // Purpose: Defines wxTaskBarIcon class for OSX | |
4 | // Author: Ryan Norton | |
5 | // Modified by: | |
6 | // Created: 04/04/2003 | |
6762286d SC |
7 | // Copyright: (c) Ryan Norton, 2003 |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _TASKBAR_H_ | |
12 | #define _TASKBAR_H_ | |
13 | ||
14 | class WXDLLIMPEXP_FWD_CORE wxIcon; | |
15 | class WXDLLIMPEXP_FWD_CORE wxMenu; | |
16 | ||
17 | class WXDLLIMPEXP_ADV wxTaskBarIcon : public wxTaskBarIconBase | |
18 | { | |
19 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon) | |
20 | public: | |
70175534 | 21 | wxTaskBarIcon(wxTaskBarIconType iconType = wxTBI_DEFAULT_TYPE); |
6762286d SC |
22 | virtual ~wxTaskBarIcon(); |
23 | ||
b59cd6c4 SC |
24 | // returns true if the taskbaricon is in the global menubar |
25 | #if wxOSX_USE_COCOA | |
26 | bool OSXIsStatusItem(); | |
27 | #else | |
28 | bool OSXIsStatusItem() { return false; } | |
29 | #endif | |
6762286d SC |
30 | bool IsOk() const { return true; } |
31 | ||
32 | bool IsIconInstalled() const; | |
33 | bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString); | |
34 | bool RemoveIcon(); | |
35 | bool PopupMenu(wxMenu *menu); | |
36 | ||
37 | protected: | |
b59cd6c4 | 38 | wxTaskBarIconType m_type; |
03647350 | 39 | class wxTaskBarIconImpl* m_impl; |
6762286d SC |
40 | friend class wxTaskBarIconImpl; |
41 | }; | |
42 | #endif | |
43 | // _TASKBAR_H_ |