FLImaging 6.10.1.1
GUIPropertyItemMultiLineText.h
1
7#pragma once
8#include "GUIPropertyItemBase.h"
9
11namespace FLImaging
12{
14 namespace GUI
15 {
32 {
33 public:
42
51
61 virtual Base::CFLString<wchar_t> GetValue() const override;
62
72 virtual void SetHeight(int32_t i32Height = 100);
73
83 virtual int32_t GetHeight() const;
84
85 virtual CMFCPropertyGridProperty* CreateGridProperty() override;
86
101
113 static Base::CFLString<wchar_t> ConvertSingleToMultiLine(const wchar_t* strSingleLine);
114
126 virtual bool Load(const Base::CFLString<wchar_t>& strFilePath) override;
127
139 virtual bool Load(const Base::CFLArray<Base::CFLString<wchar_t>>& flaData) override;
140
152 virtual bool Save(const Base::CFLString<wchar_t>& strFilePath) const override;
153
165 virtual bool Save(Base::CFLArray<Base::CFLString<wchar_t>>& flaData) const override;
166
178 virtual bool SetHScroll(bool bHorzScroll);
179
189 virtual bool IsHScroll() const;
190
200 virtual void Enable(bool bEnable) override;
201
202 virtual bool SetValue(Base::CFLString<wchar_t> strValue, bool bInvokeCallback = true) override;
203 virtual bool SetBufferValue(Base::CFLString<wchar_t> strValue) override;
204 virtual bool SetOrigValue(const Base::CFLString<wchar_t>& strValue) override;
205 virtual void SetDefaultValue(const Base::CFLString<wchar_t>& strDefaultValue) override;
206
207 protected:
208 int32_t m_i32Height; // \~English Editor height (px). \~Korean 편집 높이(픽셀).
209 bool m_bHScroll; // \~English Horizontal scroll flag. \~Korean 가로 스크롤 사용 여부.
210 };
211 }
212}
Template type array class.
Definition FLArray.h:53
Template type string class.
Definition FLString.h:34
CGUIPropertyItemBase()
Default constructor.
virtual Base::CFLString< wchar_t > GetValue() const override
Get the current text value (multi-line).
virtual bool Load(const Base::CFLString< wchar_t > &strFilePath) override
Load the text from a file.
virtual bool SetBufferValue(Base::CFLString< wchar_t > strValue) override
Sets the buffer value of this.
static Base::CFLString< wchar_t > ConvertSingleToMultiLine(const wchar_t *strSingleLine)
Convert a single-line, loadable/savable representation back to a normal multi-line string.
virtual void SetHeight(int32_t i32Height=100)
Set the editor height in pixels.
virtual bool Load(const Base::CFLArray< Base::CFLString< wchar_t > > &flaData) override
Load the text from an array buffer (e.g., serialized lines).
virtual void SetDefaultValue(const Base::CFLString< wchar_t > &strDefaultValue) override
Sets the default value of this.
virtual bool SetValue(Base::CFLString< wchar_t > strValue, bool bInvokeCallback=true) override
Sets the value for this.
virtual bool IsHScroll() const
Query whether horizontal scroll is enabled.
virtual bool Save(Base::CFLArray< Base::CFLString< wchar_t > > &flaData) const override
Save the text into an array buffer (e.g., serialized lines).
virtual bool SetOrigValue(const Base::CFLString< wchar_t > &strValue) override
Sets the original value of this.
virtual CMFCPropertyGridProperty * CreateGridProperty() override
Creates and returns a new grid property associated with this.
static Base::CFLString< wchar_t > ConvertMultiToSingleLine(const Base::CFLString< wchar_t > &strMultiLine)
Convert a normal multi-line string to a single-line, loadable/savable representation....
virtual bool SetHScroll(bool bHorzScroll)
Enable or disable horizontal scroll in the editor.
virtual bool Save(const Base::CFLString< wchar_t > &strFilePath) const override
Save the text to a file.
virtual int32_t GetHeight() const
Get the editor height in pixels.
virtual void Enable(bool bEnable) override
Enable or disable this property item (editing).
CGUIPropertyItemMultiLineText()
Default constructor.
Definition D2DObject.h:12