]>
git.saurik.com Git - wxWidgets.git/blob - samples/drawer/drawertest.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxTaskBarIcon sample
4 // Author: Julian Smart
5 // Modified by: Ryan Norton (OSX 10.2+ Drawer)
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 class MyTaskBarIcon
: public wxTaskBarIcon
17 void OnLButtonDClick(wxTaskBarIconEvent
&);
18 void OnMenuRestore(wxCommandEvent
&);
19 void OnMenuExit(wxCommandEvent
&);
21 void OnMenuSetNewIcon(wxCommandEvent
&);
22 void OnMenuSetOldIcon(wxCommandEvent
&);
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
;}
28 void OnMenuOpenDrawer(wxCommandEvent
&);
29 void OnMenuCloseDrawer(wxCommandEvent
&);
31 void OnMenuLeftDrawer(wxCommandEvent
&);
32 void OnMenuRightDrawer(wxCommandEvent
&);
33 void OnMenuTopDrawer(wxCommandEvent
&);
34 void OnMenuBottomDrawer(wxCommandEvent
&);
37 virtual wxMenu
*CreatePopupMenu();
43 // Define a new application
44 class MyApp
: public wxApp
50 class MyDialog
: public wxDialog
53 MyDialog(wxWindow
* parent
, const wxWindowID id
, const wxString
& title
,
54 const wxPoint
& pos
, const wxSize
& size
, const long windowStyle
= wxDEFAULT_DIALOG_STYLE
);
57 void OnOK(wxCommandEvent
& event
);
58 void OnExit(wxCommandEvent
& event
);
59 void OnCloseWindow(wxCloseEvent
& event
);
63 MyTaskBarIcon
*m_taskBarIcon
;