43 Q_PROPERTY(qreal x READ x WRITE setX)
44 Q_PROPERTY(qreal y READ y WRITE setY)
45 Q_PROPERTY(qreal width READ width WRITE setWidth)
46 Q_PROPERTY(
int id READ identifier)
47 Q_PROPERTY(QVariant color READ color WRITE setColor)
63 virtual
DataPtr getData() const;
104 QScriptValue scriptValue() const;
109 virtual
void setEngine(QScriptEngine *_engine);
114 QScriptEngine * engine() const;
134 QVariant color() const;
139 QString icon() const;
141 QList<QString> properties() const;
146 bool isVisible() const;
151 int identifier() const;
156 int dataType() const;
193 void setWidth(
double w);
194 void setPos(qreal x, qreal y);
195 void setColor(const QVariant& s);
196 void setVisible(
bool visible);
197 void setDataType(
int dataType);
206 void addDynamicProperty(const QString &property, const QVariant& value);
213 void removeDynamicProperty(const QString &property);
215 void updateDynamicProperty(const QString &property);
217 void renameDynamicProperty(const QString &oldName, const QString &newName);
226 void updatePointerList();
229 QScriptValue set_type(
int type);
230 void add_property(const QString &name, const QString& value);
231 void remove_property(const QString &name);
232 QScriptValue adj_data();
233 QScriptValue adj_pointers();
234 QScriptValue adj_pointers(
int pointerType);
235 QScriptValue input_pointers();
236 QScriptValue input_pointers(
int pointerType);
237 QScriptValue output_pointers();
238 QScriptValue output_pointers(
int pointerType);
239 QScriptValue connected_pointers(Data *n);
243 void posChanged(const QPointF &p);
244 void widthChanged(
double w);
245 void colorChanged(const QColor &c);
246 void visibilityChanged(
bool visible);
247 void useColorChanged(
bool b);
248 void dataTypeChanged(
int dataType);
249 void pointerListChanged();
250 void propertyAdded(const QString &name);
251 void propertyRemoved(const QString &name);
252 void propertyChanged(const QString &name);
265 DataPtr pi(
new T(parent, uniqueIdentifier, dataType));
271 bool eventFilter(
QObject *obj, QEvent *event);
278 const QScopedPointer<DataPrivate> d;
boost::shared_ptr< DataStructure > DataStructurePtr
QList< boost::shared_ptr< Data > > DataList
boost::shared_ptr< Pointer > PointerPtr
boost::shared_ptr< Data > DataPtr
Pointers are connections between two nodes in the data structure.
QList< boost::shared_ptr< Pointer > > PointerList