FLImaging 7.8.25.3
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
217 protected:
218 CGUIEditBase::EInputType m_eInputType;
219
220 Base::CFLString<wchar_t> m_flsInvalidCharSet;
221 Base::CFLString<wchar_t> m_flsValidCharSet;
222 Base::CFLString<wchar_t> m_flsToolTipText;
223
224 CPropertyCallback* m_pRealtimeCallback;
225 bool m_bRealtimeCallbackAutoDestroy;
226
227 friend class CGUIPropertyGridPropertyText;
228 };
229 }
230}
231
Template type string class.
Definition FLString.h:34
EInputType
Input type.
Definition GUIEditBase.h:40
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 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:193