FLImaging
7.8.25.3
Toggle main menu visibility
FLImagingFoundation
FLImagingGUI
GUIPropertyItemText.h
1
8
9
#pragma once
10
#include "GUIPropertyItemBase.h"
11
#include "GUIEditBase.h"
12
14
namespace
FLImaging
15
{
17
namespace
GUI
18
{
39
class
FL_EXPORT
CGUIPropertyItemText
:
public
CGUIPropertyItemBase
40
{
41
public
:
49
CGUIPropertyItemText
();
50
58
virtual
~CGUIPropertyItemText
();
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
127
virtual
CGUIEditBase::EInputType
GetInputType
()
const
;
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
215
virtual
CPropertyCallback
*
GetRealtimeEventCallback
()
const
;
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
FLImaging::Base::CFLString
Template type string class.
Definition
FLString.h:34
FLImaging::GUI::CGUIEditBase::EInputType
EInputType
Input type.
Definition
GUIEditBase.h:40
FLImaging::GUI::CGUIPropertyItemBase::CGUIPropertyItemBase
CGUIPropertyItemBase()
Default constructor.
FLImaging::GUI::CGUIPropertyItemText::~CGUIPropertyItemText
virtual ~CGUIPropertyItemText()
Destructor.
FLImaging::GUI::CGUIPropertyItemText::CGUIPropertyItemText
CGUIPropertyItemText()
Default constructor.
FLImaging::GUI::CGUIPropertyItemText::SetRealtimeEventCallback
virtual bool SetRealtimeEventCallback(CPropertyCallback *pCallback, bool bAutoDestroy=true)
Register a real-time callback invoked on every keystroke.
FLImaging::GUI::CGUIPropertyItemText::SetUserDefinedInput
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.
FLImaging::GUI::CGUIPropertyItemText::SetValue
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....
FLImaging::GUI::CGUIPropertyItemText::SetToolTipText
virtual void SetToolTipText(const Base::CFLString< wchar_t > &flsToolTipText)
Set tooltip text shown when hovering the cell.
FLImaging::GUI::CGUIPropertyItemText::SetValue
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...
FLImaging::GUI::CGUIPropertyItemText::SetInputType
virtual void SetInputType(CGUIEditBase::EInputType eInputType)
Set the built-in input type (validation mode).
FLImaging::GUI::CGUIPropertyItemText::CreateGridProperty
virtual CMFCPropertyGridProperty * CreateGridProperty() override
Create and return the MFC grid property node for this text item.
FLImaging::GUI::CGUIPropertyItemText::GetInputType
virtual CGUIEditBase::EInputType GetInputType() const
Get the current input type (validation mode).
FLImaging::GUI::CGUIPropertyItemText::GetRealtimeEventCallback
virtual CPropertyCallback * GetRealtimeEventCallback() const
Get the registered real-time callback pointer.
FLImaging::GUI
Definition
D2DObject.h:12
FLImaging::GUI::CPropertyCallback
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
FLImaging
Generated on
for FLImaging by
1.17.0