RPropertyAttributes
Class in Core Module
Header: #include <src/core/RPropertyAttributes.h>
Description
Section titled “Description”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. Structure to transfer attributes about property types. For example a property ‘Side’ might have the two choices ‘Left’ and ‘Right’. These choices can be stored in a RPropertyAttributes object. Other attributes define if a property is visible, if it is an angle (such properties require conversion between radiants and degrees), etc.
Scriptable: This class is available in script environments.
Copyable: Objects are cleaned up automatically by the garbage collector of the script engine.
Public Types
Section titled “Public Types”| enum | Option { NoOptions, ReadOnly, Invisible, Angle, AffectsOtherProperties, IgnoreCase, AllowMixedValue, List, Mixed, RichText, Style, DimensionLabel, Label, Pattern, Custom, Integer, Redundant, VisibleToParent, KnownVariable, NumericallySorted, Percentage, Sum, Undeletable, OnRequest, Location, RefPoint, Geometry, Scale, Area, UnitLess, DimStyleOverride, CustomApp001, StoreIndex } |
Public Functions
Section titled “Public Functions”RPropertyAttributes() |
|
RPropertyAttributes(RPropertyAttributes::Options options) |
|
| bool | affectsOtherProperties() const |
| bool | getAllowMixedValue() |
| QStringList | getChoices() const |
| bool | getIgnoreCase() const |
| QString | getLabel() const |
| bool | getStoreIndex() const |
| bool | hasChoices() |
| bool | isAngleType() const |
| bool | isAreaType() const |
| bool | isCustom() const |
| bool | isCustomApp001() const |
| bool | isDimensionLabel() const |
| bool | isInteger() const |
| bool | isInvisible() const |
| bool | isLabel() const |
| bool | isList() const |
| bool | isMixed() const |
| bool | isNumericallySorted() const |
| bool | isOnRequest() const |
| bool | isPercentage() const |
| bool | isReadOnly() const |
| bool | isRedundant() const |
| bool | isRichText() const |
| bool | isScaleType() const |
| bool | isStyle() const |
| bool | isSum() const |
| bool | isUndeletable() const |
| bool | isUnitLess() const |
| bool | isVisibleToParent() const |
| void | mixWith(const RPropertyAttributes &other) |
| bool | operator!=(const RPropertyAttributes &other) const |
| bool | operator==(const RPropertyAttributes &other) const |
| void | setAffectsOtherProperties(bool affectsOtherProperties) |
| void | setAllowMixedValue(bool allowMixedValue) |
| void | setAngleType(bool angle) |
| void | setAreaType(bool v) |
| void | setChoices(const QStringList &choices, bool storeIndex=false) |
| void | setCustomApp001(bool v) |
| void | setIgnoreCase(bool ignoreCase) |
| void | setInteger(bool i) |
| void | setInvisible(bool invisible) |
| void | setLabel(const QString &l) |
| void | setList(bool on) |
| void | setMixed(bool mixed) |
| void | setNumericallySorted(bool on) |
| void | setOnRequest(bool onRequest) |
| void | setOption(RPropertyAttributes::Option option, bool on) |
| void | setReadOnly(bool readOnly) |
| void | setRedundant(bool on) |
| void | setRichText(bool on) |
| void | setScaleType(bool v) |
| void | setStyle(bool on) |
| void | setSum(bool sum) |
| void | setUndeletable(bool undeletable) |
| void | setUnitLess(bool v) |
Private Attributes
Section titled “Private Attributes”| QStringList | choices |
| QString | label |
| RPropertyAttributes::Options | options |
Member Documentation
Section titled “Member Documentation”Option
Section titled “Option”enum OptionRPropertyAttributes
Section titled “RPropertyAttributes”RPropertyAttributes::RPropertyAttributes()inline
RPropertyAttributes
Section titled “RPropertyAttributes”RPropertyAttributes::RPropertyAttributes(RPropertyAttributes::Options options)inline
affectsOtherProperties
Section titled “affectsOtherProperties”bool RPropertyAttributes::affectsOtherProperties() constinline const
getAllowMixedValue
Section titled “getAllowMixedValue”bool RPropertyAttributes::getAllowMixedValue()inline
getChoices
Section titled “getChoices”QStringList RPropertyAttributes::getChoices() constinline const
getIgnoreCase
Section titled “getIgnoreCase”bool RPropertyAttributes::getIgnoreCase() constinline const
getLabel
Section titled “getLabel”QString RPropertyAttributes::getLabel() constinline const
getStoreIndex
Section titled “getStoreIndex”bool RPropertyAttributes::getStoreIndex() constinline const
hasChoices
Section titled “hasChoices”bool RPropertyAttributes::hasChoices()inline
isAngleType
Section titled “isAngleType”bool RPropertyAttributes::isAngleType() constinline const
isAreaType
Section titled “isAreaType”bool RPropertyAttributes::isAreaType() constinline const
isCustom
Section titled “isCustom”bool RPropertyAttributes::isCustom() constinline const
isCustomApp001
Section titled “isCustomApp001”bool RPropertyAttributes::isCustomApp001() constinline const
isDimensionLabel
Section titled “isDimensionLabel”bool RPropertyAttributes::isDimensionLabel() constinline const
isInteger
Section titled “isInteger”bool RPropertyAttributes::isInteger() constinline const
isInvisible
Section titled “isInvisible”bool RPropertyAttributes::isInvisible() constinline const
isLabel
Section titled “isLabel”bool RPropertyAttributes::isLabel() constinline const
isList
Section titled “isList”bool RPropertyAttributes::isList() constinline const
isMixed
Section titled “isMixed”bool RPropertyAttributes::isMixed() constinline const
isNumericallySorted
Section titled “isNumericallySorted”bool RPropertyAttributes::isNumericallySorted() constinline const
isOnRequest
Section titled “isOnRequest”bool RPropertyAttributes::isOnRequest() constinline const
isPercentage
Section titled “isPercentage”bool RPropertyAttributes::isPercentage() constinline const
isReadOnly
Section titled “isReadOnly”bool RPropertyAttributes::isReadOnly() constinline const
isRedundant
Section titled “isRedundant”bool RPropertyAttributes::isRedundant() constinline const
isRichText
Section titled “isRichText”bool RPropertyAttributes::isRichText() constinline const
isScaleType
Section titled “isScaleType”bool RPropertyAttributes::isScaleType() constinline const
isStyle
Section titled “isStyle”bool RPropertyAttributes::isStyle() constinline const
bool RPropertyAttributes::isSum() constinline const
isUndeletable
Section titled “isUndeletable”bool RPropertyAttributes::isUndeletable() constinline const
isUnitLess
Section titled “isUnitLess”bool RPropertyAttributes::isUnitLess() constinline const
isVisibleToParent
Section titled “isVisibleToParent”bool RPropertyAttributes::isVisibleToParent() constinline const
mixWith
Section titled “mixWith”void RPropertyAttributes::mixWith(const RPropertyAttributes &other)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.
operator!=
Section titled “operator!=”bool RPropertyAttributes::operator!=(const RPropertyAttributes &other) constinline const
operator==
Section titled “operator==”bool RPropertyAttributes::operator==(const RPropertyAttributes &other) constinline const
setAffectsOtherProperties
Section titled “setAffectsOtherProperties”void RPropertyAttributes::setAffectsOtherProperties(bool affectsOtherProperties)inline
setAllowMixedValue
Section titled “setAllowMixedValue”void RPropertyAttributes::setAllowMixedValue(bool allowMixedValue)inline
setAngleType
Section titled “setAngleType”void RPropertyAttributes::setAngleType(bool angle)inline
setAreaType
Section titled “setAreaType”void RPropertyAttributes::setAreaType(bool v)inline
setChoices
Section titled “setChoices”void RPropertyAttributes::setChoices(const QStringList &choices, bool storeIndex=false)inline
setCustomApp001
Section titled “setCustomApp001”void RPropertyAttributes::setCustomApp001(bool v)inline
setIgnoreCase
Section titled “setIgnoreCase”void RPropertyAttributes::setIgnoreCase(bool ignoreCase)inline
setInteger
Section titled “setInteger”void RPropertyAttributes::setInteger(bool i)inline
setInvisible
Section titled “setInvisible”void RPropertyAttributes::setInvisible(bool invisible)inline
setLabel
Section titled “setLabel”void RPropertyAttributes::setLabel(const QString &l)inline
setList
Section titled “setList”void RPropertyAttributes::setList(bool on)inline
setMixed
Section titled “setMixed”void RPropertyAttributes::setMixed(bool mixed)inline
setNumericallySorted
Section titled “setNumericallySorted”void RPropertyAttributes::setNumericallySorted(bool on)inline
setOnRequest
Section titled “setOnRequest”void RPropertyAttributes::setOnRequest(bool onRequest)inline
setOption
Section titled “setOption”void RPropertyAttributes::setOption(RPropertyAttributes::Option option, bool on)setReadOnly
Section titled “setReadOnly”void RPropertyAttributes::setReadOnly(bool readOnly)inline
setRedundant
Section titled “setRedundant”void RPropertyAttributes::setRedundant(bool on)inline
setRichText
Section titled “setRichText”void RPropertyAttributes::setRichText(bool on)inline
setScaleType
Section titled “setScaleType”void RPropertyAttributes::setScaleType(bool v)inline
setStyle
Section titled “setStyle”void RPropertyAttributes::setStyle(bool on)inline
setSum
Section titled “setSum”void RPropertyAttributes::setSum(bool sum)inline
setUndeletable
Section titled “setUndeletable”void RPropertyAttributes::setUndeletable(bool undeletable)inline
setUnitLess
Section titled “setUnitLess”void RPropertyAttributes::setUnitLess(bool v)inline
choices
Section titled “choices”QStringList RPropertyAttributes::choicesprivate
QString RPropertyAttributes::labelprivate
options
Section titled “options”RPropertyAttributes::Options RPropertyAttributes::optionsprivate