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_
|
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
|
|
|
#pragma interface "taskbarosx.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxIcon;
|
|
|
|
class WXDLLEXPORT wxMenu;
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxTaskBarIcon : public wxTaskBarIconBase
|
|
|
|
{
|
|
|
|
public:
|
2004-09-25 13:36:07 +00:00
|
|
|
//type of taskbar item to create
|
|
|
|
//TODO: currently only DOCK is implemented
|
2004-03-23 17:35:05 +00:00
|
|
|
enum wxTaskBarIconType
|
|
|
|
{
|
|
|
|
DOCK,
|
|
|
|
STATUSITEM,
|
|
|
|
MENUEXTRA
|
|
|
|
};
|
|
|
|
|
|
|
|
wxTaskBarIcon(const wxTaskBarIconType& nType = DOCK);
|
|
|
|
virtual ~wxTaskBarIcon();
|
|
|
|
|
2004-09-25 13:36:07 +00:00
|
|
|
//TODO: not tested extensively
|
2004-03-23 17:35:05 +00:00
|
|
|
bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
|
|
|
|
bool RemoveIcon();
|
2004-09-25 13:36:07 +00:00
|
|
|
//TODO: end not tested extensively
|
|
|
|
|
|
|
|
//pops up the menu
|
2004-03-23 17:35:05 +00:00
|
|
|
bool PopupMenu(wxMenu *menu);
|
|
|
|
|
2004-09-25 13:36:07 +00:00
|
|
|
//internal functions - don't call
|
|
|
|
void SetInternalEvent(void* pEvent);
|
|
|
|
wxMenu* GetCurrentMenu();
|
|
|
|
|
2004-03-23 17:35:05 +00:00
|
|
|
protected:
|
2004-09-25 13:36:07 +00:00
|
|
|
wxTaskBarIconType m_nType;
|
|
|
|
void* m_pEvent;
|
|
|
|
wxMenu* m_pMenu;
|
|
|
|
|
2004-03-23 17:35:05 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxTaskBarIcon)
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
// _TASKBAR_H_
|