X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6762286db6cf974817dead5b88bebf0e390dbb7e..43c42c18d36c703a88b1b7b697bac27fe5608eca:/include/wx/osx/taskbarosx.h diff --git a/include/wx/osx/taskbarosx.h b/include/wx/osx/taskbarosx.h index 0d48721613..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,7 +36,8 @@ public: bool PopupMenu(wxMenu *menu); protected: - class wxTaskBarIconImpl* m_impl; + wxTaskBarIconType m_type; + class wxTaskBarIconImpl* m_impl; friend class wxTaskBarIconImpl; }; #endif