QCAD
Open Source 2D CAD
|
Copyright (c) 2011-2018 by Andrew Mustun. More...
#include <RPropertyAttributes.h>
Public Types | |
enum | Option { NoOptions = 0x0, ReadOnly = 0x1, Invisible = 0x2, Angle = 0x4, AffectsOtherProperties = 0x8, IgnoreCase = 0x10, AllowMixedValue = 0x20, List = 0x40, Mixed = 0x80, RichText = 0x100, Style = 0x200, DimensionLabel = 0x400, Label = 0x800, Pattern = 0x1000, Custom = 0x2000, Integer = 0x4000, Redundant = 0x8000, VisibleToParent = 0x10000, KnownVariable = 0x20000, NumericallySorted = 0x40000, Percentage = 0x80000 | Integer, Sum = 0x100000 | ReadOnly | Redundant, Undeletable = 0x200000, OnRequest = 0x400000, Location = 0x800000, RefPoint = 0x1000000, Geometry = Location | RefPoint, Scale = 0x2000000, Area = 0x4000000, UnitLess = 0x8000000 } |
Public Member Functions | |
bool | affectsOtherProperties () const |
bool | getAllowMixedValue () |
QSet< QString > | getChoices () const |
bool | getIgnoreCase () const |
QString | getLabel () const |
bool | hasChoices () |
bool | isAngleType () const |
bool | isAreaType () const |
bool | isCustom () 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) |
Copyright (c) 2011-2018 by Andrew Mustun. More... | |
bool | operator!= (const RPropertyAttributes &other) const |
bool | operator== (const RPropertyAttributes &other) const |
RPropertyAttributes () | |
RPropertyAttributes (RPropertyAttributes::Options options) | |
void | setAffectsOtherProperties (bool affectsOtherProperties) |
void | setAllowMixedValue (bool allowMixedValue) |
void | setAngleType (bool angle) |
void | setAreaType (bool v) |
void | setChoices (QSet< QString > choices) |
void | setIgnoreCase (bool ignoreCase) |
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 | |
QSet< QString > | choices |
QString | label |
RPropertyAttributes::Options | options |
Copyright (c) 2011-2018 by Andrew Mustun.
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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void RPropertyAttributes::mixWith | ( | const RPropertyAttributes & | other | ) |
Copyright (c) 2011-2018 by Andrew Mustun.
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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void RPropertyAttributes::setOption | ( | RPropertyAttributes::Option | option, |
bool | on | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |