FLImaging 6.8.12.1
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 u8DecimalPlace);
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 SetDecimalPlace(uint8_t u8DecimalPlace);
314
324 virtual uint8_t GetDecimalPlace() 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
452 virtual CMFCPropertyGridProperty* CreateGridProperty();
453
454 protected:
455 SVariant m_varRangeMin;
456 SVariant m_varRangeMax;
457 SVariant m_varUnit;
458
459 ESliderTemplateType m_eSliderTemplateType;
460 ESpinIcon m_eSpinIcon;
461 uint8_t m_u8DecimalPlace;
462 bool m_bInSetValueProc;
463 ECallbackTriggerMode m_eCallbackTriggerMode;
464 };
465 }
466}
467
Template type string class.
Definition FLString.h:34
FLImaging module execution result object.
Definition ResultsDef.h:1596
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(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 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.
Definition D2DObject.h:12
ECallbackTriggerMode
Definition DefinitionsGUI.h:11149
@ ECallbackTriggerMode_OnDrag
Calls the callback function every time the value changes while dragging.
Definition DefinitionsGUI.h:11157
ESpinIcon
Icons for the spin control button.
Definition DefinitionsGUI.h:10379
@ ESpinIcon_UpDownArrow_Triangle
Up and down arrow icons(Triangle Arrows): ▲▼
Definition DefinitionsGUI.h:10386
ESliderTemplateType
Template type of slider.
Definition DefinitionsGUI.h:10297