|
QCAD Application Framework
CAD Application Development and Automation.
|
Structure to transfer attributes about property types. 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 } |
Public Member Functions | |
| bool | affectsOtherProperties () const |
| bool | getAllowMixedValue () |
| QSet< QString > | getChoices () const |
| bool | getIgnoreCase () const |
| RPropertyTypeId | getPropertyTypeId () |
| bool | hasChoices () |
| bool | isAngleType () const |
| bool | isDimensionLabel () const |
| bool | isInteger () const |
| bool | isInvisible () const |
| bool | isLabel () const |
| bool | isList () const |
| bool | isMixed () const |
| bool | isReadOnly () const |
| bool | isRedundant () const |
| bool | isRichText () const |
| void | mixWith (const RPropertyAttributes &other) |
| 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 | setChoices (QSet< QString > choices) |
| void | setIgnoreCase (bool ignoreCase) |
| void | setInvisible (bool invisible) |
| void | setList (bool on) |
| void | setMixed (bool mixed) |
| void | setOption (RPropertyAttributes::Option option, bool on) |
| void | setPropertyTypeId (RPropertyTypeId pid) |
| void | setReadOnly (bool readOnly) |
| void | setRichText (bool on) |
Private Attributes | |
| QSet< QString > | choices |
| RPropertyAttributes::Options | options |
| RPropertyTypeId | propertyTypeId |
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 |
| void RPropertyAttributes::mixWith | ( | const RPropertyAttributes & | other | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void RPropertyAttributes::setOption | ( | RPropertyAttributes::Option | option, |
| bool | on | ||
| ) |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |