2004-03-23 12:35:05 -05: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 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2004-03-23 12:35:05 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _TASKBAR_H_
|
|
|
|
#define _TASKBAR_H_
|
|
|
|
|
2007-07-09 06:09:52 -04:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxIcon;
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxMenu;
|
2004-03-23 12:35:05 -05:00
|
|
|
|
|
|
|
class WXDLLEXPORT wxTaskBarIcon : public wxTaskBarIconBase
|
|
|
|
{
|
2005-12-03 12:55:33 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
|
2004-03-23 12:35:05 -05:00
|
|
|
public:
|
2005-12-03 12:55:33 -05:00
|
|
|
// type of taskbar item to create (currently only DOCK is implemented)
|
2004-09-25 19:05:13 -04:00
|
|
|
enum wxTaskBarIconType
|
|
|
|
{
|
2005-12-03 12:55:33 -05:00
|
|
|
DOCK
|
|
|
|
// , CUSTOM_STATUSITEM
|
|
|
|
// , STATUSITEM
|
|
|
|
// , MENUEXTRA
|
|
|
|
, DEFAULT_TYPE = DOCK
|
2004-09-25 19:05:13 -04:00
|
|
|
};
|
2005-12-03 12:55:33 -05:00
|
|
|
|
|
|
|
wxTaskBarIcon(wxTaskBarIconType iconType = DEFAULT_TYPE);
|
2004-03-23 12:35:05 -05:00
|
|
|
virtual ~wxTaskBarIcon();
|
|
|
|
|
2005-12-03 12:55:33 -05:00
|
|
|
bool IsOk() const { return true; }
|
|
|
|
|
|
|
|
bool IsIconInstalled() const;
|
2004-03-23 12:35:05 -05:00
|
|
|
bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
|
|
|
|
bool RemoveIcon();
|
|
|
|
bool PopupMenu(wxMenu *menu);
|
|
|
|
|
|
|
|
protected:
|
2005-12-03 12:55:33 -05:00
|
|
|
class wxTaskBarIconImpl* m_impl;
|
|
|
|
friend class wxTaskBarIconImpl;
|
2004-03-23 12:35:05 -05:00
|
|
|
};
|
|
|
|
#endif
|
|
|
|
// _TASKBAR_H_
|