]> git.saurik.com Git - wxWidgets.git/blame - samples/taskbar/tbtest.h
added test for wxXmlResource::Unload()
[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&);
2afa9fa7
RR
27 void OnMenuCheckmark(wxCommandEvent&);
28 void OnMenuUICheckmark(wxUpdateUIEvent&);
dae73d74
VS
29 virtual wxMenu *CreatePopupMenu();
30
69ecd30f 31DECLARE_EVENT_TABLE()
bbf1f0e5
KB
32};
33
34
35// Define a new application
36class MyApp: public wxApp
37{
38public:
39 bool OnInit(void);
bbf1f0e5
KB
40};
41
42class MyDialog: public wxDialog
43{
44public:
45 MyDialog(wxWindow* parent, const wxWindowID id, const wxString& title,
46 const wxPoint& pos, const wxSize& size, const long windowStyle = wxDEFAULT_DIALOG_STYLE);
1e6d9c20 47 ~MyDialog();
bbf1f0e5
KB
48
49 void OnOK(wxCommandEvent& event);
50 void OnExit(wxCommandEvent& event);
51 void OnCloseWindow(wxCloseEvent& event);
52 void Init(void);
53
1e6d9c20
VS
54protected:
55 MyTaskBarIcon *m_taskBarIcon;
a5593369
DE
56#if defined(__WXCOCOA__)
57 MyTaskBarIcon *m_dockIcon;
58#endif
1e6d9c20 59
329fa151 60DECLARE_EVENT_TABLE()
bbf1f0e5 61};