]> git.saurik.com Git - wxWidgets.git/blame - samples/taskbar/tbtest.h
Fix for Bug 1097510, reset m_selectionOld when the value changes
[wxWidgets.git] / samples / taskbar / tbtest.h
CommitLineData
bbf1f0e5
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: tbtest.h
3// Purpose: wxTaskBarIcon sample
4// Author: Julian Smart
329fa151 5// Modified by:
bbf1f0e5
KB
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c)
2f6c54eb 9// Licence: wxWindows licence
bbf1f0e5
KB
10/////////////////////////////////////////////////////////////////////////////
11
12class MyTaskBarIcon: public wxTaskBarIcon
13{
14public:
a5593369
DE
15#if defined(__WXCOCOA__)
16 MyTaskBarIcon(wxTaskBarIconType iconType = DEFAULT_TYPE)
17 : wxTaskBarIcon(iconType)
18#else
19 MyTaskBarIcon()
20#endif
21 {}
bbf1f0e5 22
329fa151 23 void OnLeftButtonDClick(wxTaskBarIconEvent&);
a42b93aa
JS
24 void OnMenuRestore(wxCommandEvent&);
25 void OnMenuExit(wxCommandEvent&);
ab85e6cd 26 void OnMenuSetNewIcon(wxCommandEvent&);
69ecd30f 27
dae73d74
VS
28 virtual wxMenu *CreatePopupMenu();
29
69ecd30f 30DECLARE_EVENT_TABLE()
bbf1f0e5
KB
31};
32
33
34// Define a new application
35class MyApp: public wxApp
36{
37public:
38 bool OnInit(void);
bbf1f0e5
KB
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);
1e6d9c20 46 ~MyDialog();
bbf1f0e5
KB
47
48 void OnOK(wxCommandEvent& event);
49 void OnExit(wxCommandEvent& event);
50 void OnCloseWindow(wxCloseEvent& event);
51 void Init(void);
52
1e6d9c20
VS
53protected:
54 MyTaskBarIcon *m_taskBarIcon;
a5593369
DE
55#if defined(__WXCOCOA__)
56 MyTaskBarIcon *m_dockIcon;
57#endif
1e6d9c20 58
329fa151 59DECLARE_EVENT_TABLE()
bbf1f0e5 60};