]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/taskbar.h
remove extra ';'
[wxWidgets.git] / include / wx / cocoa / taskbar.h
CommitLineData
f1d9e1ec
DE
1/////////////////////////////////////////////////////////////////////////
2// File: wx/cocoa/taskbar.h
3// Purpose: Defines wxTaskBarIcon class
4// Author: David Elliott
5// Modified by:
6// Created: 2004/01/24
7// RCS-ID: $Id$
8// Copyright: (c) 2004 David Elliott
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_COCOA_TASKBAR_H__
13#define _WX_COCOA_TASKBAR_H__
14
f1d9e1ec
DE
15#include "wx/icon.h"
16
b5dbe15d
VS
17class WXDLLIMPEXP_FWD_CORE wxIcon;
18class WXDLLIMPEXP_FWD_CORE wxMenu;
f1d9e1ec
DE
19
20class wxTaskBarIconCocoaImpl;
f1d9e1ec
DE
21
22class WXDLLEXPORT wxTaskBarIcon : public wxTaskBarIconBase
23{
4092a275 24 friend class wxTaskBarIconCocoaImpl;
f1d9e1ec
DE
25 DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
26public:
27 //type of taskbar item to create (currently only DOCK is implemented)
28 enum wxTaskBarIconType
29 { DOCK
30 , CUSTOM_STATUSITEM
31// , STATUSITEM // TODO: Implement using NSStatusItem w/o custom NSView
32// , MENUEXTRA // Menu extras require undocumented hacks
33 , DEFAULT_TYPE = CUSTOM_STATUSITEM
34 };
35
36 // Only one wxTaskBarIcon can be of the Dock type so by default
37 // create NSStatusItem for maximum source compatibility.
38 wxTaskBarIcon(wxTaskBarIconType iconType = DEFAULT_TYPE);
39 virtual ~wxTaskBarIcon();
40
41 bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
42 bool RemoveIcon();
43 bool PopupMenu(wxMenu *menu); //, int x, int y);
44protected:
45 wxTaskBarIconCocoaImpl *m_impl;
46};
47
48#endif // _WX_COCOA_TASKBAR_H__