|
QCAD Application Framework
CAD Application Development and Automation.
|
Represents a linetype in a drawing. More...
#include <RLinetype.h>
Public Member Functions | |
| virtual RLinetype * | clone () const |
| QString | getName () const |
| virtual QPair< QVariant, RPropertyAttributes > | getProperty (RPropertyTypeId propertyTypeId, bool humanReadable=false, bool noAttributes=false) |
| virtual bool | isSelectedForPropertyEditing () |
| bool | isValid () const |
| bool | operator!= (const RLinetype &linetype) const |
| bool | operator< (const RLinetype &linetype) const |
| bool | operator== (const RLinetype &linetype) const |
| RLinetype (RDocument *document=NULL) | |
| RLinetype (RDocument *document, const QString &name) | |
| void | setName (const QString &n) |
| virtual bool | setProperty (RPropertyTypeId propertyTypeId, const QVariant &value) |
| Sets the given property to the given value. | |
| virtual | ~RLinetype () |
Public Member Functions inherited from RObject | |
| virtual int | getComplexity () const |
| QMap< QString, QVariant > | getCustomProperties () const |
| QVariant | getCustomProperty (const QString &key, const QVariant &defaultValue=RDEFAULT_QVARIANT) |
| RDocument * | getDocument () |
| const RDocument * | getDocument () const |
| RObject::Handle | getHandle () const |
| RObject::Id | getId () const |
| virtual QSet< RPropertyTypeId > | getPropertyTypeIds () const |
| virtual bool | hasPropertyType (RPropertyTypeId propertyTypeId) |
| bool | isUndone () const |
| void | removeCustomProperty (const QString &key) |
| Removes the custom property with the given name. | |
| RObject (RDocument *document=NULL, Id id=INVALID_ID) | |
| void | setCustomProperty (const QString &key, const QVariant &value) |
| Sets a custom property with the given name. | |
| void | setDocument (RDocument *document) |
| virtual void | setUndone (bool on) |
| virtual | ~RObject () |
Static Public Member Functions | |
| static QIcon | getIcon (const RLinetype &linetype) |
| static QList< QPair< QString, RLinetype > > | getList (bool onlyFixed=false) |
| static QString | getTitle (const RLinetype &linetype) |
| static void | init () |
Static Public Member Functions inherited from RObject | |
| template<class T > | |
| static bool | setMember (T &variable, const QVariant &value, bool condition=true) |
Static Public Attributes | |
| static RPropertyTypeId | PropertyName |
Static Public Attributes inherited from RObject | |
| static const Handle | INVALID_HANDLE = -1 |
| static const Id | INVALID_ID = -1 |
| static RPropertyTypeId | PropertyCustom |
| static RPropertyTypeId | PropertyHandle |
Private Member Functions | |
| Q_DECLARE_TR_FUNCTIONS (RLinetype) | |
Static Private Member Functions | |
| static void | init (const QString &cn, const RLinetype &c) |
Private Attributes | |
| QString | name |
Static Private Attributes | |
| static QMap< RLinetype, QIcon > | iconMap |
| static QList< QPair< QString, RLinetype > > | list |
Additional Inherited Members | |
Public Types inherited from RObject | |
| typedef int | Handle |
| typedef int | Id |
| enum | XYZ { X, Y, Z } |
Protected Member Functions inherited from RObject | |
| virtual void | print (QDebug dbg) const |
| Stream operator for QDebug. | |
| void | setHandle (RObject::Handle h) |
| void | setId (RObject::Id id) |
| bool | setMember (QList< double > &variable, const QVariant &value, bool condition) |
Static Protected Member Functions inherited from RObject | |
| static bool | setMember (QString &variable, const QVariant &value, bool condition=true) |
| Sets the given property. | |
| static bool | setMember (double &variable, const QVariant &value, bool condition=true) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| static bool | setMember (int &variable, const QVariant &value, bool condition=true) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| static bool | setMember (bool &variable, const QVariant &value, bool condition=true) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| static bool | setMemberVector (QList< RVector > &variable, const QVariant &value, RObject::XYZ xyz) |
| static bool | setMemberX (QList< RVector > &variable, const QVariant &value, bool condition=true) |
| static bool | setMemberY (QList< RVector > &variable, const QVariant &value, bool condition=true) |
| static bool | setMemberZ (QList< RVector > &variable, const QVariant &value, bool condition=true) |
Represents a linetype in a drawing.
A linetype is an object (RObject). A drawings contains and owns a set of linetypes.
| RLinetype::RLinetype | ( | RDocument * | document = NULL | ) |
| RLinetype::RLinetype | ( | RDocument * | document, |
| const QString & | name | ||
| ) |
|
virtual |
|
static |
|
static |
|
inline |
|
virtual |
Reimplemented from RObject.
|
static |
|
static |
Reimplemented from RObject.
|
staticprivate |
|
virtual |
Implements RObject.
| bool RLinetype::isValid | ( | ) | const |
| bool RLinetype::operator!= | ( | const RLinetype & | linetype | ) | const |
| bool RLinetype::operator< | ( | const RLinetype & | linetype | ) | const |
| bool RLinetype::operator== | ( | const RLinetype & | linetype | ) | const |
|
private |
|
inline |
|
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.
Reimplemented from RObject.
|
staticprivate |
|
staticprivate |
|
private |
|
static |