12#include "GUIAbstractBar.h"
13#include "GUIColorPropertyObserver.h"
15#include "GUINinePatch.h"
21#include "GUICommonEnums.h"
63 const eC_Value& vX,
const eC_Value& vY,
64 const eC_Value& vWidth,
const eC_Value& vHeight,
65 const eC_Value& vStartAngle,
66 const eC_Value& vEndAngle,
70 const eC_UInt &uiStepSize,
80 const eC_Value& vAbsX,
81 const eC_Value& vAbsY);
84 const eC_Value& vDeltaX,
85 const eC_Value& vDeltaY,
86 const eC_Value& vAbsX,
87 const eC_Value& vAbsY);
231 virtual void SetRange(
const eC_Int& iMin,
const eC_Int& iMax);
234#ifdef GUILIANI_STREAM_GUI
243#ifdef GUILIANI_WRITE_GUI
248#ifndef GUILIANI_STREAM_GUI
255 eC_Int GetSliderValue(
const eC_Value& vAngle);
262 void AdjustDrawAngle();
264 eC_Value GetAngle(
const eC_Value& vAbsX,
const eC_Value& vAbsY);
266 void CalculateLinePoints();
280 const eC_Value& vStartAngle,
281 const eC_Value& vEndAngle,
282 const eC_Int &iValue,
285 const eC_UInt &uiStepSize,
291 static const eC_UInt INDEX_KNOBCOLOR;
292 static const eC_UInt INDEX_LINECOLOR;
295 eC_Bool m_bAxisControl;
296 eC_Bool m_bSmoothControl;
302 eC_UInt m_uiKnobColor;
303 eC_Value m_vKnobRadius;
304 eC_UInt m_uiLineColor;
305 eC_Value m_vLineWidth;
306 eC_Value m_vLineLength;
308 eC_Value m_vStartAngle;
309 eC_Value m_vEndAngle;
311 eC_Value m_vDrawAngle;
312 eC_Value m_vSmoothAngle;
313 eC_Value m_vLineStartX;
314 eC_Value m_vLineEndX;
315 eC_Value m_vLineStartY;
316 eC_Value m_vLineEndY;
318 eC_Int m_iImageWidth;
319 eC_Int m_iImageHeight;
Helper Macros in Guiliani
ImageResource_t
Enumeration of image resource ids.
Definition: GUIImageResource.h:126
ObjectHandle_t
List of object resource ids.
Definition: GUIObjectHandleResource.h:55
GlobalProperty_t
List of property resource ids.
Definition: GUIPropertyResource.h:67
Base class for bars.
Definition: GUIAbstractBar.h:33
This observer provides the base-interface for controls when using color-properties.
Definition: GUIColorPropertyObserver.h:23
Orientation_t
orientation of controls
Definition: GUICommonEnums.h:57
This is the Guiliani base class for all composite objects.
Definition: GUICompositeObject.h:70
This class represents a knoblike-control.
Definition: GUIKnob.h:44
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
void SetImages(const ImageResource_t &eImageBG, const ImageResource_t &eImageKnob)
void SetLineLength(const eC_Value &vLineLength)
eC_Value GetKnobRadius() const
virtual eC_Bool IsHighlightable() const
Definition: GUIKnob.h:91
eC_UInt GetKnobColor() const
void SetKnobColor(const GlobalProperty_t &eKnobColor)
eC_Bool GetSmoothControl() const
void SetAxisControl(const eC_Bool &bAxisControl)
eC_Value GetLineLength() const
CGUICommonEnums::Orientation_t GetDragOrientation() const
eC_Value GetLineWidth() const
void SetLineWidth(const eC_Value &vLineWidth)
void SetStandardImages()
sets all images to standart images
void SetLineColor(const GlobalProperty_t &eLineColor)
eC_UInt GetLineColor() const
void SetLineColor(const eC_UInt &uiLineColor)
virtual eC_Bool DoDragEnd(const eC_Value &vAbsX, const eC_Value &vAbsY)
void SetImages(const ImageResource_t &eKnobBG, const ImageResource_t &eKnobNormal, const ImageResource_t &eKnobHighlighted, const ImageResource_t &eKnobPressed, const ImageResource_t &eKnobGrayedOut=DUMMY_IMAGE)
Definition: GUIKnob.h:136
virtual void ReadFromStream()
void SetStartAngle(const eC_Value &vStartAngle)
void SetSmoothControl(const eC_Bool &bSmoothControl)
eC_Value GetEndAngle() const
virtual void SetRange(const eC_Int &iMin, const eC_Int &iMax)
virtual eC_Bool DoDrag(const eC_Value &vDeltaX, const eC_Value &vDeltaY, const eC_Value &vAbsX, const eC_Value &vAbsY)
virtual eC_Bool SetValue(const CGUIValue &rkValue)
eC_Bool GetAxisControl() const
void SetKnobColor(const eC_UInt &uiKnobColor)
void SetEndAngle(const eC_Value &vEndAngle)
void SetDragOrientation(const CGUICommonEnums::Orientation_t &eOrientation)
CGUIKnob(CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const eC_Value &vStartAngle, const eC_Value &vEndAngle, const eC_Int &iValue, const eC_Int &iMin, const eC_Int &iMax, const eC_UInt &uiStepSize, const CGUIRange::Base_t &eBase=CGUIRange::BASE_AT_MINIMUM, const ObjectHandle_t &eID=NO_HANDLE)
void SetKnobRadius(const eC_Value &vKnobRadius)
eC_Value GetStartAngle() const
Base_t
Whether base is at minimum or maximum of the range.
Definition: GUIRange.h:72
CGUIValue stores a single value in one specific type.
Definition: GUIValue.h:25