2004-03-23 17:35:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
// File: wx/mac/taskbarosx.h
|
|
|
|
// Purpose: Defines wxTaskBarIcon class for OSX
|
|
|
|
// Author: Ryan Norton
|
|
|
|
// Modified by:
|
|
|
|
// Created: 04/04/2003
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Ryan Norton, 2003
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
2004-03-23 17:35:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _TASKBAR_H_
|
|
|
|
#define _TASKBAR_H_
|
|
|
|
|
2007-07-09 10:09:52 +00:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxIcon;
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxMenu;
|
2004-03-23 17:35:05 +00:00
|
|
|
|
|
|
|
class WXDLLEXPORT wxTaskBarIcon : public wxTaskBarIconBase
|
|
|
|
{
|
2005-12-03 17:55:33 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
|
2004-03-23 17:35:05 +00:00
|
|
|
public:
|
2005-12-03 17:55:33 +00:00
|
|
|
// type of taskbar item to create (currently only DOCK is implemented)
|
2004-09-25 23:05:13 +00:00
|
|
|
enum wxTaskBarIconType
|
|
|
|
{
|
2005-12-03 17:55:33 +00:00
|
|
|
DOCK
|
|
|
|
// , CUSTOM_STATUSITEM
|
|
|
|
// , STATUSITEM
|
|
|
|
// , MENUEXTRA
|
|
|
|
, DEFAULT_TYPE = DOCK
|
2004-09-25 23:05:13 +00:00
|
|
|
};
|
2005-12-03 17:55:33 +00:00
|
|
|
|
|
|
|
wxTaskBarIcon(wxTaskBarIconType iconType = DEFAULT_TYPE);
|
2004-03-23 17:35:05 +00:00
|
|
|
virtual ~wxTaskBarIcon();
|
|
|
|
|
2005-12-03 17:55:33 +00:00
|
|
|
bool IsOk() const { return true; }
|
|
|
|
|
|
|
|
bool IsIconInstalled() const;
|
2004-03-23 17:35:05 +00:00
|
|
|
bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
|
|
|
|
bool RemoveIcon();
|
|
|
|
bool PopupMenu(wxMenu *menu);
|
|
|
|
|
|
|
|
protected:
|
2005-12-03 17:55:33 +00:00
|
|
|
class wxTaskBarIconImpl* m_impl;
|
|
|
|
friend class wxTaskBarIconImpl;
|
2004-03-23 17:35:05 +00:00
|
|
|
};
|
|
|
|
#endif
|
|
|
|
// _TASKBAR_H_
|