FLImaging 7.4.14.3
GUIPropertyItemCheckBox3State.h
1
8#pragma once
9#include "GUIPropertyItemCheckBox.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
103 virtual void SetCheckState(ECheckState eState, bool bInvokeCallback = true) override;
104
116 virtual ECheckState GetCheckState() const override;
117
139 virtual const CResult SetCheckBoxTrueFalseValue(const wchar_t* pWcsTrue, const wchar_t* pWcsFalse, const wchar_t* pWcsIndeterminate);
140
158 virtual const CResult SetCheckBoxIndeterminateValue(const wchar_t* pWcsIndeterminate);
159
172
182 virtual void EnableUserIndeterminate(bool bEnable = false);
183
193 virtual bool IsUserIndeterminateEnabled() const;
194
195 protected:
204
213
214 friend class CGUIPropertyGridPropertyCheckBox;
215 };
216 }
217}
218
Template type string class.
Definition FLString.h:34
FLImaging module execution result object.
Definition ResultsDef.h:1676
virtual CMFCPropertyGridProperty * CreateGridProperty() override
Creates a property-grid node for this check box item.
virtual const CResult SetCheckBoxIndeterminateValue(const wchar_t *pWcsIndeterminate)
Sets the value displayed in the Value field when the checkbox is in the indeterminate (three-state) s...
virtual ECheckState GetCheckState() const override
Returns the current check state.
virtual void SetCheckState(ECheckState eState, bool bInvokeCallback=true) override
Sets the check state (3-state version).
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 void EnableUserIndeterminate(bool bEnable=false)
Sets whether the user can change the state to indeterminate through user input such as clicking or pr...
bool m_bUserIndeterminate
Whether to allow the user to change the state to indeterminate. (Default: true)
Definition GUIPropertyItemCheckBox3State.h:212
Base::CFLString< wchar_t > m_strIndeterminate
Display string used when the state is indeterminate (3-state).
Definition GUIPropertyItemCheckBox3State.h:203
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...
CGUIPropertyItemCheckBox3State()
Default constructor.
virtual const CResult SetCheckBoxTrueFalseValue(const wchar_t *pWcsTrue, const wchar_t *pWcsFalse, const wchar_t *pWcsIndeterminate)
Sets the display strings for checked (true), unchecked (false), and indeterminate states....
virtual bool IsUserIndeterminateEnabled() const
Returns whether the user can change the state to indeterminate through user input such as clicking or...
virtual const Base::CFLString< wchar_t > & GetCheckBoxIndeterminateValue() const
Returns the display string used when the check box is in an indeterminate state.
CGUIPropertyItemCheckBox()
Default constructor.
Definition D2DObject.h:12
ECheckState
Defines the check states including 3-state logic.
Definition DefinitionsGUI.h:12871