]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/taskbarosx.h
more extra semicolons removed (patch 1303724)
[wxWidgets.git] / include / wx / mac / carbon / taskbarosx.h
CommitLineData
8cf73271
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
7// RCS-ID: $Id$
8// Copyright: (c) Ryan Norton, 2003
65571936 9// Licence: wxWindows licence
8cf73271
SC
10/////////////////////////////////////////////////////////////////////////
11
12#ifndef _TASKBAR_H_
13#define _TASKBAR_H_
14
8cf73271
SC
15class WXDLLEXPORT wxIcon;
16class WXDLLEXPORT wxMenu;
17
18class WXDLLEXPORT wxTaskBarIcon : public wxTaskBarIconBase
19{
20public:
f2641bc2 21 //type of taskbar item to create
607667fd 22 //TODO: currently only DOCK is implemented
f2641bc2
RD
23 enum wxTaskBarIconType
24 {
25 DOCK,
26 STATUSITEM,
27 MENUEXTRA
28 };
29
8cf73271
SC
30 wxTaskBarIcon(const wxTaskBarIconType& nType = DOCK);
31 virtual ~wxTaskBarIcon();
32
f2641bc2
RD
33 inline bool IsOk() const { return true; }
34 inline bool IsIconInstalled() const { return m_iconAdded; }
35
607667fd 36 //TODO: not tested extensively
8cf73271
SC
37 bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
38 bool RemoveIcon();
607667fd
RN
39 //TODO: end not tested extensively
40
41 //pops up the menu
8cf73271
SC
42 bool PopupMenu(wxMenu *menu);
43
a45beea1 44 //internal functions - don't call
607667fd 45 wxMenu* GetCurrentMenu();
a45beea1 46 wxMenu* DoCreatePopupMenu();
607667fd 47
8cf73271 48protected:
f2641bc2 49 wxTaskBarIconType m_nType;
cc3388ae 50 void* m_pEventHandlerRef;
607667fd 51 wxMenu* m_pMenu;
af7e08a4 52 WXHMENU m_theLastMenu;
f2641bc2 53 bool m_iconAdded;
b14ba1f1
RN
54
55 void OnRightDown(wxTaskBarIconEvent& evt);
56
8cf73271
SC
57 DECLARE_DYNAMIC_CLASS(wxTaskBarIcon)
58};
8cf73271
SC
59#endif
60 // _TASKBAR_H_