$search
#include <ThymioScene.h>
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 | |
| ThymioButtonSet * | createNewButtonSet () |
| 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 |
Definition at line 10 of file ThymioScene.h.
| typedef QList<ThymioButtonSet *>::iterator Aseba::ThymioScene::ButtonSetItr |
Definition at line 39 of file ThymioScene.h.
| Aseba::ThymioScene::ThymioScene | ( | QObject * | parent = 0 |
) |
Definition at line 14 of file ThymioScene.cpp.
| Aseba::ThymioScene::~ThymioScene | ( | ) |
Definition at line 40 of file ThymioScene.cpp.
| QGraphicsItem * Aseba::ThymioScene::addAction | ( | ThymioButton * | item | ) |
Definition at line 45 of file ThymioScene.cpp.
| void Aseba::ThymioScene::addButtonSet | ( | ThymioButton * | event, | |
| ThymioButton * | action | |||
| ) |
Definition at line 142 of file ThymioScene.cpp.
| QGraphicsItem * Aseba::ThymioScene::addEvent | ( | ThymioButton * | item | ) |
Definition at line 93 of file ThymioScene.cpp.
| ButtonSetItr Aseba::ThymioScene::buttonsBegin | ( | ) | [inline] |
Definition at line 41 of file ThymioScene.h.
| ButtonSetItr Aseba::ThymioScene::buttonsEnd | ( | ) | [inline] |
Definition at line 42 of file ThymioScene.h.
| void Aseba::ThymioScene::buttonUpdateDetected | ( | ) | [private, slot] |
Definition at line 363 of file ThymioScene.cpp.
| void Aseba::ThymioScene::clear | ( | ) |
Definition at line 195 of file ThymioScene.cpp.
| ThymioButtonSet * Aseba::ThymioScene::createNewButtonSet | ( | ) | [private] |
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.
| QString Aseba::ThymioScene::getErrorMessage | ( | ) | const |
Definition at line 314 of file ThymioScene.cpp.
| int Aseba::ThymioScene::getFocusItemId | ( | ) | const |
Definition at line 348 of file ThymioScene.cpp.
| int Aseba::ThymioScene::getNumberOfButtonSets | ( | ) | const [inline] |
Definition at line 31 of file ThymioScene.h.
| void Aseba::ThymioScene::insertButton | ( | int | row | ) | [private] |
Definition at line 270 of file ThymioScene.cpp.
| bool Aseba::ThymioScene::isEmpty | ( | ) | const |
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.
| void Aseba::ThymioScene::reset | ( | ) |
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.
| void Aseba::ThymioScene::stateChanged | ( | ) | [signal] |
QColor Aseba::ThymioScene::actionButtonColor [private] |
Definition at line 72 of file ThymioScene.h.
bool Aseba::ThymioScene::advancedMode [private] |
Definition at line 78 of file ThymioScene.h.
qreal Aseba::ThymioScene::buttonSetHeight [private] |
Definition at line 77 of file ThymioScene.h.
QList<ThymioButtonSet *> Aseba::ThymioScene::buttonSets [private] |
Definition at line 68 of file ThymioScene.h.
QColor Aseba::ThymioScene::eventButtonColor [private] |
Definition at line 71 of file ThymioScene.h.
int Aseba::ThymioScene::lastFocus [private] |
Definition at line 66 of file ThymioScene.h.
bool Aseba::ThymioScene::newRow [private] |
Definition at line 76 of file ThymioScene.h.
bool Aseba::ThymioScene::prevNewActionButton [private] |
Definition at line 65 of file ThymioScene.h.
bool Aseba::ThymioScene::prevNewEventButton [private] |
Definition at line 64 of file ThymioScene.h.
double Aseba::ThymioScene::scaleFactor [private] |
Definition at line 75 of file ThymioScene.h.
bool Aseba::ThymioScene::sceneModified [private] |
Definition at line 74 of file ThymioScene.h.
Definition at line 69 of file ThymioScene.h.