42 QString metaFile =
"");
46 virtual void clear(
bool draw);
58 bool nodeValid(
const QString& name)
const;
68 bool connected(QString source, QString target)
const;
72 QStringList
nodes()
const;
75 const QModelIndex& index,
const QVariant& value,
76 int role = Qt::EditRole);
79 const QModelIndex& parent = QModelIndex());
92 QString
addNode(QString className,
bool draw =
true);
98 void renameNode(QString nodename,
bool draw =
true);
104 bool deleteNode(QString nodename,
bool draw =
true);
111 void connectSlot(QString source, QString target,
bool draw =
true);
119 void disconnectSlot(QString source, QString target = QString(),
bool draw =
true);
140 virtual bool _load();
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Set item content.
This model wraps a ParameterFile instance and provides access to the data interpreted as a (directed)...
QStringList nodes() const
Get nodes in current graph.
Declaration of class ParameterFileModel.
void disconnectAllSlots(QString node, bool draw=true)
disconnect all slots of given node
GraphModel(QString fileName="", QObject *parent=0, QString metaFile="")
Constructor initializing the model with the given file.
void graphChanged()
Initiate graph rebuild and Display refresh.
void reDraw()
emit graph changed signal to update displays
void selectNext(bool back=false)
select next item
This model serves to provide a model frontend to access a ParameterFile instance. ...
QString addNode(QString className, bool draw=true)
add new node of given kind
void disconnectSlot(QString source, QString target=QString(), bool draw=true)
disconnect slots
bool connected(QString source, QString target) const
Check if given connection is valid and established.
bool deleteNode(QString nodename, bool draw=true)
delete node
QString fileName() const
Get property _fileName.
void connectSlot(QString source, QString target, bool draw=true)
connect slots
void renameNode(QString nodename, bool draw=true)
rename node
bool nodeValid(const QString &name) const
Checks if the given node is a valid object in the ParameterFile.
virtual void clear()
Clear ParameterFile content with redraw.
virtual bool _load()
Load data without showing OpenFile Dialog.
virtual void loadMetaFile(QString fileName)
load metaFile
virtual bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
Remove data from the model.