]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/taskbar/tbtest.h
Warning fixes.
[wxWidgets.git] / samples / taskbar / tbtest.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: tbtest.h
3// Purpose: wxTaskBarIcon sample
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c)
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12class MyTaskBarIcon: public wxTaskBarIcon
13{
14public:
15#if defined(__WXCOCOA__)
16 MyTaskBarIcon(wxTaskBarIconType iconType = DEFAULT_TYPE)
17 : wxTaskBarIcon(iconType)
18#else
19 MyTaskBarIcon()
20#endif
21 {}
22
23 void OnLeftButtonDClick(wxTaskBarIconEvent&);
24 void OnMenuRestore(wxCommandEvent&);
25 void OnMenuExit(wxCommandEvent&);
26 void OnMenuSetNewIcon(wxCommandEvent&);
27
28 virtual wxMenu *CreatePopupMenu();
29
30DECLARE_EVENT_TABLE()
31};
32
33
34// Define a new application
35class MyApp: public wxApp
36{
37public:
38 bool OnInit(void);
39};
40
41class MyDialog: public wxDialog
42{
43public:
44 MyDialog(wxWindow* parent, const wxWindowID id, const wxString& title,
45 const wxPoint& pos, const wxSize& size, const long windowStyle = wxDEFAULT_DIALOG_STYLE);
46 ~MyDialog();
47
48 void OnOK(wxCommandEvent& event);
49 void OnExit(wxCommandEvent& event);
50 void OnCloseWindow(wxCloseEvent& event);
51 void Init(void);
52
53protected:
54 MyTaskBarIcon *m_taskBarIcon;
55#if defined(__WXCOCOA__)
56 MyTaskBarIcon *m_dockIcon;
57#endif
58
59DECLARE_EVENT_TABLE()
60};