FLImaging 6.9.12.2
GUIPropertyItemText.h
1#pragma once
2
3#include "GUIPropertyItemBase.h"
4#include "GUIEditBase.h"
5
6namespace FLImaging
7{
8 namespace GUI
9 {
10 class FL_EXPORT CGUIPropertyItemText : public CGUIPropertyItemBase
11 {
12 public:
13 CGUIPropertyItemText();
14 virtual ~CGUIPropertyItemText();
15
16 virtual CMFCPropertyGridProperty* CreateGridProperty() override;
17
18 virtual bool SetValue(Base::CFLString<wchar_t> strValue, bool bInvokeCallback = true) override;
19 virtual bool SetValue(Base::CFLString<wchar_t> strValue, bool bInvokeCallback, bool bRedraw);
20
28 virtual void SetInputType(CGUIEditBase::EInputType eInputType);
29
37 virtual CGUIEditBase::EInputType GetInputType() const;
38
39 // Set the character set to deny or accept input.
40 // If you set an empty string to cstrValidCharSet, input of any string except the characters in cstrInvalidCharSet is accepted.
41 // If you set an empty string in cstrInvalidCharSet, only characters input from cstrValidCharSet is allowed.
42 virtual void SetUserDefinedInput(Base::CFLString<wchar_t> cstrInvalidCharSet, Base::CFLString<wchar_t> cstrValidCharSet);
43
51 virtual void SetToolTipText(Base::CFLString<wchar_t> cstrToolTipText);
52
62 virtual bool SetRealtimeEventCallback(CPropertyCallback* pCallback, bool bAutoDestroy = true);
63
71 virtual CPropertyCallback* GetRealtimeEventCallback() const;
72
73 virtual void Enable(bool bEnable) override;
74 protected:
75 CGUIEditBase::EInputType m_eInputType;
76 Base::CFLString<wchar_t> m_cstrInvalidCharSet;
77 Base::CFLString<wchar_t> m_cstrValidCharSet;
78 Base::CFLString<wchar_t> m_cstrToolTipText;
79
80 CPropertyCallback* m_pRealtimeCallback;
81 bool m_bRealtimeCallbackAutoDestroy;
82
83 friend class CGUIPropertyGridPropertyText;
84 };
85 }
86}
87
프로퍼티 아이템 베이스 클래스
Definition GUIPropertyItemBase.h:38
Definition D2DObject.h:12