X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03647350fc7cd141953c72e0284e928847d30f44..d642db66a5efc82d374b813022c72ba88bc50839:/include/wx/osx/taskbarosx.h?ds=sidebyside diff --git a/include/wx/osx/taskbarosx.h b/include/wx/osx/taskbarosx.h index 8d8f395053..9805ccb2b4 100644 --- a/include/wx/osx/taskbarosx.h +++ b/include/wx/osx/taskbarosx.h @@ -19,21 +19,15 @@ class WXDLLIMPEXP_ADV wxTaskBarIcon : public wxTaskBarIconBase { 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; @@ -42,6 +36,7 @@ public: bool PopupMenu(wxMenu *menu); protected: + wxTaskBarIconType m_type; class wxTaskBarIconImpl* m_impl; friend class wxTaskBarIconImpl; };