FLImaging 6.5.8.1
GUIPropertyItemSlider.h
1#pragma once
2#include "GUIPropertyItemSliderBase.h"
3
13namespace FLImaging
14{
16 namespace GUI
17 {
18 class CGUISliderOwnerDrawnBase;
19
28 {
29 friend class CGUIPropertyGridPropertySlider;
30
31 public:
41 {
43 ETemplateType_Int32 = 0,
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
173 virtual void ShowSpinControl(bool bShow = true);
174 virtual bool IsSpinControlVisible()const;
175
176 protected:
177 virtual void InternalSetEditCtrlWidth(int32_t nEditWidth);
178 virtual void InternalSetEditCtrlRatio(double f64EditRatio);
179
180 protected:
181 SVariant m_varValue;
182
183 int32_t m_i32EditCtrlWidth;
184 double m_f64EditCtrlRatio;
185
186 bool m_bDrawSlider;
187 bool m_bShowSpinCtrl;
188 bool m_bForceSetEditCtrlSize;
189 };
190 }
191}
192
Template type string class.
Definition INIUtilities.h:20
A base class of slider property item class.
Definition GUIPropertyItemSliderBase.h:28
A slider property item class.
Definition GUIPropertyItemSlider.h:28
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 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 bool IsSliderVisible() const
Retrieves whether the slider is visible or not.
ETemplateType
Template type.
Definition GUIPropertyItemSlider.h:41
@ ETemplateType_Uint64
Definition GUIPropertyItemSlider.h:52
@ ETemplateType_Int64
Definition GUIPropertyItemSlider.h:49
@ ETemplateType_Uint32
Definition GUIPropertyItemSlider.h:46
@ ETemplateType_Double
Definition GUIPropertyItemSlider.h:55
virtual ~CGUIPropertyItemSlider()
Destructor for CGUIPropertyItemSlider class.
ESliderTemplateType
Template type of slider.
Definition GUIDefinitions.h:9926