FLImaging 7.11.18.11
GUIPropertyItemSpin.h
1
8
9#pragma once
10#include "GUIPropertyItemBase.h"
11
13namespace FLImaging
14{
16 namespace GUI
17 {
18 class CGUIPropertyGridPropertySpin;
19
35 {
36 public:
45
54
55 virtual CMFCPropertyGridProperty* CreateGridProperty() override;
56
70 virtual bool SetValue(Base::CFLString<wchar_t> strValue, bool bInvokeCallback = true) override;
71
81 virtual Base::CFLString<wchar_t> GetValue() const override;
82
94 virtual bool IncreaseTick(int32_t i32Tick);
95
107 virtual bool DecreaseTick(int32_t i32Tick);
108
122 virtual bool SetRange(int32_t i32Min, int32_t i32Max);
123
135 virtual void GetRange(int32_t& i32Min, int32_t& i32Max) const;
136
149
161 virtual ESpinIcon GetSpinIcon() const;
162
175
188
189 protected:
190 int32_t m_i32Range[2];
191 ESpinIcon m_eSpinIcon;
192 ESpinButtonLayout m_eSpinButtonLayout;
193
194 friend class CGUIPropertyGridPropertySpin;
195 };
196 }
197
198}
199
Template type string class.
Definition FLString.h:34
CGUIPropertyItemBase()
Default constructor.
virtual ESpinButtonLayout GetSpinButtonLayout() const
Gets the layout of the spin control buttons.
virtual bool IncreaseTick(int32_t i32Tick)
Increase the value by a number of ticks (steps).
CGUIPropertyItemSpin()
Default constructor.
virtual Base::CFLString< wchar_t > GetValue() const override
Get the current value as a string.
virtual void SetSpinButtonLayout(ESpinButtonLayout eSpinButtonLayout=ESpinButtonLayout_Compact)
Sets the layout of the spin control buttons.
virtual CMFCPropertyGridProperty * CreateGridProperty() override
It creates and returns the MFC grid property for this item. If an instance has already been created,...
virtual ESpinIcon GetSpinIcon() const
Gets the icon for the spin control button.
virtual bool DecreaseTick(int32_t i32Tick)
Decrease the value by a number of ticks (steps).
virtual void GetRange(int32_t &i32Min, int32_t &i32Max) const
Get the current valid range.
virtual ~CGUIPropertyItemSpin()
Destructor.
virtual bool SetValue(Base::CFLString< wchar_t > strValue, bool bInvokeCallback=true) override
Set the current value as a string.
virtual bool SetRange(int32_t i32Min, int32_t i32Max)
Set the valid integer range for the control.
virtual void SetSpinIcon(ESpinIcon eSpinIcon=ESpinIcon_UpDownArrow_Brackets)
Sets the icon for the spin control button.
Definition D2DObject.h:12
ESpinIcon
Icons for the spin control button.
Definition FLImagingGUI/DefinitionsGUI.h:14770
@ ESpinIcon_UpDownArrow_Brackets
Up and down arrow icons(Angle Brackets Arrow): ∧∨
Definition FLImagingGUI/DefinitionsGUI.h:14793
ESpinButtonLayout
Layout of the spin control buttons.
Definition FLImagingGUI/DefinitionsGUI.h:14820
@ ESpinButtonLayout_Compact
Small buttons stacked vertically on the right side of the edit box.
Definition FLImagingGUI/DefinitionsGUI.h:14827