adding taskbar implementation for statusitem (menubar) and dock, fixes #12838

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2011-02-28 10:12:06 +00:00
parent a5d0c88a85
commit b59cd6c433
2 changed files with 200 additions and 144 deletions

View File

@@ -26,14 +26,22 @@ public:
#if wxOSX_USE_COCOA
, CUSTOM_STATUSITEM
#endif
// , STATUSITEM
// , MENUEXTRA
#if wxOSX_USE_COCOA
, DEFAULT_TYPE = CUSTOM_STATUSITEM
#else
, DEFAULT_TYPE = DOCK
#endif
};
wxTaskBarIcon(wxTaskBarIconType iconType = 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;
@@ -42,6 +50,7 @@ public:
bool PopupMenu(wxMenu *menu);
protected:
wxTaskBarIconType m_type;
class wxTaskBarIconImpl* m_impl;
friend class wxTaskBarIconImpl;
};