FLImaging 6.11.25.2
GUIPropertyItemSliderBase.h
1#pragma once
2#include "GUIPropertyItemBase.h"
3
11
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
84 virtual void Enable(bool bEnable) override;
85
97 virtual void SetRange(int32_t i32Min, int32_t i32Max);
98
110 virtual void SetRange(uint32_t u32Min, uint32_t u32Max);
111
123 virtual void SetRange(int64_t i64Min, int64_t i64Max);
124
136 virtual void SetRange(uint64_t u64Min, uint64_t u64Max);
137
149 virtual void SetRange(double f64Min, double f64Max);
150
164 virtual void SetRange(double f64Min, double f64Max, double f64Unit);
165
182 virtual void SetRange(double f64Min, double f64Max, double f64Unit, uint8_t u8DecimalPlaces);
183
195 virtual void GetRange(int32_t& i32Min, int32_t& i32Max) const;
196
208 virtual void GetRange(uint32_t& u32Min, uint32_t& u32Max) const;
209
221 virtual void GetRange(int64_t& i64Min, int64_t& i64Max) const;
222
234 virtual void GetRange(uint64_t& u64Min, uint64_t& u64Max) const;
235
245 virtual void SetUnit(int32_t i32Unit);
246
256 virtual void SetUnit(uint32_t u32Unit);
257
267 virtual void SetUnit(int64_t i64Unit);
268
278 virtual void SetUnit(uint64_t u64Unit);
279
291 virtual void GetRange(double& f64Min, double& f64Max) const;
292
302 virtual void SetUnit(double f64Unit);
303
313 virtual void SetDecimalPlaces(uint8_t u8DecimalPlaces);
314
324 virtual uint8_t GetDecimalPlaces() const;
325
335 virtual void GetUnit(int32_t& i32Unit) const;
336
346 virtual void GetUnit(uint32_t& u32Min) const;
347
357 virtual void GetUnit(int64_t& i64Min) const;
358
368 virtual void GetUnit(uint64_t& u64Min) const;
369
379 virtual void GetUnit(double& i32Unit) const;
380
392 virtual CGUISliderOwnerDrawnBase* GetSlider() const;
393
404
414 virtual ESpinIcon GetSpinIcon() const;
415
435
451
468
481
497 virtual void SetExponentialBase(int32_t i32Base);
498
510 virtual void SetExponentialBase(uint32_t u32Base);
511
523 virtual void SetExponentialBase(int64_t i64Base);
524
536 virtual void SetExponentialBase(uint64_t u64Base);
537
547 virtual void SetExponentialBase(double f64Base);
548
558 virtual void GetExponentialBase(double& f64Base) const;
559
569 virtual void GetExponentialBase(int32_t& i32Base) const;
570
580 virtual void GetExponentialBase(uint32_t& u32Base) const;
581
591 virtual void GetExponentialBase(int64_t& i64Base) const;
592
602 virtual void GetExponentialBase(uint64_t& u64Base) const;
603
604 virtual CMFCPropertyGridProperty* CreateGridProperty();
605
606 protected:
607 SVariant m_varRangeMin;
608 SVariant m_varRangeMax;
609 SVariant m_varUnit;
610 SVariant m_varExponentialBase;
611
612 ESliderTemplateType m_eSliderTemplateType;
613 ESpinIcon m_eSpinIcon;
614 uint8_t m_u8DecimalPlaces;
615 bool m_bInSetValueProc;
616 ECallbackTriggerMode m_eCallbackTriggerMode;
617 ESliderScaleMode m_eSliderScaleMode;
618 };
619 }
620}
621
Template type string class.
Definition FLString.h:34
FLImaging module execution result object.
Definition ResultsDef.h:1631
CGUIPropertyItemBase()
Default constructor.
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(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 SetExponentialBase(int32_t i32Base)
Sets the exponential base for the slider. This base is used when the slider is in exponential scale m...
virtual void GetExponentialBase(int32_t &i32Base) const
Retrieves the exponential base of the slider as a signed 32-bit integer.
virtual void SetRange(double f64Min, double f64Max, double f64Unit)
Sets the range of the slider and the incremental value per step.
virtual uint8_t GetDecimalPlaces() const
Retrieves the decimal places for the slider display.
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 GetExponentialBase(double &f64Base) const
Retrieves the exponential base of the slider as a double precision floating-point value.
virtual void GetExponentialBase(uint32_t &u32Base) const
Retrieves the exponential base of the slider as an unsigned 32-bit integer.
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 ESliderScaleMode GetScaleMode() const
Retrieves the current scale mode of the slider.
virtual void GetExponentialBase(int64_t &i64Base) const
Retrieves the exponential base of the slider as a signed 64-bit integer.
virtual CMFCPropertyGridProperty * CreateGridProperty()
It creates and returns the MFC grid property for this item. If an instance has already been created,...
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 void GetExponentialBase(uint64_t &u64Base) const
Retrieves the exponential base of the slider as an unsigned 64-bit integer.
virtual ~CGUIPropertyItemSliderBase()
Destructor for CGUIPropertyItemSliderBase class.
virtual ESliderTemplateType GetTemplateType() const
Gets the current template type of the slider.
virtual void SetSpinIcon(ESpinIcon eSpinIcon=ESpinIcon_UpDownArrow_Triangle)
Sets the icon for the spin control button.
virtual void SetDecimalPlaces(uint8_t u8DecimalPlaces)
Sets the decimal places for the slider display.
virtual void GetRange(int64_t &i64Min, int64_t &i64Max) const
Retrieves the range of the slider.
virtual void SetExponentialBase(uint64_t u64Base)
Sets the exponential base for the slider. This overload accepts an unsigned 64-bit value.
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 SetScaleMode(ESliderScaleMode eMode=ESliderScaleMode_Linear)
Sets the scale mode for the slider. Use ESliderScaleMode_Linear for linear scale or ESliderScaleMode_...
virtual void SetExponentialBase(double f64Base)
Sets the exponential base for the slider using a double precision floating-point value.
virtual void SetUnit(uint32_t u32Unit)
Sets the step value for the slider.
virtual void SetRange(double f64Min, double f64Max, double f64Unit, uint8_t u8DecimalPlaces)
Sets the range of the slider, the incremental value per step, and the number of decimal places to dis...
virtual void SetExponentialBase(uint32_t u32Base)
Sets the exponential base for the slider. This overload accepts an unsigned 32-bit value.
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 SetExponentialBase(int64_t i64Base)
Sets the exponential base for the slider. This overload accepts a signed 64-bit value.
virtual void GetUnit(int32_t &i32Unit) const
Retrieves the step value for the slider.
Definition D2DObject.h:12
ECallbackTriggerMode
Definition DefinitionsGUI.h:11160
@ ECallbackTriggerMode_OnDrag
Calls the callback function every time the value changes while dragging.
Definition DefinitionsGUI.h:11168
ESpinIcon
Icons for the spin control button.
Definition DefinitionsGUI.h:10430
@ ESpinIcon_UpDownArrow_Triangle
Up and down arrow icons(Triangle Arrows): ▲▼
Definition DefinitionsGUI.h:10437
ESliderTemplateType
Template type of slider.
Definition DefinitionsGUI.h:10348
ESliderScaleMode
Defines the scaling behavior of slider controls. Determines whether the slider value increases linear...
Definition DefinitionsGUI.h:11760
@ ESliderScaleMode_Linear
Linear scaling mode. The slider value changes at a constant rate with respect to movement.
Definition DefinitionsGUI.h:11769