]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/osx/taskbarosx.h
Test using wxString::ToCDouble() in wxAny.
[wxWidgets.git] / include / wx / osx / taskbarosx.h
index 0d4872161346e2e2bbf7293cf747fdc851d7bbde..9805ccb2b4359835190dc00d984759c33f3bdf99 100644 (file)
@@ -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