2#include "GUIPropertyItemSliderBase.h"
18 class CGUISliderOwnerDrawnBase;
29 friend class CGUIPropertyGridPropertySliderDualHandle;
510 virtual void SetLabelRatio(
float f32MinRatio = 0.f,
float f32MaxRatio = 0.f);
629 virtual void SetRange(int32_t i32Min, int32_t i32Max)
override;
630 virtual void SetRange(uint32_t u32Min, uint32_t u32Max)
override;
631 virtual void SetRange(int64_t i64Min, int64_t i64Max)
override;
632 virtual void SetRange(uint64_t u64Min, uint64_t u64Max)
override;
633 virtual void SetRange(
double f64Min,
double f64Max)
override;
634 virtual void SetRange(
double f64Min,
double f64Max,
double f64Unit)
override;
635 virtual void SetRange(
double f64Min,
double f64Max,
double f64Unit, uint8_t u8DecimalPlaces)
override;
654 virtual bool SetPropertyCallback(
CPropertyCallback* pFunc,
bool bAutoDestroy =
true)
override;
656 virtual void InternalOnAfterSetRange();
658 virtual void InternalSetValueMin(
const COleVariant& varValue,
bool bRedrawImmediately);
659 virtual void InternalSetValueMax(
const COleVariant& varValue,
bool bRedrawImmediately);
660 virtual void InternalSetOrigValueMin(
const COleVariant& varValue);
661 virtual void InternalSetOrigValueMax(
const COleVariant& varValue);
666 SVariant m_varValueMin;
667 SVariant m_varValueMax;
685 bool m_bShowSpinCtrl;
686 bool m_bHandleSlidingTogether;
687 float m_f32LabelMinRatio;
688 float m_f32LabelMaxRatio;
693 bool m_bPropertyCallbackMinAutoDestroy;
694 bool m_bPropertyCallbackMaxAutoDestroy;
Template type array class.
Definition FLArray.h:71
Template type string class.
Definition FLString.h:34
FLImaging module execution result object.
Definition FLImagingBase/ResultsDef.h:1712
CGUIPropertyItemSliderBase(ESliderTemplateType eTemplateType)
Constructor for CGUIPropertyItemSliderBase class.
virtual void ShowSlider(bool bShow)
Sets whether the slider is visible or not.
virtual void SetRange(uint32_t u32Min, uint32_t u32Max) override
Sets the range for the slider.
virtual void SetRange(double f64Min, double f64Max) override
Sets the range for the slider.
virtual bool IsSpinControlVisible() const
Checks whether the spin control is currently visible.
virtual bool SetPropertyCallbackMin(CPropertyCallback *pFunc, bool bAutoDestroy=true)
Sets the callback function to be executed when the minimum value is set.
virtual bool SetPropertyCallbackMax(CPropertyCallback *pFunc, bool bAutoDestroy=true)
Sets the callback function to be executed when the maximum value is set.
virtual void SetSpinButtonLayout(ESpinButtonLayout eSpinButtonLayout=ESpinButtonLayout_Compact)
Sets the layout of the spin control buttons.
virtual bool SetOrigValueMax(const Base::CFLString< wchar_t > &strValue)
Sets the original maximum value of this.
virtual Base::CFLString< wchar_t > GetValueMin() const
Retrieves the minimum value of this.
virtual void Invalidate() override
Invalidates the area corresponding to this on the screen, forcing a redraw.
virtual ~CGUIPropertyItemSliderDualHandle()
Destructor for CGUIPropertyItemSliderDualHandle class.
virtual float GetMinLabelRatio() const
Retrieves the label ratio for the minimum value of the slider.
virtual bool SetValue(Base::CFLString< wchar_t > strValueMin, Base::CFLString< wchar_t > strValueMax, bool bInvokeCallback=true)
Sets the minimum and maximum value for the slider from a string.
virtual bool Save(Base::CFLArray< Base::CFLString< wchar_t > > &flaData) const override
Function to record the value of this in INI data array.
CGUIPropertyItemSliderDualHandle(ESliderTemplateType eTemplateType=ESliderTemplateType_Int32)
Constructor for CGUIPropertyItemSliderDualHandle class.
virtual CPropertyCallback * GetPropertyCallbackMin() const
Retrieves the callback function associated with setting the minimum value.
virtual bool SetValueMin(Base::CFLString< wchar_t > strValue, bool bInvokeCallback, bool bRedraw)
Sets the minimum value for the slider from a string.
virtual void SetMinLabel(const Base::CFLString< wchar_t > &strLabel)
Sets the label for the minimum value of the slider.
virtual void SetMaxLabelRatio(float f32Ratio=0.f)
Sets the label ratio for the maximum value of the slider.
virtual void SetMaxLabel(const Base::CFLString< wchar_t > &strLabel)
Sets the label for the maximum value of the slider.
virtual void SetRange(double f64Min, double f64Max, double f64Unit) override
Sets the range of the slider and the incremental value per step.
virtual Base::CFLString< wchar_t > GetMinLabel() const
Retrieves the label for the minimum value of the slider.
virtual void SetDefaultValue(const Base::CFLString< wchar_t > &strDefaultValueMin, const Base::CFLString< wchar_t > &strDefaultValueMax)
Sets the default maximum value of this.
virtual Base::CFLString< wchar_t > GetMaxLabel() const
Retrieves the label for the maximum value of the slider.
virtual Base::CFLString< wchar_t > GetBufferValueMin() const
Retrieves the minimum buffer value of this.
virtual bool SetBufferValue(const Base::CFLString< wchar_t > &strValueMin, const Base::CFLString< wchar_t > &strValueMax)
Sets the minimum and maximum buffer value of this.
virtual bool Save(const Base::CFLString< wchar_t > &strFilePath) const override
Saves the value of this to an ini file.
virtual void SetLabelRatio(float f32MinRatio=0.f, float f32MaxRatio=0.f)
Sets the label ratios for the minimum and maximum values of the slider.
virtual bool Load(const Base::CFLArray< Base::CFLString< wchar_t > > &flaData) override
Loads the value of this from a string array.
virtual Base::CFLString< wchar_t > GetValueMax() const
Retrieves the maximum value of this.
virtual Base::CFLString< wchar_t > GetPrevBufferValueMin() const
Retrieves the previous minimum buffer value of this.
virtual ESpinButtonLayout GetSpinButtonLayout() const
Gets the layout of the spin control buttons.
virtual void SetRange(double f64Min, double f64Max, double f64Unit, uint8_t u8DecimalPlaces) override
Sets the range of the slider, the incremental value per step, and the number of decimal places to dis...
virtual bool SetBufferValueMin(const Base::CFLString< wchar_t > &strValue)
Sets the minimum buffer value of this.
virtual bool SetValueMax(Base::CFLString< wchar_t > strValue, bool bInvokeCallback, bool bRedraw)
Sets the maximum value for the slider from a string.
virtual bool IsHandleSlidingTogether() const
Returns whether the slider handles (thumbs) move together upon collision or stop at their positions.
virtual void SetMinLabelRatio(float f32Ratio=0.f)
Sets the label ratio for the minimum value of the slider.
virtual bool SetValueMin(Base::CFLString< wchar_t > strValue, bool bInvokeCallback=true)
Sets the minimum value for the slider from a string.
virtual bool IsSliderVisible() const
Retrieves whether the slider is visible or not.
virtual void SetLabel(const Base::CFLString< wchar_t > &strMinLabel, const Base::CFLString< wchar_t > &strMaxLabel)
Sets the labels for the minimum and maximum values of the slider.
virtual const CResult SetHandleSlideTogether(bool bSet=true)
Sets whether the slider handles (thumbs) should stop upon collision or move together....
virtual bool SetValueMax(Base::CFLString< wchar_t > strValue, bool bInvokeCallback=true)
Sets the maximum value for the slider from a string.
virtual void SetRange(int64_t i64Min, int64_t i64Max) override
Sets the range for the slider.
virtual Base::CFLString< wchar_t > GetDefaultValueMax() const
Retrieves the default maximum value of this.
virtual void SetDefaultValueMin(const Base::CFLString< wchar_t > &strDefaultValue)
Sets the default minimum value of this.
virtual CMFCPropertyGridProperty * CreateGridProperty() override
It creates and returns the MFC grid property for this item. If an instance has already been created,...
virtual void SetDefaultValueMax(const Base::CFLString< wchar_t > &strDefaultValue)
Sets the default maximum value of this.
virtual bool Load(const Base::CFLString< wchar_t > &strFilePath) override
Loads the value of this from an ini file.
virtual Base::CFLString< wchar_t > GetDefaultValueMin() const
Retrieves the default minimum value of this.
virtual void ShowSpinControl(bool bShow=true)
Shows or hides the spin control next to the edit control.
virtual bool SetValue(Base::CFLString< wchar_t > strValueMin, Base::CFLString< wchar_t > strValueMax, bool bInvokeCallback, bool bRedraw)
Sets the minimum and maximum value for the slider from a string.
virtual void SetRange(int32_t i32Min, int32_t i32Max) override
Sets the range for the slider.
virtual float GetMaxLabelRatio() const
Retrieves the label ratio for the maximum value of the slider.
virtual CPropertyCallback * GetPropertyCallbackMax() const
Retrieves the callback function associated with setting the maximum value.
virtual void SetRange(uint64_t u64Min, uint64_t u64Max) override
Sets the range for the slider.
virtual bool SetOrigValueMin(const Base::CFLString< wchar_t > &strValue)
Sets the original minimum value of this.
virtual bool SetBufferValueMax(const Base::CFLString< wchar_t > &strValue)
Sets the maximum buffer value of this.
virtual Base::CFLString< wchar_t > GetBufferValueMax() const
Retrieves the maximum buffer value of this.
virtual Base::CFLString< wchar_t > GetPrevBufferValueMax() const
Retrieves the previous maximum buffer value of this.
Definition D2DObject.h:12
ESliderTemplateType
Template type of slider.
Definition FLImagingGUI/DefinitionsGUI.h:14598
@ ESliderTemplateType_Int32
Definition FLImagingGUI/DefinitionsGUI.h:14603
std::function< void(CGUIPropertyItemBase *, Base::CFLString< wchar_t > &, const Base::CFLString< wchar_t > &)> CPropertyCallback
Value-change callback invoked from within SetValue().
Definition GUIPropertyItemBase.h:193
ESpinButtonLayout
Layout of the spin control buttons.
Definition FLImagingGUI/DefinitionsGUI.h:14730
@ ESpinButtonLayout_Compact
Small buttons stacked vertically on the right side of the edit box.
Definition FLImagingGUI/DefinitionsGUI.h:14737