]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/taskbarosx.h
Add wxActivateEvent::GetActivationReason().
[wxWidgets.git] / include / wx / osx / taskbarosx.h
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
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:
21 wxTaskBarIcon(wxTaskBarIconType iconType = wxTBI_DEFAULT_TYPE);
22 virtual ~wxTaskBarIcon();
23
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
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:
38 wxTaskBarIconType m_type;
39 class wxTaskBarIconImpl* m_impl;
40 friend class wxTaskBarIconImpl;
41 };
42 #endif
43 // _TASKBAR_H_