OpenLexocad  28.0
PropertyMultiLineText.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Core/Property.h>
4 
5 namespace Core
6 {
7 class LX_CORE_EXPORT PropertyMultiLineText : public Core::Property
8 {
10 
11 public:
12  void setValue(const Base::String& text);
13  bool setValueFromVariant(const Core::Variant& value) override;
14  void copyValue(Core::Property* p) override;
15 
16  const Base::String& getValue() const;
17  Core::Variant getVariant() const override;
18 
19  void save(Base::AbstractWriter& writer, Base::PersistenceVersion& save_version) override;
21  bool isEqual(const Property*) const override;
22  Core::Property* copy() const override;
23  void paste(const Core::Property& from) override;
24 
25 protected:
27 };
28 
30 
31 DECLARE_PROPERTY_FACTORY(PropertyMultiLineText_Factory, Core::PropertyMultiLineText);
32 
33 } // namespace Core
Property.h
Core::PropertyMultiLineText::copy
Core::Property * copy() const override
Returns a new copy of the property (mainly for Undo/Redo and transactions). The copy has no container...
Core::PropertyMultiLineText::isEqual
bool isEqual(const Property *) const override
compare properties
Core::PropertyMultiLineText::paste
void paste(const Core::Property &from) override
Paste the value from the property (mainly for Undo/Redo and transactions)
Core::PropertyMultiLineText
Definition: PropertyMultiLineText.h:8
Core::PropertyMultiLineText::getValue
const Base::String & getValue() const
Core::PropertyMultiLineText::getVariant
Core::Variant getVariant() const override
Core::PropertyMultiLineText::copyValue
void copyValue(Core::Property *p) override
Base::PersistenceVersion
Definition: Persistence.h:13
Core::PropertyMultiLineText::save
void save(Base::AbstractWriter &writer, Base::PersistenceVersion &save_version) override
This method is used to save properties or very small amounts of data to an XML document.
Core
Definition: Base.h:5
Core::Variant
Definition: Variant.h:78
Base::AbstractWriter
Definition: Writer.h:13
Base::AbstractXMLReader
Definition: AbstractXMLReader.h:7
Core::PropertyMultiLineText::_text
Base::String _text
Definition: PropertyMultiLineText.h:26
Core::PropertyMultiLineText::setValue
void setValue(const Base::String &text)
Core::PropertyMultiLineText::setValueFromVariant
bool setValueFromVariant(const Core::Variant &value) override
Core::version
LX_CORE_EXPORT Version & version
Core::Property
Definition: Property.h:72
Base::String
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:18
Core::DECLARE_OPTIONAL_PROPERTY_HEADER
DECLARE_OPTIONAL_PROPERTY_HEADER(PropertyColorOpt, Core::PropertyColor)
TYPESYSTEM_HEADER
#define TYPESYSTEM_HEADER()
define for subclassing Base::BaseClass
Definition: Base.h:12
Core::DECLARE_PROPERTY_FACTORY
DECLARE_PROPERTY_FACTORY(PropertyAxis1_Factory, Core::PropertyAxis1)
Core::PropertyMultiLineText::restore
void restore(Base::AbstractXMLReader &reader, Base::PersistenceVersion &version) override
This method is used to restore properties from an XML document.