]> git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/NSSlider.h
Destroy the wxDialog::ShowWindowModalThenDo() functor a.s.a.p.
[wxWidgets.git] / include / wx / cocoa / NSSlider.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/NSSlider.h
3 // Purpose: wxCocoaNSSlider class
4 // Author: Mark Oxenham
5 // Modified by: David Elliott
6 // Created: 2007/08/10
7 // Copyright: (c) 2007 Software 2000 Ltd. All rights reserved.
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WXNSSLIDER_H_
12 #define _WXNSSLIDER_H_
13
14 #include "wx/hashmap.h"
15 #include "wx/cocoa/ObjcAssociate.h"
16 #include "wx/cocoa/ObjcRef.h"
17
18 DECLARE_WXCOCOA_OBJC_CLASS(NSSlider);
19
20 WX_DECLARE_OBJC_HASHMAP(NSSlider);
21
22 // For when we're not in Objective-C mode:
23 typedef struct objc_selector *SEL;
24
25 class wxCocoaNSSliderLastSelectorChanger;
26
27 class wxCocoaNSSlider
28 {
29 friend class wxCocoaNSSliderLastSelectorChanger;
30 WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSSlider);
31 public:
32 void AssociateNSSlider(WX_NSSlider cocoaNSSlider);
33 void DisassociateNSSlider(WX_NSSlider cocoaNSSlider);
34
35 virtual void CocoaNotification_startTracking(WX_NSNotification notification) = 0;
36 virtual void CocoaNotification_continueTracking(WX_NSNotification notification) = 0;
37 virtual void CocoaNotification_stopTracking(WX_NSNotification notification) = 0;
38
39 static SEL GetLastResponderSelector()
40 { return sm_lastResponderSelector; }
41 protected:
42 virtual ~wxCocoaNSSlider() { }
43 static SEL sm_lastResponderSelector;
44 };
45
46 #endif