Aseba::TargetVariablesModel Class Reference
[Integrated Development Editor]

#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
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< Variablevariables
ViewPlugInToVariablesNameMap viewPluginsMap

Friends

class LinearCameraViewPlugin
class VariablesViewPlugin

Detailed Description

Definition at line 44 of file TargetModels.h.


Member Typedef Documentation

Definition at line 103 of file TargetModels.h.


Constructor & Destructor Documentation

Aseba::TargetVariablesModel::TargetVariablesModel (  )  [inline]

Definition at line 58 of file TargetModels.h.


Member Function Documentation

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.


Friends And Related Function Documentation

friend class LinearCameraViewPlugin [friend]

Definition at line 88 of file TargetModels.h.

friend class VariablesViewPlugin [friend]

Definition at line 87 of file TargetModels.h.


Member Data Documentation

Definition at line 100 of file TargetModels.h.

Definition at line 104 of file TargetModels.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


asebaros
Author(s): $author
autogenerated on Mon Sep 5 08:42:15 2011