00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #if !defined(_TArcSliderControl2_h_)
00011 #define _TArcSliderControl2_h_
00012
00013 #include "TSliderControl.h"
00014
00015 class TArcSliderControl2 : public TSliderControl
00016 {
00017 AUGUIDefineControl(TArcSliderControl2, TSliderControl, "arcslider2");
00018 protected:
00019
00020 TArcSliderControl2(HIViewRef inControl);
00021 virtual ~TArcSliderControl2();
00022
00023 virtual void EraseBackground(CGContextRef inContext, bool inCompositing);
00024 virtual void DrawStaticBackground(RgnHandle inLimitRgn, CGContextRef inContext, bool inCompositing );
00025 virtual void CompatibleDraw(RgnHandle inLimitRgn, CGContextRef inContext, bool inCompositing);
00026 virtual void TitleChanged();
00027 virtual OSStatus StillTracking(TCarbonEvent&inEvent, HIPoint& from);
00028 virtual OSStatus StartTracking(TCarbonEvent&inEvent, HIPoint& from);
00029
00030 public:
00031
00032 virtual void SetProperty(OSType propID, double value);
00033 virtual bool GetProperty(OSType propID, double &value);
00034
00035 protected:
00036 virtual bool Prerender() { return false; };
00037 float mCenterX, mCenterY, mRadius, mMinAngle, mMaxAngle, mAngle;
00038 int mOldValue;
00039 };
00040
00041
00042 #endif // _TArcSliderControl2_h_