rocs/RocsCore
Pointer.cpp
Go to the documentation of this file.
53 PointerPtr Pointer::create(DataStructurePtr dataStructure, DataPtr from, DataPtr to, int pointerType)
71 connect(d->pointerType.get(), SIGNAL(directionChanged(PointerType::Direction)), this, SIGNAL(changed()));
123 if (QDynamicPropertyChangeEvent* const dynEvent = dynamic_cast<QDynamicPropertyChangeEvent*>(event)) {
void renameDynamicProperty(const QString &oldName, const QString &newName)
Definition: Pointer.cpp:286
void pointerTypeChanged(int pointerType)
Emitted when the pointer type of this pointer changes.
DataPtr to() const
Type type() const
Q_INVOKABLE void add_property(const QString &name, const QString &value)
Add new property to pointer.
Definition: Pointer.cpp:317
Q_INVOKABLE QScriptValue set_type(int type)
Set pointer type from script engine.
Definition: Pointer.cpp:296
int relativeIndex() const
The relative index is the index that this pointer has relative to the pair of data elements to which ...
Definition: Pointer.cpp:131
Definition: PointerType.h:47
void directionChanged(PointerType::Direction direction)
Emitted when direction was changed.
QColor color() const
void removeDynamicProperty(const QString &property)
Remove dynamic property with identifier property from data element.
Definition: Pointer.cpp:270
QVariant property(const char *name) const
void installEventFilter(QObject *filterObj)
void propertyRemoved(const QString &name)
qreal width() const
virtual bool eventFilter(QObject *watched, QEvent *event)
void propertyChanged(const QString &name)
static PointerPtr create(DataStructurePtr dataStructure, DataPtr from, DataPtr to, int pointerType)
Create pointer objects.
Definition: Pointer.cpp:53
QScriptValue type() const
Q_INVOKABLE void remove_property(const QString &name)
Remove a property named name from this pointer.
Definition: Pointer.cpp:312
QByteArray toLatin1() const
void addDynamicProperty(const QString &property, const QVariant &value)
Add new dynamic property with identifier property to this data element and sets it to value...
Definition: Pointer.cpp:260
Pointer(DataStructurePtr parent, DataPtr from, DataPtr to, int pointerType)
Protected constructor.
Definition: Pointer.cpp:99
DataPtr from() const
void updateDynamicProperty(const QString &property)
Definition: Pointer.cpp:276
bool setProperty(const char *name, const QVariant &value)
void propertyAdded(const QString &name)
static bool isValidIdentifier(const QString &identifier)
Evaluates given string and returns true if identifier is valid, otherwise returns false...
Definition: Document.cpp:232
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
QByteArray toAscii() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.