Public Types | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes
Aseba::ThymioScene Class Reference

#include <ThymioScene.h>

List of all members.

Public Types

typedef QList< ThymioButtonSet * >
::iterator 
ButtonSetItr

Signals

void stateChanged ()

Public Member Functions

QGraphicsItem * addAction (ThymioButton *item)
void addButtonSet (ThymioButton *event, ThymioButton *action)
QGraphicsItem * addEvent (ThymioButton *item)
ButtonSetItr buttonsBegin ()
ButtonSetItr buttonsEnd ()
void clear ()
bool getAdvanced () const
QList< QString > getCode () const
QString getErrorMessage () const
int getFocusItemId () const
int getNumberOfButtonSets () const
bool isEmpty () const
bool isModified () const
bool isSuccessful () const
void reset ()
void setAdvanced (bool advanced)
void setColorScheme (QColor eventColor, QColor actionColor)
void setModified (bool mod)
void setScale (qreal scale)
 ThymioScene (QObject *parent=0)
 ~ThymioScene ()

Protected Member Functions

virtual void dragMoveEvent (QGraphicsSceneDragDropEvent *event)
virtual void dropEvent (QGraphicsSceneDragDropEvent *event)
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)

Private Slots

void buttonUpdateDetected ()

Private Member Functions

ThymioButtonSetcreateNewButtonSet ()
void insertButton (int row)
void rearrangeButtons (int row=0)
void removeButton (int row)

Private Attributes

QColor actionButtonColor
bool advancedMode
qreal buttonSetHeight
QList< ThymioButtonSet * > buttonSets
QColor eventButtonColor
int lastFocus
bool newRow
bool prevNewActionButton
bool prevNewEventButton
double scaleFactor
bool sceneModified
ThymioCompiler thymioCompiler

Detailed Description

Definition at line 10 of file ThymioScene.h.


Member Typedef Documentation

Definition at line 39 of file ThymioScene.h.


Constructor & Destructor Documentation

Aseba::ThymioScene::ThymioScene ( QObject *  parent = 0)

Definition at line 14 of file ThymioScene.cpp.

Definition at line 40 of file ThymioScene.cpp.


Member Function Documentation

QGraphicsItem * Aseba::ThymioScene::addAction ( ThymioButton item)

Definition at line 45 of file ThymioScene.cpp.

Definition at line 142 of file ThymioScene.cpp.

QGraphicsItem * Aseba::ThymioScene::addEvent ( ThymioButton item)

Definition at line 93 of file ThymioScene.cpp.

Definition at line 41 of file ThymioScene.h.

Definition at line 42 of file ThymioScene.h.

void Aseba::ThymioScene::buttonUpdateDetected ( ) [private, slot]

Definition at line 363 of file ThymioScene.cpp.

Definition at line 195 of file ThymioScene.cpp.

Definition at line 157 of file ThymioScene.cpp.

void Aseba::ThymioScene::dragMoveEvent ( QGraphicsSceneDragDropEvent *  event) [protected, virtual]

Definition at line 379 of file ThymioScene.cpp.

void Aseba::ThymioScene::dropEvent ( QGraphicsSceneDragDropEvent *  event) [protected, virtual]

Definition at line 391 of file ThymioScene.cpp.

bool Aseba::ThymioScene::getAdvanced ( ) const [inline]

Definition at line 30 of file ThymioScene.h.

QList< QString > Aseba::ThymioScene::getCode ( ) const

Definition at line 337 of file ThymioScene.cpp.

Definition at line 314 of file ThymioScene.cpp.

Definition at line 348 of file ThymioScene.cpp.

Definition at line 31 of file ThymioScene.h.

void Aseba::ThymioScene::insertButton ( int  row) [private]

Definition at line 270 of file ThymioScene.cpp.

Definition at line 172 of file ThymioScene.cpp.

bool Aseba::ThymioScene::isModified ( ) const [inline]

Definition at line 26 of file ThymioScene.h.

bool Aseba::ThymioScene::isSuccessful ( ) const [inline]

Definition at line 36 of file ThymioScene.h.

void Aseba::ThymioScene::mousePressEvent ( QGraphicsSceneMouseEvent *  event) [protected, virtual]

Definition at line 504 of file ThymioScene.cpp.

void Aseba::ThymioScene::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event) [protected, virtual]

Definition at line 509 of file ThymioScene.cpp.

void Aseba::ThymioScene::rearrangeButtons ( int  row = 0) [private]

Definition at line 299 of file ThymioScene.cpp.

void Aseba::ThymioScene::removeButton ( int  row) [private]

Definition at line 239 of file ThymioScene.cpp.

Definition at line 185 of file ThymioScene.cpp.

void Aseba::ThymioScene::setAdvanced ( bool  advanced)

Definition at line 230 of file ThymioScene.cpp.

void Aseba::ThymioScene::setColorScheme ( QColor  eventColor,
QColor  actionColor 
)

Definition at line 217 of file ThymioScene.cpp.

void Aseba::ThymioScene::setModified ( bool  mod) [inline]

Definition at line 27 of file ThymioScene.h.

void Aseba::ThymioScene::setScale ( qreal  scale)

Definition at line 305 of file ThymioScene.cpp.


Member Data Documentation

Definition at line 72 of file ThymioScene.h.

Definition at line 78 of file ThymioScene.h.

Definition at line 77 of file ThymioScene.h.

Definition at line 68 of file ThymioScene.h.

Definition at line 71 of file ThymioScene.h.

Definition at line 66 of file ThymioScene.h.

Definition at line 76 of file ThymioScene.h.

Definition at line 65 of file ThymioScene.h.

Definition at line 64 of file ThymioScene.h.

Definition at line 75 of file ThymioScene.h.

Definition at line 74 of file ThymioScene.h.

Definition at line 69 of file ThymioScene.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