FLImaging 6.10.23.2
GUIPropertyItemText.h
1
8
9#pragma once
10#include "GUIPropertyItemBase.h"
11#include "GUIEditBase.h"
12
14namespace FLImaging
15{
17 namespace GUI
18 {
40 {
41 public:
50
59
69 virtual CMFCPropertyGridProperty* CreateGridProperty() override;
70
84 virtual bool SetValue(Base::CFLString<wchar_t> strValue, bool bInvokeCallback = true) override;
85
101 virtual bool SetValue(Base::CFLString<wchar_t> strValue, bool bInvokeCallback, bool bRedraw);
102
114 virtual void SetInputType(CGUIEditBase::EInputType eInputType);
115
128
162 virtual void SetUserDefinedInput(const Base::CFLString<wchar_t>& flstrInvalidCharSet,
163 const Base::CFLString<wchar_t>& flstrValidCharSet);
164
176 virtual void SetToolTipText(const Base::CFLString<wchar_t>& flsToolTipText);
177
202 virtual bool SetRealtimeEventCallback(CPropertyCallback* pCallback, bool bAutoDestroy = true);
203
216
226 virtual void Enable(bool bEnable) override;
227
228 protected:
229 CGUIEditBase::EInputType m_eInputType;
230
231 Base::CFLString<wchar_t> m_flsInvalidCharSet;
232 Base::CFLString<wchar_t> m_flsValidCharSet;
233 Base::CFLString<wchar_t> m_flsToolTipText;
234
235 CPropertyCallback* m_pRealtimeCallback;
236 bool m_bRealtimeCallbackAutoDestroy;
237
238 friend class CGUIPropertyGridPropertyText;
239 };
240 }
241}
242
Template type string class.
Definition FLString.h:34
EInputType
Input type.
Definition GUIEditBase.h:39
CGUIPropertyItemBase()
Default constructor.
virtual ~CGUIPropertyItemText()
Destructor.
CGUIPropertyItemText()
Default constructor.
virtual bool SetRealtimeEventCallback(CPropertyCallback *pCallback, bool bAutoDestroy=true)
Register a real-time callback invoked on every keystroke.
virtual void SetUserDefinedInput(const Base::CFLString< wchar_t > &flstrInvalidCharSet, const Base::CFLString< wchar_t > &flstrValidCharSet)
Set the character set to be denied or accept input.
virtual bool SetValue(Base::CFLString< wchar_t > strValue, bool bInvokeCallback, bool bRedraw)
Set the text value with explicit redraw control. It does not check whether the value is valid (i....
virtual void SetToolTipText(const Base::CFLString< wchar_t > &flsToolTipText)
Set tooltip text shown when hovering the cell.
virtual bool SetValue(Base::CFLString< wchar_t > strValue, bool bInvokeCallback=true) override
Set the text value. It does not check whether the value is valid (i.e., conforms to the input constra...
virtual void Enable(bool bEnable) override
Enable or disable editing of this item.
virtual void SetInputType(CGUIEditBase::EInputType eInputType)
Set the built-in input type (validation mode).
virtual CMFCPropertyGridProperty * CreateGridProperty() override
Create and return the MFC grid property node for this text item.
virtual CGUIEditBase::EInputType GetInputType() const
Get the current input type (validation mode).
virtual CPropertyCallback * GetRealtimeEventCallback() const
Get the registered real-time callback pointer.
Definition D2DObject.h:12
std::function< void(CGUIPropertyItemBase *, Base::CFLString< wchar_t > &, const Base::CFLString< wchar_t > &)> CPropertyCallback
Value-change callback invoked from within SetValue().
Definition GUIPropertyItemBase.h:191