#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 |
const QList< Variable > & | getVariables () |
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 < VariablesViewPlugin *, QStringList > | ViewPlugInToVariablesNameMap |
Private Member Functions | |
bool | subscribeToVariableOfInterest (VariablesViewPlugin *plugin, const QString &name) |
Subscribe to a variable of interest, return true if variable exists, false otherwise. | |
void | unsubscribeToVariableOfInterest (VariablesViewPlugin *plugin, const QString &name) |
Unsubscribe to a variable of interest. | |
void | unsubscribeViewPlugin (VariablesViewPlugin *plugin) |
Unsubscribe the plugin from any variables it is listening to. | |
Private Attributes | |
QList< Variable > | variables |
ViewPlugInToVariablesNameMap | viewPluginsMap |
Friends | |
class | LinearCameraViewPlugin |
class | VariablesViewPlugin |
Definition at line 44 of file TargetModels.h.
typedef QMap<VariablesViewPlugin*, QStringList> Aseba::TargetVariablesModel::ViewPlugInToVariablesNameMap [private] |
Definition at line 103 of file TargetModels.h.
Aseba::TargetVariablesModel::TargetVariablesModel | ( | ) | [inline] |
Definition at line 58 of file TargetModels.h.
const QList<Variable>& Aseba::TargetVariablesModel::getVariables | ( | ) | [inline] |
Definition at line 75 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 LinearCameraViewPlugin [friend] |
Definition at line 88 of file TargetModels.h.
friend class VariablesViewPlugin [friend] |
Definition at line 87 of file TargetModels.h.
QList<Variable> Aseba::TargetVariablesModel::variables [private] |
Definition at line 100 of file TargetModels.h.
Definition at line 104 of file TargetModels.h.