FLImaging 7.4.14.3
GUIPropertyItemCheckBox.h
1
8#pragma once
9#include "GUIPropertyItemBase.h"
10
12namespace FLImaging
13{
15 namespace GUI
16 {
17 class CGUIPropertyGridPropertyCheckBox;
18
27 {
28 public:
37
46
56 virtual CMFCPropertyGridProperty* CreateGridProperty() override;
57
75 virtual bool SetValue(Base::CFLString<wchar_t> strValue, bool bInvokeCallback = true) override;
76
88 virtual Base::CFLString<wchar_t> GetValue() const override;
89
101 virtual void SetCheck(bool bCheck, bool bInvokeCallback = true);
102
116 virtual void SetCheckState(ECheckState eState, bool bInvokeCallback = true);
117
127 virtual bool GetCheck() const;
128
140 virtual ECheckState GetCheckState() const;
141
153 virtual bool Load(const Base::CFLString<wchar_t>& strFilePath) override;
154
166 virtual bool Load(const Base::CFLArray<Base::CFLString<wchar_t>>& flaData) override;
167
177 virtual void SetCheckBoxOnRight(bool bSet);
178
188 virtual bool IsCheckBoxOnRight() const;
189
210 const Base::CFLString<wchar_t>& strFalse);
211
224
237
249 virtual void InternalSetValue(const COleVariant& varValue, bool bRedrawImmediately) override;
250
251 protected:
260
269
278
279 friend class CGUIPropertyGridPropertyCheckBox;
280 };
281 }
282}
283
Template type array class.
Definition FLArray.h:53
Template type string class.
Definition FLString.h:34
FLImaging module execution result object.
Definition ResultsDef.h:1676
CGUIPropertyItemBase()
Default constructor.
virtual Base::CFLString< wchar_t > GetValue() const override
Returns the current value of this item as a string (the mapped text for the current check state).
virtual CMFCPropertyGridProperty * CreateGridProperty() override
Creates a property-grid node for this check box item.
virtual const Base::CFLString< wchar_t > & GetCheckBoxFalseValue() const
Returns the display string used when the check box is unchecked.
Base::CFLString< wchar_t > m_strFalse
Display string used when unchecked (false).
Definition GUIPropertyItemCheckBox.h:277
bool m_bCheckBoxOnRight
Whether the check box is placed on the right Value column.
Definition GUIPropertyItemCheckBox.h:259
virtual const Base::CFLString< wchar_t > & GetCheckBoxTrueValue() const
Returns the display string used when the check box is checked.
virtual const CResult SetCheckBoxTrueFalseValue(const Base::CFLString< wchar_t > &strTrue, const Base::CFLString< wchar_t > &strFalse)
Sets the display strings for checked (true) and unchecked (false) states. By default,...
virtual void SetCheckBoxOnRight(bool bSet)
Sets whether the check box is shown in the right Value column.
Base::CFLString< wchar_t > m_strTrue
Display string used when checked (true).
Definition GUIPropertyItemCheckBox.h:268
virtual ~CGUIPropertyItemCheckBox()
Destructor.
virtual bool Load(const Base::CFLArray< Base::CFLString< wchar_t > > &flaData) override
Loads the value of this item from a string array.
virtual ECheckState GetCheckState() const
Returns the current check state.
virtual void InternalSetValue(const COleVariant &varValue, bool bRedrawImmediately) override
Internally sets the value from a COleVariant and optionally redraws immediately.
virtual void SetCheckState(ECheckState eState, bool bInvokeCallback=true)
Sets the check state (3-state version).
virtual bool GetCheck() const
Returns the current check state.
virtual bool SetValue(Base::CFLString< wchar_t > strValue, bool bInvokeCallback=true) override
Sets the value of this item as a string. The string is typically the mapped text for checked/unchecke...
virtual bool Load(const Base::CFLString< wchar_t > &strFilePath) override
Loads the value of this item from an INI file.
virtual void SetCheck(bool bCheck, bool bInvokeCallback=true)
Sets the check state.
virtual bool IsCheckBoxOnRight() const
Returns whether the check box is placed in the right Value column.
CGUIPropertyItemCheckBox()
Default constructor.
Definition D2DObject.h:12
ECheckState
Defines the check states including 3-state logic.
Definition DefinitionsGUI.h:12871