#include <ThymioVisualProgramming.h>
Public Member Functions | |
virtual void | closeAsSoonAsPossible () |
virtual QWidget * | createMenuEntry () |
virtual void | loadFromDom (const QDomDocument &content, bool fromFile) |
virtual QDomDocument | saveToDom () const |
ThymioVisualProgramming (NodeTab *nodeTab) | |
~ThymioVisualProgramming () | |
Protected Member Functions | |
void | closeEvent (QCloseEvent *event) |
QPixmap | drawColorScheme (QColor color1, QColor color2) |
virtual void | resizeEvent (QResizeEvent *event) |
void | setColors (QComboBox *button=0) |
bool | warningDialog () |
Protected Attributes | |
QList< ThymioPushButton * > | actionButtons |
QList< QColor > | actionColors |
QLabel * | actionsLabel |
QVBoxLayout * | actionsLayout |
QToolButton * | advancedButton |
QSvgRenderer * | clapSvg |
QComboBox * | colorComboButton |
QLabel * | compilationResult |
QLabel * | compilationResultImage |
QHBoxLayout * | compilationResultLayout |
QList< ThymioPushButton * > | eventButtons |
QList< QColor > | eventColors |
QLabel * | eventsLabel |
QVBoxLayout * | eventsLayout |
QHBoxLayout * | horizontalLayout |
QVBoxLayout * | mainLayout |
QToolButton * | newButton |
unsigned | nodeId |
QToolButton * | openButton |
QToolButton * | quitButton |
QToolButton * | runButton |
QToolButton * | saveAsButton |
QToolButton * | saveButton |
ThymioScene * | scene |
QVBoxLayout * | sceneLayout |
QToolButton * | stopButton |
QSvgRenderer * | tapSvg |
QString | thymioFilename |
QToolBar * | toolBar |
QGraphicsView * | view |
int | windowHeight |
int | windowWidth |
Private Slots | |
void | addButtonsEvent () |
void | addCircleAction () |
void | addClapEvent () |
void | addColorAction () |
void | addMemoryAction () |
void | addMoveAction () |
void | addProxEvent () |
void | addProxGroundEvent () |
void | addSoundAction () |
void | addTapEvent () |
void | advancedMode () |
void | closeFile () |
void | newFile () |
void | openFile () |
void | recompileButtonSet () |
void | run () |
bool | save () |
bool | saveAs () |
void | setColorScheme (int index) |
void | showVPL () |
void | stop () |
Definition at line 34 of file ThymioVisualProgramming.h.
Definition at line 24 of file ThymioVisualProgramming.cpp.
Definition at line 215 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::addButtonsEvent | ( | ) | [private, slot] |
Definition at line 559 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::addCircleAction | ( | ) | [private, slot] |
Definition at line 610 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::addClapEvent | ( | ) | [private, slot] |
Definition at line 588 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::addColorAction | ( | ) | [private, slot] |
Definition at line 603 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::addMemoryAction | ( | ) | [private, slot] |
Definition at line 624 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::addMoveAction | ( | ) | [private, slot] |
Definition at line 596 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::addProxEvent | ( | ) | [private, slot] |
Definition at line 566 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::addProxGroundEvent | ( | ) | [private, slot] |
Definition at line 573 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::addSoundAction | ( | ) | [private, slot] |
Definition at line 617 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::addTapEvent | ( | ) | [private, slot] |
Definition at line 580 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::advancedMode | ( | ) | [private, slot] |
Definition at line 340 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::closeAsSoonAsPossible | ( | ) | [virtual] |
Implements Aseba::NodeToolInterface.
Definition at line 259 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::closeEvent | ( | QCloseEvent * | event | ) | [protected] |
Definition at line 347 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::closeFile | ( | ) | [private, slot] |
Definition at line 301 of file ThymioVisualProgramming.cpp.
QWidget * Aseba::ThymioVisualProgramming::createMenuEntry | ( | ) | [virtual] |
Implements Aseba::NodeToolInterface.
Definition at line 252 of file ThymioVisualProgramming.cpp.
QPixmap Aseba::ThymioVisualProgramming::drawColorScheme | ( | QColor | color1, |
QColor | color2 | ||
) | [protected] |
Definition at line 237 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::loadFromDom | ( | const QDomDocument & | content, |
bool | fromFile | ||
) | [virtual] |
Reimplemented from Aseba::NodeToolInterface.
Definition at line 445 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::newFile | ( | ) | [private, slot] |
Reimplemented from Aseba::InvasivePlugin.
Definition at line 274 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::openFile | ( | void | ) | [private, slot] |
Reimplemented from Aseba::InvasivePlugin.
Definition at line 285 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::recompileButtonSet | ( | ) | [private, slot] |
Definition at line 542 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
Definition at line 631 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::run | ( | ) | [private, slot] |
Definition at line 325 of file ThymioVisualProgramming.cpp.
bool Aseba::ThymioVisualProgramming::save | ( | ) | [private, slot] |
Definition at line 291 of file ThymioVisualProgramming.cpp.
bool Aseba::ThymioVisualProgramming::saveAs | ( | ) | [private, slot] |
Definition at line 296 of file ThymioVisualProgramming.cpp.
QDomDocument Aseba::ThymioVisualProgramming::saveToDom | ( | ) | const [virtual] |
Reimplemented from Aseba::NodeToolInterface.
Definition at line 391 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::setColors | ( | QComboBox * | button = 0 | ) | [protected] |
Definition at line 221 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::setColorScheme | ( | int | index | ) | [private, slot] |
Definition at line 312 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::showVPL | ( | ) | [private, slot] |
Definition at line 268 of file ThymioVisualProgramming.cpp.
void Aseba::ThymioVisualProgramming::stop | ( | ) | [private, slot] |
Reimplemented from Aseba::InvasivePlugin.
Definition at line 331 of file ThymioVisualProgramming.cpp.
bool Aseba::ThymioVisualProgramming::warningDialog | ( | ) | [protected] |
Definition at line 361 of file ThymioVisualProgramming.cpp.
QList<ThymioPushButton *> Aseba::ThymioVisualProgramming::actionButtons [protected] |
Definition at line 81 of file ThymioVisualProgramming.h.
QList<QColor> Aseba::ThymioVisualProgramming::actionColors [protected] |
Definition at line 86 of file ThymioVisualProgramming.h.
QLabel* Aseba::ThymioVisualProgramming::actionsLabel [protected] |
Definition at line 83 of file ThymioVisualProgramming.h.
QVBoxLayout* Aseba::ThymioVisualProgramming::actionsLayout [protected] |
Definition at line 107 of file ThymioVisualProgramming.h.
QToolButton* Aseba::ThymioVisualProgramming::advancedButton [protected] |
Definition at line 98 of file ThymioVisualProgramming.h.
QSvgRenderer* Aseba::ThymioVisualProgramming::clapSvg [protected] |
Definition at line 111 of file ThymioVisualProgramming.h.
QComboBox* Aseba::ThymioVisualProgramming::colorComboButton [protected] |
Definition at line 99 of file ThymioVisualProgramming.h.
QLabel* Aseba::ThymioVisualProgramming::compilationResult [protected] |
Definition at line 88 of file ThymioVisualProgramming.h.
QLabel* Aseba::ThymioVisualProgramming::compilationResultImage [protected] |
Definition at line 89 of file ThymioVisualProgramming.h.
QHBoxLayout* Aseba::ThymioVisualProgramming::compilationResultLayout [protected] |
Definition at line 106 of file ThymioVisualProgramming.h.
QList<ThymioPushButton *> Aseba::ThymioVisualProgramming::eventButtons [protected] |
Definition at line 80 of file ThymioVisualProgramming.h.
QList<QColor> Aseba::ThymioVisualProgramming::eventColors [protected] |
Definition at line 85 of file ThymioVisualProgramming.h.
QLabel* Aseba::ThymioVisualProgramming::eventsLabel [protected] |
Definition at line 82 of file ThymioVisualProgramming.h.
QVBoxLayout* Aseba::ThymioVisualProgramming::eventsLayout [protected] |
Definition at line 104 of file ThymioVisualProgramming.h.
QHBoxLayout* Aseba::ThymioVisualProgramming::horizontalLayout [protected] |
Definition at line 103 of file ThymioVisualProgramming.h.
QVBoxLayout* Aseba::ThymioVisualProgramming::mainLayout [protected] |
Definition at line 102 of file ThymioVisualProgramming.h.
QToolButton* Aseba::ThymioVisualProgramming::newButton [protected] |
Definition at line 92 of file ThymioVisualProgramming.h.
unsigned Aseba::ThymioVisualProgramming::nodeId [protected] |
Definition at line 119 of file ThymioVisualProgramming.h.
QToolButton* Aseba::ThymioVisualProgramming::openButton [protected] |
Definition at line 93 of file ThymioVisualProgramming.h.
QToolButton* Aseba::ThymioVisualProgramming::quitButton [protected] |
Definition at line 100 of file ThymioVisualProgramming.h.
QToolButton* Aseba::ThymioVisualProgramming::runButton [protected] |
Definition at line 96 of file ThymioVisualProgramming.h.
QToolButton* Aseba::ThymioVisualProgramming::saveAsButton [protected] |
Definition at line 95 of file ThymioVisualProgramming.h.
QToolButton* Aseba::ThymioVisualProgramming::saveButton [protected] |
Definition at line 94 of file ThymioVisualProgramming.h.
ThymioScene* Aseba::ThymioVisualProgramming::scene [protected] |
Definition at line 77 of file ThymioVisualProgramming.h.
QVBoxLayout* Aseba::ThymioVisualProgramming::sceneLayout [protected] |
Definition at line 105 of file ThymioVisualProgramming.h.
QToolButton* Aseba::ThymioVisualProgramming::stopButton [protected] |
Definition at line 97 of file ThymioVisualProgramming.h.
QSvgRenderer* Aseba::ThymioVisualProgramming::tapSvg [protected] |
Definition at line 110 of file ThymioVisualProgramming.h.
QString Aseba::ThymioVisualProgramming::thymioFilename [protected] |
Definition at line 113 of file ThymioVisualProgramming.h.
QToolBar* Aseba::ThymioVisualProgramming::toolBar [protected] |
Definition at line 91 of file ThymioVisualProgramming.h.
QGraphicsView* Aseba::ThymioVisualProgramming::view [protected] |
Definition at line 76 of file ThymioVisualProgramming.h.
int Aseba::ThymioVisualProgramming::windowHeight [protected] |
Definition at line 116 of file ThymioVisualProgramming.h.
int Aseba::ThymioVisualProgramming::windowWidth [protected] |
Definition at line 115 of file ThymioVisualProgramming.h.