InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CSliderTracker.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: SusanCL, lance bushore
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //
23 // Implementation for the slider bar tracker
24 //
25 //========================================================================================
26 
27 #ifndef __CSliderTracker__
28 #define __CSliderTracker__
29 
30 #include "CTracker.h"
31 #include "PMRect.h"
32 
33 #ifdef WIDGET_BUILD
34 #endif
35 
36 class CSliderTracker : public CTracker
37 {
38  public:
40  ~CSliderTracker();
41 
42  virtual bool16 BeginTracking(IEvent* theEvent);
43  virtual void ContinueTracking(const PBPMPoint& where, bool16 mouseDidMove);
44  virtual bool16 EndTracking(IEvent* theEvent);
45  virtual void AbortTracking(IEvent* theEvent);
46 
47  protected:
48  virtual void GlobalToPasteboard(const GSysPoint& thePoint, PBPMPoint& convertedPoint);
49 
50  // subclasses should override these 2 methods.
51  virtual PMReal MapPointToDataRange(const PBPMPoint& pt);
52  virtual void UpdateControls( const PBPMPoint& where );
53 
54  PMReal fInitialSliderValue;
55  PMRect fConstrainingRect;
56 };
57 
58 
59 #endif //__CSliderTracker__