]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////// | |
2 | // File: wx/unix/taskbarx11.h | |
3 | // Purpose: Defines wxTaskBarIcon class for most common X11 desktops | |
4 | // Author: Vaclav Slavik | |
5 | // Modified by: | |
6 | // Created: 04/04/2003 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Vaclav Slavik, 2003 | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _TASKBAR_H_ | |
13 | #define _TASKBAR_H_ | |
14 | ||
15 | #ifdef __GNUG__ | |
16 | #pragma interface "taskbarx11.h" | |
17 | #endif | |
18 | ||
19 | class WXDLLEXPORT wxIcon; | |
20 | class WXDLLEXPORT wxFrame; | |
21 | class WXDLLEXPORT wxWindow; | |
22 | ||
23 | class WXDLLEXPORT wxTaskBarIcon: public wxTaskBarIconBase | |
24 | { | |
25 | public: | |
26 | wxTaskBarIcon(); | |
27 | virtual ~wxTaskBarIcon(); | |
28 | ||
29 | // Accessors: | |
30 | bool IsOk() const; | |
31 | bool IsIconInstalled() const; | |
32 | ||
33 | // Operations: | |
34 | bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString); | |
35 | bool RemoveIcon(); | |
36 | bool PopupMenu(wxMenu *menu); | |
37 | ||
38 | protected: | |
39 | wxFrame *m_iconWnd; | |
40 | wxWindow *m_iconArea; | |
41 | ||
42 | DECLARE_DYNAMIC_CLASS(wxTaskBarIcon) | |
43 | }; | |
44 | ||
45 | #endif | |
46 | // _TASKBAR_H_ |