rocs/RocsCore
Data.cpp
Go to the documentation of this file.
144 QString property = QString::fromLatin1(static_cast<QDynamicPropertyChangeEvent*>(event)->propertyName());
236 if (pointer->to()->identifier() == identifier() || pointer->direction() == PointerType::Bidirectional) {
243 if (pointer->from()->identifier() == identifier() || pointer->direction() == PointerType::Bidirectional) {
249 // both must be check to guarantee that pointer is register only once: otherwise after a change of direction
252 connect(pointer.get(), SIGNAL(directionChanged(PointerType::Direction)), this, SLOT(updatePointerList()), Qt::UniqueConnection);
Type type() const
void removeDynamicProperty(const QString &property)
Remove dynamic property with identifier property from data element.
Definition: Data.cpp:444
Definition: PointerType.h:48
void pointerListChanged()
QList< T > values() const
Data(DataStructurePtr dataStructure, int uniqueIdentifer, int dataType)
Protected constructor.
Definition: Data.cpp:132
void addPointer(PointerPtr pointer)
Register an created pointer to this data element.
Definition: Data.cpp:231
void renameDynamicProperty(const QString &oldName, const QString &newName)
Definition: Data.cpp:461
void propertyRemoved(const QString &name)
T value() const
void dataTypeChanged(int dataType)
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
qreal y() const
void colorChanged(const QColor &c)
qreal width() const
QScriptValue call(const QScriptValue &thisObject, const QScriptValueList &args)
void updatePointerList()
FIXME proof of concept implementation: since each Pointer emits a changed direction signal...
Definition: Data.cpp:277
void visibilityChanged(bool visible)
Definition: PointerType.h:47
void propertyAdded(const QString &name)
void append(const T &value)
QVariant property(const char *name) const
void installEventFilter(QObject *filterObj)
void updateDynamicProperty(const QString &property)
Definition: Data.cpp:451
void posChanged(const QPointF &p)
void widthChanged(double w)
virtual bool eventFilter(QObject *watched, QEvent *event)
void add_property(const QString &name, const QString &value)
Definition: Data.cpp:503
QScriptValue property(const QString &name, const ResolveFlags &mode) const
QVariant color() const
void propertyChanged(const QString &name)
void removed()
QScriptValue newQObject(QObject *object, ValueOwnership ownership, const QObjectWrapOptions &options)
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: Data.cpp:434
QString fromLatin1(const char *str, int size)
bool setProperty(const char *name, const QVariant &value)
qreal x() const
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)
static DataPtr create(DataStructurePtr dataStructure, int uniqueIdentifier, int dataType)
Create data element objects.
Definition: Data.cpp:92
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.