]> git.saurik.com Git - wxWidgets.git/blob - samples/taskbar/tbtest.h
Define __VISUALC__ for ICC under Windows again.
[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 // Copyright: (c)
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 class MyTaskBarIcon : public wxTaskBarIcon
12 {
13 public:
14 #if defined(__WXOSX__) && wxOSX_USE_COCOA
15 MyTaskBarIcon(wxTaskBarIconType iconType = wxTBI_DEFAULT_TYPE)
16 : wxTaskBarIcon(iconType)
17 #else
18 MyTaskBarIcon()
19 #endif
20 {}
21
22 void OnLeftButtonDClick(wxTaskBarIconEvent&);
23 void OnMenuRestore(wxCommandEvent&);
24 void OnMenuExit(wxCommandEvent&);
25 void OnMenuSetNewIcon(wxCommandEvent&);
26 void OnMenuCheckmark(wxCommandEvent&);
27 void OnMenuUICheckmark(wxUpdateUIEvent&);
28 void OnMenuSub(wxCommandEvent&);
29 virtual wxMenu *CreatePopupMenu();
30
31 DECLARE_EVENT_TABLE()
32 };
33
34
35 // Define a new application
36 class MyApp : public wxApp
37 {
38 public:
39 virtual bool OnInit();
40 };
41
42 class MyDialog: public wxDialog
43 {
44 public:
45 MyDialog(const wxString& title);
46 virtual ~MyDialog();
47
48 protected:
49 void OnAbout(wxCommandEvent& event);
50 void OnOK(wxCommandEvent& event);
51 void OnExit(wxCommandEvent& event);
52 void OnCloseWindow(wxCloseEvent& event);
53
54 MyTaskBarIcon *m_taskBarIcon;
55 #if defined(__WXOSX__) && wxOSX_USE_COCOA
56 MyTaskBarIcon *m_dockIcon;
57 #endif
58
59 DECLARE_EVENT_TABLE()
60 };