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
|
2007-08-10 15:26:10 -04:00
|
|
|
// RCS-ID: $Id$
|
2007-08-10 15:25:08 -04:00
|
|
|
// Copyright: (c) 2007 Software 2000 Ltd. All rights reserved.
|
|
|
|
// Licence: wxWidgets licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#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:
|
|
|
|
typedef struct objc_selector *SEL;
|
|
|
|
|
|
|
|
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
|