RAttributeDefinitionEntity
Class in Entity Module
Header: #include <src/entity/RAttributeDefinitionEntity.h>
Inherits: RTextBasedEntity
Description
Section titled “Description”Block attribute definition entity.
Scriptable: This class is available in script environments.
Shared Pointer Support: Objects can be used in QSharedPointer.
Public Functions
Section titled “Public Functions”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 Public Functions
Section titled “Static Public Functions”| static RS::EntityType | getRtti() |
| static QSet< RPropertyTypeId > | getStaticPropertyTypeIds() |
| static void | init() |
Static Public Attributes
Section titled “Static Public Attributes”Protected Functions
Section titled “Protected Functions”| virtual void | print(QDebug dbg) constStream operator for QDebug. |
Protected Attributes
Section titled “Protected Attributes”| RAttributeDefinitionData | data |
Member Documentation
Section titled “Member Documentation”RAttributeDefinitionEntity
Section titled “RAttributeDefinitionEntity”RAttributeDefinitionEntity::RAttributeDefinitionEntity(RDocument *document, const RAttributeDefinitionData &data)~RAttributeDefinitionEntity
Section titled “~RAttributeDefinitionEntity”virtual RAttributeDefinitionEntity::~RAttributeDefinitionEntity()virtual
virtual QSharedPointer< RObject > RAttributeDefinitionEntity::clone() constvirtual inline const
Reimplemented from clone.
cloneToAttributeDefinitionEntity
Section titled “cloneToAttributeDefinitionEntity”QSharedPointer< RAttributeDefinitionEntity > RAttributeDefinitionEntity::cloneToAttributeDefinitionEntity() constinline const
getData
Section titled “getData”virtual RAttributeDefinitionData & RAttributeDefinitionEntity::getData()virtual inline
Returns: Reference to the data object of the entity.
Reimplemented from getData.
getData
Section titled “getData”virtual const RAttributeDefinitionData & RAttributeDefinitionEntity::getData() constvirtual inline const
Returns: Const reference to the data object of the entity.
Reimplemented from getData.
getPrompt
Section titled “getPrompt”QString RAttributeDefinitionEntity::getPrompt() constinline const
getProperty
Section titled “getProperty”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.
getTag
Section titled “getTag”QString RAttributeDefinitionEntity::getTag() constinline const
isInvisible
Section titled “isInvisible”bool RAttributeDefinitionEntity::isInvisible() constinline const
setData
Section titled “setData”void RAttributeDefinitionEntity::setData(RAttributeDefinitionData &d)inline
setInvisible
Section titled “setInvisible”void RAttributeDefinitionEntity::setInvisible(bool i)inline
setPrompt
Section titled “setPrompt”void RAttributeDefinitionEntity::setPrompt(const QString &p)inline
setProperty
Section titled “setProperty”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.
setTag
Section titled “setTag”void RAttributeDefinitionEntity::setTag(const QString &t)inline
getRtti
Section titled “getRtti”static RS::EntityType RAttributeDefinitionEntity::getRtti()static inline
getStaticPropertyTypeIds
Section titled “getStaticPropertyTypeIds”static QSet< RPropertyTypeId > RAttributeDefinitionEntity::getStaticPropertyTypeIds()static inline
static void RAttributeDefinitionEntity::init()static
PropertyAngle
Section titled “PropertyAngle”static RPropertyTypeId RAttributeDefinitionEntity::PropertyAnglestatic
PropertyBlock
Section titled “PropertyBlock”static RPropertyTypeId RAttributeDefinitionEntity::PropertyBlockstatic
PropertyBold
Section titled “PropertyBold”static RPropertyTypeId RAttributeDefinitionEntity::PropertyBoldstatic
PropertyColor
Section titled “PropertyColor”static RPropertyTypeId RAttributeDefinitionEntity::PropertyColorstatic
PropertyCustom
Section titled “PropertyCustom”static RPropertyTypeId RAttributeDefinitionEntity::PropertyCustomstatic
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.
PropertyDisplayedColor
Section titled “PropertyDisplayedColor”static RPropertyTypeId RAttributeDefinitionEntity::PropertyDisplayedColorstatic
PropertyDrawOrder
Section titled “PropertyDrawOrder”static RPropertyTypeId RAttributeDefinitionEntity::PropertyDrawOrderstatic
PropertyFontName
Section titled “PropertyFontName”static RPropertyTypeId RAttributeDefinitionEntity::PropertyFontNamestatic
PropertyHAlign
Section titled “PropertyHAlign”static RPropertyTypeId RAttributeDefinitionEntity::PropertyHAlignstatic
PropertyHandle
Section titled “PropertyHandle”static RPropertyTypeId RAttributeDefinitionEntity::PropertyHandlestatic
PropertyHeight
Section titled “PropertyHeight”static RPropertyTypeId RAttributeDefinitionEntity::PropertyHeightstatic
PropertyInvisible
Section titled “PropertyInvisible”static RPropertyTypeId RAttributeDefinitionEntity::PropertyInvisiblestatic
PropertyItalic
Section titled “PropertyItalic”static RPropertyTypeId RAttributeDefinitionEntity::PropertyItalicstatic
PropertyLayer
Section titled “PropertyLayer”static RPropertyTypeId RAttributeDefinitionEntity::PropertyLayerstatic
PropertyLineSpacingFactor
Section titled “PropertyLineSpacingFactor”static RPropertyTypeId RAttributeDefinitionEntity::PropertyLineSpacingFactorstatic
PropertyLinetype
Section titled “PropertyLinetype”static RPropertyTypeId RAttributeDefinitionEntity::PropertyLinetypestatic
PropertyLinetypeScale
Section titled “PropertyLinetypeScale”static RPropertyTypeId RAttributeDefinitionEntity::PropertyLinetypeScalestatic
PropertyLineweight
Section titled “PropertyLineweight”static RPropertyTypeId RAttributeDefinitionEntity::PropertyLineweightstatic
PropertyPlainText
Section titled “PropertyPlainText”static RPropertyTypeId RAttributeDefinitionEntity::PropertyPlainTextstatic
PropertyPositionX
Section titled “PropertyPositionX”static RPropertyTypeId RAttributeDefinitionEntity::PropertyPositionXstatic
PropertyPositionY
Section titled “PropertyPositionY”static RPropertyTypeId RAttributeDefinitionEntity::PropertyPositionYstatic
PropertyPositionZ
Section titled “PropertyPositionZ”static RPropertyTypeId RAttributeDefinitionEntity::PropertyPositionZstatic
PropertyPrompt
Section titled “PropertyPrompt”static RPropertyTypeId RAttributeDefinitionEntity::PropertyPromptstatic
PropertyProtected
Section titled “PropertyProtected”static RPropertyTypeId RAttributeDefinitionEntity::PropertyProtectedstatic
PropertyTag
Section titled “PropertyTag”static RPropertyTypeId RAttributeDefinitionEntity::PropertyTagstatic
PropertyText
Section titled “PropertyText”static RPropertyTypeId RAttributeDefinitionEntity::PropertyTextstatic
PropertyType
Section titled “PropertyType”static RPropertyTypeId RAttributeDefinitionEntity::PropertyTypestatic
PropertyVAlign
Section titled “PropertyVAlign”static RPropertyTypeId RAttributeDefinitionEntity::PropertyVAlignstatic
PropertyWidth
Section titled “PropertyWidth”static RPropertyTypeId RAttributeDefinitionEntity::PropertyWidthstatic
PropertyWorkingSet
Section titled “PropertyWorkingSet”static RPropertyTypeId RAttributeDefinitionEntity::PropertyWorkingSetstatic
PropertyXScale
Section titled “PropertyXScale”static RPropertyTypeId RAttributeDefinitionEntity::PropertyXScalestatic
virtual void RAttributeDefinitionEntity::print(QDebug dbg) constvirtual const protected
Stream operator for QDebug.
Reimplemented from print.
RAttributeDefinitionData RAttributeDefinitionEntity::dataprotected