FLImaging 6.7.1.3
GUIPropertyItemSlider.h
1#pragma once
2#include "GUIPropertyItemSliderBase.h"
3
11
13namespace FLImaging
14{
16 namespace GUI
17 {
18 class CGUISliderOwnerDrawnBase;
19
28 {
29 friend class CGUIPropertyGridPropertySlider;
30
31 public:
41 {
44
47
50
53
56 };
57
58 public:
70
78
87 virtual CMFCPropertyGridProperty* CreateGridProperty() override;
88
101 virtual bool SetValue(Base::CFLString<wchar_t> strValue, bool bInvokeCallback = true) override;
102
112 virtual void ShowSlider(bool bShow);
113
123 virtual bool IsSliderVisible() const;
124
136 virtual void SetEditCtrlWidth(int32_t i32EditWidth = 100, bool bForce = true);
137
149 virtual void SetEditCtrlRatio(double f64EditRatio = 0.3, bool bForce = true);
150
160 virtual int32_t GetEditCtrlWidth() const;
161
171 virtual double GetEditCtrlRatio() const;
172
182 virtual void ShowSpinControl(bool bShow = true);
183
193 virtual bool IsSpinControlVisible() const;
194
195 virtual void SetRange(int32_t i32Min, int32_t i32Max) override;
196 virtual void SetRange(uint32_t u32Min, uint32_t u32Max) override;
197 virtual void SetRange(int64_t i64Min, int64_t i64Max) override;
198 virtual void SetRange(uint64_t u64Min, uint64_t u64Max) override;
199 virtual void SetRange(double f64Min, double f64Max) override;
200 virtual void SetRange(double f64Min, double f64Max, double f64Unit) override;
201 virtual void SetRange(double f64Min, double f64Max, double f64Unit, uint8_t u8DecimalPlace) override;
202
203 virtual void Invalidate() override;
204
205 protected:
206 virtual void InternalSetEditCtrlWidth(int32_t nEditWidth);
207 virtual void InternalSetEditCtrlRatio(double f64EditRatio);
208 virtual void InternalOnAfterSetRange();
209
210 protected:
211 SVariant m_varValue;
212
213 int32_t m_i32EditCtrlWidth;
214 double m_f64EditCtrlRatio;
215
216 bool m_bDrawSlider;
217 bool m_bShowSpinCtrl;
218 bool m_bForceSetEditCtrlSize;
219 };
220 }
221}
222
Template type string class.
Definition FLString.h:34
CGUIPropertyItemSliderBase(ESliderTemplateType eTemplateType)
Constructor for CGUIPropertyItemSliderBase class.
virtual void SetRange(double f64Min, double f64Max, double f64Unit, uint8_t u8DecimalPlace) override
Sets the range of the slider, the incremental value per step, and the number of decimal places to dis...
virtual bool SetValue(Base::CFLString< wchar_t > strValue, bool bInvokeCallback=true) override
Sets the value for the slider from a string.
CGUIPropertyItemSlider(ESliderTemplateType eTemplateType)
Constructor for CGUIPropertyItemSlider class.
virtual CMFCPropertyGridProperty * CreateGridProperty() override
Creates a property grid for the slider.
virtual void SetEditCtrlRatio(double f64EditRatio=0.3, bool bForce=true)
Sets the ratio of the edit control width relative to the slider.
virtual void ShowSlider(bool bShow)
Sets whether the slider is visible or not.
virtual double GetEditCtrlRatio() const
Retrieves the ratio of the edit control width relative to the slider.
virtual void SetRange(double f64Min, double f64Max) override
Sets the range for the slider.
virtual int32_t GetEditCtrlWidth() const
Retrieves the width of the edit control displaying the slider value.
virtual void SetEditCtrlWidth(int32_t i32EditWidth=100, bool bForce=true)
Sets the width of the edit control displaying the slider value.
virtual void SetRange(int64_t i64Min, int64_t i64Max) override
Sets the range for the slider.
virtual void SetRange(uint32_t u32Min, uint32_t u32Max) override
Sets the range for the slider.
virtual void Invalidate() override
Invalidates the area corresponding to this on the screen, forcing a redraw.
virtual void SetRange(double f64Min, double f64Max, double f64Unit) override
Sets the range of the slider and the incremental value per step.
virtual bool IsSliderVisible() const
Retrieves whether the slider is visible or not.
virtual void ShowSpinControl(bool bShow=true)
Shows or hides the spin control next to the edit control.
virtual void SetRange(int32_t i32Min, int32_t i32Max) override
Sets the range for the slider.
virtual void SetRange(uint64_t u64Min, uint64_t u64Max) override
Sets the range for the slider.
ETemplateType
Template type.
Definition GUIPropertyItemSlider.h:41
@ ETemplateType_Uint64
Definition GUIPropertyItemSlider.h:52
@ ETemplateType_Int64
Definition GUIPropertyItemSlider.h:49
@ ETemplateType_Int32
Definition GUIPropertyItemSlider.h:43
@ ETemplateType_Uint32
Definition GUIPropertyItemSlider.h:46
@ ETemplateType_Double
Definition GUIPropertyItemSlider.h:55
virtual ~CGUIPropertyItemSlider()
Destructor for CGUIPropertyItemSlider class.
virtual bool IsSpinControlVisible() const
Checks whether the spin control is currently visible.
Definition D2DObject.h:12
ESliderTemplateType
Template type of slider.
Definition GUIDefinitions.h:10205