#include <TargetModels.h>
Classes | |
struct | Variable |
Public Slots | |
void | setVariablesData (unsigned start, const VariablesDataVector &data) |
bool | setVariableValues (const QString &name, const VariablesDataVector &values) |
void | updateVariablesStructure (const Compiler::VariablesMap *variablesMap) |
Signals | |
void | variableValuesChanged (unsigned index, const VariablesDataVector &values) |
Emitted on setData, when the user change the data, not when nodes have sent updated variables. | |
Public Member Functions | |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
Qt::ItemFlags | flags (const QModelIndex &index) const |
unsigned | getVariablePos (const QString &name) const |
const QList< Variable > & | getVariables () const |
unsigned | getVariableSize (const QString &name) const |
VariablesDataVector | getVariableValue (const QString &name) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
QMimeData * | mimeData (const QModelIndexList &indexes) const |
QStringList | mimeTypes () const |
QModelIndex | parent (const QModelIndex &index) const |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
bool | setData (const QModelIndex &index, const QVariant &value, int role) |
TargetVariablesModel () | |
virtual | ~TargetVariablesModel () |
Private Types | |
typedef QMap< VariableListener *, QStringList > | VariableListenersNameMap |
Private Member Functions | |
bool | subscribeToVariableOfInterest (VariableListener *plugin, const QString &name) |
Subscribe to a variable of interest, return true if variable exists, false otherwise. | |
void | unsubscribeToVariableOfInterest (VariableListener *plugin, const QString &name) |
Unsubscribe to a variable of interest. | |
void | unsubscribeToVariablesOfInterest (VariableListener *plugin) |
Unsubscribe to all variables of interest for a given plugin. | |
void | unsubscribeViewPlugin (VariableListener *plugin) |
Unsubscribe the plugin from any variables it is listening to. | |
Private Attributes | |
VariableListenersNameMap | variableListenersMap |
QList< Variable > | variables |
Friends | |
class | VariableListener |
Definition at line 62 of file TargetModels.h.
typedef QMap<VariableListener*, QStringList> Aseba::TargetVariablesModel::VariableListenersNameMap [private] |
Definition at line 126 of file TargetModels.h.
Aseba::TargetVariablesModel::TargetVariablesModel | ( | ) | [inline] |
Definition at line 78 of file TargetModels.h.
const QList<Variable>& Aseba::TargetVariablesModel::getVariables | ( | ) | const [inline] |
Definition at line 95 of file TargetModels.h.
void Aseba::TargetVariablesModel::variableValuesChanged | ( | unsigned | index, |
const VariablesDataVector & | values | ||
) | [signal] |
Emitted on setData, when the user change the data, not when nodes have sent updated variables.
friend class VariableListener [friend] |
Definition at line 110 of file TargetModels.h.
Definition at line 127 of file TargetModels.h.
QList<Variable> Aseba::TargetVariablesModel::variables [private] |
Definition at line 123 of file TargetModels.h.