03647350fc
This commit is huge but there are no non-white-space changes in it. Some files containing third-party sources (src/msw/wince/time.cpp, src/x11/pango*.cpp) were left unchanged. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
48 lines
1.4 KiB
C++
48 lines
1.4 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/cocoa/NSSlider.h
|
|
// Purpose: wxCocoaNSSlider class
|
|
// Author: Mark Oxenham
|
|
// Modified by: David Elliott
|
|
// Created: 2007/08/10
|
|
// RCS-ID: $Id$
|
|
// 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);
|
|
|
|
// For when we're not in Objective-C mode:
|
|
typedef struct objc_selector *SEL;
|
|
|
|
class wxCocoaNSSliderLastSelectorChanger;
|
|
|
|
class wxCocoaNSSlider
|
|
{
|
|
friend class wxCocoaNSSliderLastSelectorChanger;
|
|
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;
|
|
|
|
static SEL GetLastResponderSelector()
|
|
{ return sm_lastResponderSelector; }
|
|
protected:
|
|
virtual ~wxCocoaNSSlider() { }
|
|
static SEL sm_lastResponderSelector;
|
|
};
|
|
|
|
#endif
|