]> git.saurik.com Git - wxWidgets.git/blob - include/wx/palmos/taskbar.h
Add --disable-gui and --disable-all-features builds to the ravnsgaard buildbot.
[wxWidgets.git] / include / wx / palmos / taskbar.h
1 /////////////////////////////////////////////////////////////////////////
2 // File: wx/palmos/taskbar.h
3 // Purpose: Defines wxTaskBarIcon class.
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by:
6 // Created: 10/13/04
7 // RCS-ID: $Id$
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////
11
12 #ifndef _TASKBAR_H_
13 #define _TASKBAR_H_
14
15 #include "wx/icon.h"
16
17 // private helper class:
18 class WXDLLIMPEXP_FWD_ADV wxTaskBarIconWindow;
19
20 class WXDLLIMPEXP_ADV wxTaskBarIcon: public wxTaskBarIconBase
21 {
22 DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
23 public:
24 wxTaskBarIcon();
25 virtual ~wxTaskBarIcon();
26
27 // Accessors
28 inline bool IsOk() const { return true; }
29 inline bool IsIconInstalled() const { return m_iconAdded; }
30
31 // Operations
32 bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
33 bool RemoveIcon(void);
34 bool PopupMenu(wxMenu *menu); //, int x, int y);
35
36 // Implementation
37 protected:
38 friend class wxTaskBarIconWindow;
39 long WindowProc(unsigned int msg, unsigned int wParam, long lParam);
40 void RegisterWindowMessages();
41
42 // Data members
43 protected:
44 wxTaskBarIconWindow *m_win;
45 bool m_iconAdded;
46 wxIcon m_icon;
47 wxString m_strTooltip;
48 };
49
50 #endif
51 // _TASKBAR_H_