FLImaging 6.5.8.1
GUIPropertyItemSliderBase.h
1#pragma once
2#include "GUIPropertyItemBase.h"
3
13namespace FLImaging
14{
16 namespace GUI
17 {
18 class CGUISliderOwnerDrawnBase;
19
28 {
29 friend class CGUIPropertyGridPropertySliderBase;
30
31 public:
42
50
60 virtual void SetTemplateType(ESliderTemplateType eTemplateType);
61
72
73 virtual bool SetValue(Base::CFLString<wchar_t> strValue, bool bInvokeCallback = true) override;
74
85 virtual bool SetOrigValue(const Base::CFLString<wchar_t>& strValue) override;
86
96 virtual void Enable(bool bEnable) override;
97
109 virtual void SetRange(int32_t i32Min, int32_t i32Max);
110
122 virtual void SetRange(uint32_t u32Min, uint32_t u32Max);
123
135 virtual void SetRange(int64_t i64Min, int64_t i64Max);
136
148 virtual void SetRange(uint64_t u64Min, uint64_t u64Max);
149
161 virtual void SetRange(double f64Min, double f64Max);
162
176 virtual void SetRange(double f64Min, double f64Max, double f64Unit);
177
194 virtual void SetRange(double f64Min, double f64Max, double f64Unit, uint8_t u8DecimalPlace);
195
207 virtual void GetRange(int32_t& i32Min, int32_t& i32Max) const;
208
220 virtual void GetRange(uint32_t& u32Min, uint32_t& u32Max) const;
221
233 virtual void GetRange(int64_t& i64Min, int64_t& i64Max) const;
234
246 virtual void GetRange(uint64_t& u64Min, uint64_t& u64Max) const;
247
257 virtual void SetUnit(int32_t i32Unit);
258
268 virtual void SetUnit(uint32_t u32Unit);
269
279 virtual void SetUnit(int64_t i64Unit);
280
290 virtual void SetUnit(uint64_t u64Unit);
291
303 virtual void GetRange(double& f64Min, double& f64Max) const;
304
314 virtual void SetUnit(double f64Unit);
315
325 virtual void SetDecimalPlace(uint8_t u8DecimalPlace);
326
336 virtual uint8_t GetDecimalPlace() const;
337
347 virtual void GetUnit(int32_t& i32Unit) const;
348
358 virtual void GetUnit(uint32_t& u32Min) const;
359
369 virtual void GetUnit(int64_t& i64Min) const;
370
380 virtual void GetUnit(uint64_t& u64Min) const;
381
391 virtual void GetUnit(double& i32Unit) const;
392
404 virtual CGUISliderOwnerDrawnBase* GetSlider() const;
405
415 virtual void SetSpinIcon(ESpinIcon eSpinIcon = ESpinIcon_UpDownArrow_Triangle);
416
426 virtual ESpinIcon GetSpinIcon() const;
427
446 virtual const CResult SetCallbackTriggerMode(ECallbackTriggerMode eMode = ECallbackTriggerMode_OnDrag);
447
463
464 virtual CMFCPropertyGridProperty* CreateGridProperty();
465
466 protected:
467 SVariant m_varRangeMin;
468 SVariant m_varRangeMax;
469 SVariant m_varUnit;
470
471 ESliderTemplateType m_eSliderTemplateType;
472 ESpinIcon m_eSpinIcon;
473 uint8_t m_u8DecimalPlace;
474 bool m_bInSetValueProc;
475 ECallbackTriggerMode m_eCallbackTriggerMode;
476 };
477 }
478}
479
Template type string class.
Definition INIUtilities.h:20
FLImaging module execution result object.
Definition ResultsDef.h:1514
Property item base class.
Definition GUIPropertyItemBase.h:37
A base class of slider property item class.
Definition GUIPropertyItemSliderBase.h:28
virtual void GetRange(double &f64Min, double &f64Max) const
Retrieves the range of the slider.
virtual void SetUnit(uint64_t u64Unit)
Sets the step value for the slider.
virtual void GetRange(uint32_t &u32Min, uint32_t &u32Max) const
Retrieves the range of the slider.
virtual void SetRange(double f64Min, double f64Max, double f64Unit, uint8_t u8DecimalPlace)
Sets the range of the slider, the incremental value per step, and the number of decimal places to dis...
virtual void SetRange(int32_t i32Min, int32_t i32Max)
Sets the range for the slider.
virtual void GetUnit(int64_t &i64Min) const
Retrieves the step value for the slider.
virtual const CResult SetCallbackTriggerMode(ECallbackTriggerMode eMode=ECallbackTriggerMode_OnDrag)
Sets the callback function trigger condition. To call the callback function every time the slider val...
virtual void GetRange(uint64_t &u64Min, uint64_t &u64Max) const
Retrieves the range of the slider.
virtual void SetDecimalPlace(uint8_t u8DecimalPlace)
Sets the decimal place for the slider display.
virtual void SetRange(double f64Min, double f64Max, double f64Unit)
Sets the range of the slider and the incremental value per step.
virtual void SetUnit(int64_t i64Unit)
Sets the step value for the slider.
virtual void GetUnit(uint64_t &u64Min) const
Retrieves the step value for the slider.
virtual void SetTemplateType(ESliderTemplateType eTemplateType)
Sets the template type for the slider.
virtual void GetUnit(uint32_t &u32Min) const
Retrieves the step value for the slider.
virtual CMFCPropertyGridProperty * CreateGridProperty()
Creates and returns a new grid property associated with this.
virtual void SetUnit(int32_t i32Unit)
Sets the step value for the slider.
virtual ESpinIcon GetSpinIcon() const
Gets the current spin icon type of the slider.
virtual CGUISliderOwnerDrawnBase * GetSlider() const
Retrieves the slider component.
virtual void SetRange(uint64_t u64Min, uint64_t u64Max)
Sets the range for the slider.
virtual ECallbackTriggerMode GetCallbackTriggerMode() const
Returns the callback function trigger condition. If the callback function is triggered whenever the s...
virtual bool SetValue(Base::CFLString< wchar_t > strValue, bool bInvokeCallback=true) override
Sets the value for this.
virtual ~CGUIPropertyItemSliderBase()
Destructor for CGUIPropertyItemSliderBase class.
virtual bool SetOrigValue(const Base::CFLString< wchar_t > &strValue) override
Sets the original value for the slider from a string.
virtual ESliderTemplateType GetTemplateType() const
Gets the current template type of the slider.
virtual uint8_t GetDecimalPlace() const
Retrieves the decimal place for the slider display.
virtual void SetSpinIcon(ESpinIcon eSpinIcon=ESpinIcon_UpDownArrow_Triangle)
Sets the icon for the spin control button.
virtual void GetRange(int64_t &i64Min, int64_t &i64Max) const
Retrieves the range of the slider.
virtual void Enable(bool bEnable) override
Enables or disables the slider.
virtual void SetRange(int64_t i64Min, int64_t i64Max)
Sets the range for the slider.
virtual void GetUnit(double &i32Unit) const
Retrieves the step value for the slider.
virtual void GetRange(int32_t &i32Min, int32_t &i32Max) const
Retrieves the range of the slider.
CGUIPropertyItemSliderBase(ESliderTemplateType eTemplateType)
Constructor for CGUIPropertyItemSliderBase class.
virtual void SetRange(double f64Min, double f64Max)
Sets the range for the slider.
virtual void SetUnit(uint32_t u32Unit)
Sets the step value for the slider.
virtual void SetUnit(double f64Unit)
Sets the step value for the slider.
virtual void SetRange(uint32_t u32Min, uint32_t u32Max)
Sets the range for the slider.
virtual void GetUnit(int32_t &i32Unit) const
Retrieves the step value for the slider.
ECallbackTriggerMode
Definition GUIDefinitions.h:10756
ESpinIcon
Icons for the spin control button.
Definition GUIDefinitions.h:10008
ESliderTemplateType
Template type of slider.
Definition GUIDefinitions.h:9926