Skip to content

RAttributeDefinitionEntity

Class in Entity Module
Header: #include <src/entity/RAttributeDefinitionEntity.h>
Inherits: RTextBasedEntity

Block attribute definition entity.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

RAttributeDefinitionEntity(RDocument *document, const RAttributeDefinitionData &data)
virtual ~RAttributeDefinitionEntity()
virtual QSharedPointer< RObject > clone() const
QSharedPointer< RAttributeDefinitionEntity > cloneToAttributeDefinitionEntity() const
virtual RAttributeDefinitionData & getData()
virtual const RAttributeDefinitionData & getData() const
QString getPrompt() const
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
QString getTag() const
bool isInvisible() const
void setData(RAttributeDefinitionData &d)
void setInvisible(bool i)
void setPrompt(const QString &p)
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
void setTag(const QString &t)
static RS::EntityType getRtti()
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
static void init()
static RPropertyTypeId PropertyAngle
static RPropertyTypeId PropertyBlock
static RPropertyTypeId PropertyBold
static RPropertyTypeId PropertyColor
static RPropertyTypeId PropertyCustom
static RPropertyTypeId PropertyDisplayedColor
static RPropertyTypeId PropertyDrawOrder
static RPropertyTypeId PropertyFontName
static RPropertyTypeId PropertyHAlign
static RPropertyTypeId PropertyHandle
static RPropertyTypeId PropertyHeight
static RPropertyTypeId PropertyInvisible
static RPropertyTypeId PropertyItalic
static RPropertyTypeId PropertyLayer
static RPropertyTypeId PropertyLineSpacingFactor
static RPropertyTypeId PropertyLinetype
static RPropertyTypeId PropertyLinetypeScale
static RPropertyTypeId PropertyLineweight
static RPropertyTypeId PropertyPlainText
static RPropertyTypeId PropertyPositionX
static RPropertyTypeId PropertyPositionY
static RPropertyTypeId PropertyPositionZ
static RPropertyTypeId PropertyPrompt
static RPropertyTypeId PropertyProtected
static RPropertyTypeId PropertyTag
static RPropertyTypeId PropertyText
static RPropertyTypeId PropertyType
static RPropertyTypeId PropertyVAlign
static RPropertyTypeId PropertyWidth
static RPropertyTypeId PropertyWorkingSet
static RPropertyTypeId PropertyXScale
virtual void print(QDebug dbg) const
Stream operator for QDebug.
RAttributeDefinitionData data

RAttributeDefinitionEntity::RAttributeDefinitionEntity(RDocument *document, const RAttributeDefinitionData &data)

virtual RAttributeDefinitionEntity::~RAttributeDefinitionEntity()

virtual

virtual QSharedPointer< RObject > RAttributeDefinitionEntity::clone() const

virtual inline const

Reimplemented from clone.

QSharedPointer< RAttributeDefinitionEntity > RAttributeDefinitionEntity::cloneToAttributeDefinitionEntity() const

inline const

virtual RAttributeDefinitionData & RAttributeDefinitionEntity::getData()

virtual inline

Returns: Reference to the data object of the entity.

Reimplemented from getData.

virtual const RAttributeDefinitionData & RAttributeDefinitionEntity::getData() const

virtual inline const

Returns: Const reference to the data object of the entity.

Reimplemented from getData.

QString RAttributeDefinitionEntity::getPrompt() const

inline const

virtual QPair< QVariant, RPropertyAttributes > RAttributeDefinitionEntity::getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)

virtual

Returns: The value and attributes of the given property or an invalid property if this property owner has no property with the given ID.

Reimplemented from getProperty.

QString RAttributeDefinitionEntity::getTag() const

inline const

bool RAttributeDefinitionEntity::isInvisible() const

inline const

void RAttributeDefinitionEntity::setData(RAttributeDefinitionData &d)

inline

void RAttributeDefinitionEntity::setInvisible(bool i)

inline

void RAttributeDefinitionEntity::setPrompt(const QString &p)

inline

virtual bool RAttributeDefinitionEntity::setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)

virtual

Sets the given property to the given value.

If this property owner does not know a property with that ID, it is up to the property owner what happens. The property might be added into a list of dynamic properties or dropped.

Returns: True if the property owner was modified in any way, false otherwise.

Reimplemented from setProperty.

void RAttributeDefinitionEntity::setTag(const QString &t)

inline

static RS::EntityType RAttributeDefinitionEntity::getRtti()

static inline

static QSet< RPropertyTypeId > RAttributeDefinitionEntity::getStaticPropertyTypeIds()

static inline

static void RAttributeDefinitionEntity::init()

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyAngle

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyBlock

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyBold

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyColor

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyCustom

static

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.

static RPropertyTypeId RAttributeDefinitionEntity::PropertyDisplayedColor

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyDrawOrder

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyFontName

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyHAlign

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyHandle

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyHeight

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyInvisible

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyItalic

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyLayer

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyLineSpacingFactor

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyLinetype

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyLinetypeScale

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyLineweight

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyPlainText

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyPositionX

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyPositionY

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyPositionZ

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyPrompt

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyProtected

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyTag

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyText

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyType

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyVAlign

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyWidth

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyWorkingSet

static

static RPropertyTypeId RAttributeDefinitionEntity::PropertyXScale

static

virtual void RAttributeDefinitionEntity::print(QDebug dbg) const

virtual const protected

Stream operator for QDebug.

Reimplemented from print.

RAttributeDefinitionData RAttributeDefinitionEntity::data

protected