2007-08-10 15:25:08 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/cocoa/NSSlider.h
|
|
|
|
// Purpose: wxCocoaNSSlider class
|
|
|
|
// Author: Mark Oxenham
|
2007-08-15 00:12:44 -04:00
|
|
|
// Modified by: David Elliott
|
2007-08-10 15:25:08 -04:00
|
|
|
// Created: 2007/08/10
|
|
|
|
// Copyright: (c) 2007 Software 2000 Ltd. All rights reserved.
|
2010-07-13 09:29:13 -04:00
|
|
|
// Licence: wxWindows licence
|
2007-08-10 15:25:08 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WXNSSLIDER_H_
|
|
|
|
#define _WXNSSLIDER_H_
|
|
|
|
|
|
|
|
#include "wx/hashmap.h"
|
|
|
|
#include "wx/cocoa/ObjcAssociate.h"
|
|
|
|
#include "wx/cocoa/ObjcRef.h"
|
|
|
|
|
|
|
|
DECLARE_WXCOCOA_OBJC_CLASS(NSSlider);
|
|
|
|
|
|
|
|
WX_DECLARE_OBJC_HASHMAP(NSSlider);
|
|
|
|
|
2007-08-15 00:12:44 -04:00
|
|
|
// For when we're not in Objective-C mode:
|
2009-08-21 06:41:26 -04:00
|
|
|
typedef struct objc_selector *SEL;
|
2007-08-15 00:12:44 -04:00
|
|
|
|
|
|
|
class wxCocoaNSSliderLastSelectorChanger;
|
|
|
|
|
2007-08-10 15:25:08 -04:00
|
|
|
class wxCocoaNSSlider
|
|
|
|
{
|
2007-08-15 00:12:44 -04:00
|
|
|
friend class wxCocoaNSSliderLastSelectorChanger;
|
2007-08-10 15:25:08 -04:00
|
|
|
WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSSlider);
|
|
|
|
public:
|
|
|
|
void AssociateNSSlider(WX_NSSlider cocoaNSSlider);
|
|
|
|
void DisassociateNSSlider(WX_NSSlider cocoaNSSlider);
|
|
|
|
|
|
|
|
virtual void CocoaNotification_startTracking(WX_NSNotification notification) = 0;
|
|
|
|
virtual void CocoaNotification_continueTracking(WX_NSNotification notification) = 0;
|
|
|
|
virtual void CocoaNotification_stopTracking(WX_NSNotification notification) = 0;
|
|
|
|
|
2007-08-15 00:12:44 -04:00
|
|
|
static SEL GetLastResponderSelector()
|
|
|
|
{ return sm_lastResponderSelector; }
|
2007-08-10 15:25:08 -04:00
|
|
|
protected:
|
2007-08-15 00:12:44 -04:00
|
|
|
virtual ~wxCocoaNSSlider() { }
|
|
|
|
static SEL sm_lastResponderSelector;
|
2007-08-10 15:25:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|