]> git.saurik.com Git - wxWidgets.git/blob - samples/taskbar/tbtest.h
make sure NSScrollers are always having the desired orientation, fixes #10803
[wxWidgets.git] / samples / taskbar / tbtest.h
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
12 class MyTaskBarIcon : public wxTaskBarIcon
13 {
14 public:
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 void OnMenuCheckmark(wxCommandEvent&);
28 void OnMenuUICheckmark(wxUpdateUIEvent&);
29 void OnMenuSub(wxCommandEvent&);
30 virtual wxMenu *CreatePopupMenu();
31
32 DECLARE_EVENT_TABLE()
33 };
34
35
36 // Define a new application
37 class MyApp : public wxApp
38 {
39 public:
40 virtual bool OnInit();
41 };
42
43 class MyDialog: public wxDialog
44 {
45 public:
46 MyDialog(const wxString& title);
47 virtual ~MyDialog();
48
49 protected:
50 void OnAbout(wxCommandEvent& event);
51 void OnOK(wxCommandEvent& event);
52 void OnExit(wxCommandEvent& event);
53 void OnCloseWindow(wxCloseEvent& event);
54
55 MyTaskBarIcon *m_taskBarIcon;
56 #if defined(__WXCOCOA__)
57 MyTaskBarIcon *m_dockIcon;
58 #endif
59
60 DECLARE_EVENT_TABLE()
61 };