X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/96aecfc900cf46a37eda895860314c494290af19..1e72e3cc53f04cc79189ab5d0f6fecca3f68a2ee:/samples/taskbar/tbtest.h diff --git a/samples/taskbar/tbtest.h b/samples/taskbar/tbtest.h index 4dac05ac65..fdd2018edf 100644 --- a/samples/taskbar/tbtest.h +++ b/samples/taskbar/tbtest.h @@ -12,14 +12,21 @@ class MyTaskBarIcon: public wxTaskBarIcon { public: - MyTaskBarIcon() {}; - - void OnRButtonDown(wxEvent&); - void OnLButtonDClick(wxEvent&); +#if defined(__WXCOCOA__) + MyTaskBarIcon(wxTaskBarIconType iconType = DEFAULT_TYPE) + : wxTaskBarIcon(iconType) +#else + MyTaskBarIcon() +#endif + {} + + void OnLeftButtonDClick(wxTaskBarIconEvent&); void OnMenuRestore(wxCommandEvent&); void OnMenuExit(wxCommandEvent&); void OnMenuSetNewIcon(wxCommandEvent&); + virtual wxMenu *CreatePopupMenu(); + DECLARE_EVENT_TABLE() }; @@ -45,8 +52,9 @@ public: protected: MyTaskBarIcon *m_taskBarIcon; +#if defined(__WXCOCOA__) + MyTaskBarIcon *m_dockIcon; +#endif DECLARE_EVENT_TABLE() }; - -