]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/NSSlider.h
Major wxCocoa wxSlider overhaul from Mark Oxenham.
[wxWidgets.git] / include / wx / cocoa / NSSlider.h
CommitLineData
ddac39da
DE
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/cocoa/NSSlider.h
3// Purpose: wxCocoaNSSlider class
4// Author: Mark Oxenham
5// Modified by:
6// Created: 2007/08/10
7// RCS-ID: $Id: $
8// Copyright: (c) 2007 Software 2000 Ltd. All rights reserved.
9// Licence: wxWidgets licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WXNSSLIDER_H_
13#define _WXNSSLIDER_H_
14
15#include "wx/hashmap.h"
16#include "wx/cocoa/ObjcAssociate.h"
17#include "wx/cocoa/ObjcRef.h"
18
19DECLARE_WXCOCOA_OBJC_CLASS(NSSlider);
20
21WX_DECLARE_OBJC_HASHMAP(NSSlider);
22
23class wxCocoaNSSlider
24{
25 WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSSlider);
26public:
27 void AssociateNSSlider(WX_NSSlider cocoaNSSlider);
28 void DisassociateNSSlider(WX_NSSlider cocoaNSSlider);
29
30 virtual void Cocoa_wxNSSliderUpArrowKeyDown(void) = 0;
31 virtual void Cocoa_wxNSSliderDownArrowKeyDown(void) = 0;
32 virtual void Cocoa_wxNSSliderLeftArrowKeyDown(void) = 0;
33 virtual void Cocoa_wxNSSliderRightArrowKeyDown(void) = 0;
34 virtual void Cocoa_wxNSSliderPageUpKeyDown(void) = 0;
35 virtual void Cocoa_wxNSSliderPageDownKeyDown(void) = 0;
36 virtual void Cocoa_wxNSSliderMoveUp(void) = 0;
37 virtual void Cocoa_wxNSSliderMoveDown(void) = 0;
38 virtual void Cocoa_wxNSSliderMoveLeft(void) = 0;
39 virtual void Cocoa_wxNSSliderMoveRight(void) = 0;
40 virtual void Cocoa_wxNSSliderPageUp(void) = 0;
41 virtual void Cocoa_wxNSSliderPageDown(void) = 0;
42 virtual void CocoaNotification_startTracking(WX_NSNotification notification) = 0;
43 virtual void CocoaNotification_continueTracking(WX_NSNotification notification) = 0;
44 virtual void CocoaNotification_stopTracking(WX_NSNotification notification) = 0;
45 virtual ~wxCocoaNSSlider() { }
46
47protected:
48 static const wxObjcAutoRefFromAlloc<struct objc_object*> sm_cocoaTarget;
49 static struct objc_object *sm_cocoaObserver;
50
51};
52
53#endif