]> git.saurik.com Git - wxWidgets.git/blob - samples/drawer/drawertest.h
added AC_CXX_REINTERPRET_CAST
[wxWidgets.git] / samples / drawer / drawertest.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: tbtest.h
3 // Purpose: wxTaskBarIcon sample
4 // Author: Julian Smart
5 // Modified by: Ryan Norton (OSX 10.2+ Drawer)
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 MyTaskBarIcon() {};
16
17 void OnLButtonDClick(wxTaskBarIconEvent&);
18 void OnMenuRestore(wxCommandEvent&);
19 void OnMenuExit(wxCommandEvent&);
20
21 void OnMenuSetNewIcon(wxCommandEvent&);
22 void OnMenuSetOldIcon(wxCommandEvent&);
23
24 #if defined( __WXMAC__ ) && TARGET_API_MAC_OSX && ( MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_2 )
25 class MyDrawer* m_pMyDrawer;
26 MyTaskBarIcon(class MyDrawer* p) {m_pMyDrawer = p;}
27
28 void OnMenuOpenDrawer(wxCommandEvent&);
29 void OnMenuCloseDrawer(wxCommandEvent&);
30
31 void OnMenuLeftDrawer(wxCommandEvent&);
32 void OnMenuRightDrawer(wxCommandEvent&);
33 void OnMenuTopDrawer(wxCommandEvent&);
34 void OnMenuBottomDrawer(wxCommandEvent&);
35 #endif //10.2+
36
37 virtual wxMenu *CreatePopupMenu();
38
39 DECLARE_EVENT_TABLE()
40 };
41
42
43 // Define a new application
44 class MyApp: public wxApp
45 {
46 public:
47 bool OnInit(void);
48 };
49
50 class MyDialog: public wxDialog
51 {
52 public:
53 MyDialog(wxWindow* parent, const wxWindowID id, const wxString& title,
54 const wxPoint& pos, const wxSize& size, const long windowStyle = wxDEFAULT_DIALOG_STYLE);
55 ~MyDialog();
56
57 void OnOK(wxCommandEvent& event);
58 void OnExit(wxCommandEvent& event);
59 void OnCloseWindow(wxCloseEvent& event);
60 void Init(void);
61
62 protected:
63 MyTaskBarIcon *m_taskBarIcon;
64
65 DECLARE_EVENT_TABLE()
66 };
67
68