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