]>
Commit | Line | Data |
---|---|---|
8cf73271 SC |
1 | ///////////////////////////////////////////////////////////////////////// |
2 | // File: wx/mac/taskbarosx.h | |
3 | // Purpose: Defines wxTaskBarIcon class for OSX | |
4 | // Author: Ryan Norton | |
5 | // Modified by: | |
6 | // Created: 04/04/2003 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Ryan Norton, 2003 | |
65571936 | 9 | // Licence: wxWindows licence |
8cf73271 SC |
10 | ///////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _TASKBAR_H_ | |
13 | #define _TASKBAR_H_ | |
14 | ||
15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) | |
16 | #pragma interface "taskbarosx.h" | |
17 | #endif | |
18 | ||
19 | class WXDLLEXPORT wxIcon; | |
20 | class WXDLLEXPORT wxMenu; | |
21 | ||
22 | class WXDLLEXPORT wxTaskBarIcon : public wxTaskBarIconBase | |
23 | { | |
24 | public: | |
607667fd RN |
25 | //type of taskbar item to create |
26 | //TODO: currently only DOCK is implemented | |
8cf73271 SC |
27 | enum wxTaskBarIconType |
28 | { | |
29 | DOCK, | |
30 | STATUSITEM, | |
31 | MENUEXTRA | |
32 | }; | |
33 | ||
34 | wxTaskBarIcon(const wxTaskBarIconType& nType = DOCK); | |
35 | virtual ~wxTaskBarIcon(); | |
36 | ||
607667fd | 37 | //TODO: not tested extensively |
8cf73271 SC |
38 | bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString); |
39 | bool RemoveIcon(); | |
607667fd RN |
40 | //TODO: end not tested extensively |
41 | ||
42 | //pops up the menu | |
8cf73271 SC |
43 | bool PopupMenu(wxMenu *menu); |
44 | ||
607667fd RN |
45 | //internal functions - don't call |
46 | void SetInternalEvent(void* pEvent); | |
47 | wxMenu* GetCurrentMenu(); | |
48 | ||
8cf73271 | 49 | protected: |
607667fd RN |
50 | wxTaskBarIconType m_nType; |
51 | void* m_pEvent; | |
52 | wxMenu* m_pMenu; | |
53 | ||
8cf73271 SC |
54 | DECLARE_DYNAMIC_CLASS(wxTaskBarIcon) |
55 | }; | |
8cf73271 SC |
56 | #endif |
57 | // _TASKBAR_H_ |