Classes | Public Slots | Signals | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
Aseba::TargetVariablesModel Class Reference

#include <TargetModels.h>

List of all members.

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< Variablevariables

Friends

class VariableListener

Detailed Description

Definition at line 62 of file TargetModels.h.


Member Typedef Documentation

Definition at line 126 of file TargetModels.h.


Constructor & Destructor Documentation

Definition at line 78 of file TargetModels.h.


Member Function Documentation

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.


Friends And Related Function Documentation

friend class VariableListener [friend]

Definition at line 110 of file TargetModels.h.


Member Data Documentation

Definition at line 127 of file TargetModels.h.

Definition at line 123 of file TargetModels.h.


The documentation for this class was generated from the following files:


aseba
Author(s): Stéphane Magnenat
autogenerated on Sun Oct 5 2014 23:46:40