// Author: Ryan Norton
// Modified by:
// Created: 04/04/2003
-// RCS-ID: $Id$
// Copyright: (c) Ryan Norton, 2003
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////
{
DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
public:
- // type of taskbar item to create (currently only DOCK is implemented)
- enum wxTaskBarIconType
- {
- DOCK
-#if wxOSX_USE_COCOA
- , CUSTOM_STATUSITEM
-#endif
-// , STATUSITEM
-// , MENUEXTRA
- , DEFAULT_TYPE = DOCK
- };
-
- wxTaskBarIcon(wxTaskBarIconType iconType = DEFAULT_TYPE);
+ wxTaskBarIcon(wxTaskBarIconType iconType = wxTBI_DEFAULT_TYPE);
virtual ~wxTaskBarIcon();
+ // returns true if the taskbaricon is in the global menubar
+#if wxOSX_USE_COCOA
+ bool OSXIsStatusItem();
+#else
+ bool OSXIsStatusItem() { return false; }
+#endif
bool IsOk() const { return true; }
bool IsIconInstalled() const;
bool PopupMenu(wxMenu *menu);
protected:
+ wxTaskBarIconType m_type;
class wxTaskBarIconImpl* m_impl;
friend class wxTaskBarIconImpl;
};