]>
Commit | Line | Data |
---|---|---|
ddac39da DE |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/cocoa/NSSlider.h | |
3 | // Purpose: wxCocoaNSSlider class | |
4 | // Author: Mark Oxenham | |
4f46c20b | 5 | // Modified by: David Elliott |
ddac39da | 6 | // Created: 2007/08/10 |
ddac39da | 7 | // Copyright: (c) 2007 Software 2000 Ltd. All rights reserved. |
526954c5 | 8 | // Licence: wxWindows licence |
ddac39da DE |
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 | ||
4f46c20b | 22 | // For when we're not in Objective-C mode: |
03647350 | 23 | typedef struct objc_selector *SEL; |
4f46c20b DE |
24 | |
25 | class wxCocoaNSSliderLastSelectorChanger; | |
26 | ||
ddac39da DE |
27 | class wxCocoaNSSlider |
28 | { | |
4f46c20b | 29 | friend class wxCocoaNSSliderLastSelectorChanger; |
ddac39da DE |
30 | WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSSlider); |
31 | public: | |
32 | void AssociateNSSlider(WX_NSSlider cocoaNSSlider); | |
33 | void DisassociateNSSlider(WX_NSSlider cocoaNSSlider); | |
34 | ||
ddac39da DE |
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; | |
ddac39da | 38 | |
4f46c20b DE |
39 | static SEL GetLastResponderSelector() |
40 | { return sm_lastResponderSelector; } | |
ddac39da | 41 | protected: |
4f46c20b DE |
42 | virtual ~wxCocoaNSSlider() { } |
43 | static SEL sm_lastResponderSelector; | |
ddac39da DE |
44 | }; |
45 | ||
46 | #endif |