#include <ThymioButtons.h>
Classes | |
class | ThymioAddButton |
class | ThymioRemoveButton |
Public Slots | |
void | stateChanged () |
Signals | |
void | buttonUpdated () |
Public Member Functions | |
bool | actionExists () |
void | addActionButton (ThymioButton *action) |
void | addEventButton (ThymioButton *event) |
QRectF | boundingRect () const |
bool | eventExists () |
ThymioButton * | getActionButton () |
ThymioButton * | getEventButton () |
ThymioIRButtonSet * | getIRButtonSet () |
int | getRow () |
virtual QPixmap | image () |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
void | setAdvanced (bool advanced) |
void | setColorScheme (QColor eventColor, QColor actionColor) |
void | setErrorStatus (bool flag) |
void | setRow (int row) |
void | setScale (qreal factor) |
ThymioButtonSet (int row, bool advanced, QGraphicsItem *parent=0) | |
Private Member Functions | |
virtual void | dragEnterEvent (QGraphicsSceneDragDropEvent *event) |
virtual void | dragLeaveEvent (QGraphicsSceneDragDropEvent *event) |
virtual void | dragMoveEvent (QGraphicsSceneDragDropEvent *event) |
virtual void | dropEvent (QGraphicsSceneDragDropEvent *event) |
virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
Private Attributes | |
ThymioButton * | actionButton |
QColor | actionButtonColor |
ThymioAddButton * | addButton |
bool | advancedMode |
ThymioIRButtonSet | buttonSetIR |
ThymioRemoveButton * | deleteButton |
bool | errorFlag |
ThymioButton * | eventButton |
QColor | eventButtonColor |
bool | highlightActionButton |
bool | highlightEventButton |
qreal | trans |
qreal | xpos |
Definition at line 157 of file ThymioButtons.h.
Aseba::ThymioButtonSet::ThymioButtonSet | ( | int | row, |
bool | advanced, | ||
QGraphicsItem * | parent = 0 |
||
) |
Definition at line 513 of file ThymioButtons.cpp.
bool Aseba::ThymioButtonSet::actionExists | ( | ) | [inline] |
Definition at line 191 of file ThymioButtons.h.
void Aseba::ThymioButtonSet::addActionButton | ( | ThymioButton * | action | ) |
Definition at line 651 of file ThymioButtons.cpp.
void Aseba::ThymioButtonSet::addEventButton | ( | ThymioButton * | event | ) |
Definition at line 629 of file ThymioButtons.cpp.
QRectF Aseba::ThymioButtonSet::boundingRect | ( | ) | const [inline] |
Definition at line 181 of file ThymioButtons.h.
void Aseba::ThymioButtonSet::buttonUpdated | ( | ) | [signal] |
void Aseba::ThymioButtonSet::dragEnterEvent | ( | QGraphicsSceneDragDropEvent * | event | ) | [private, virtual] |
Definition at line 741 of file ThymioButtons.cpp.
void Aseba::ThymioButtonSet::dragLeaveEvent | ( | QGraphicsSceneDragDropEvent * | event | ) | [private, virtual] |
Definition at line 787 of file ThymioButtons.cpp.
void Aseba::ThymioButtonSet::dragMoveEvent | ( | QGraphicsSceneDragDropEvent * | event | ) | [private, virtual] |
Definition at line 764 of file ThymioButtons.cpp.
void Aseba::ThymioButtonSet::dropEvent | ( | QGraphicsSceneDragDropEvent * | event | ) | [private, virtual] |
Definition at line 800 of file ThymioButtons.cpp.
bool Aseba::ThymioButtonSet::eventExists | ( | ) | [inline] |
Definition at line 190 of file ThymioButtons.h.
ThymioButton* Aseba::ThymioButtonSet::getActionButton | ( | ) | [inline] |
Definition at line 188 of file ThymioButtons.h.
ThymioButton* Aseba::ThymioButtonSet::getEventButton | ( | ) | [inline] |
Definition at line 187 of file ThymioButtons.h.
ThymioIRButtonSet* Aseba::ThymioButtonSet::getIRButtonSet | ( | ) | [inline] |
Definition at line 198 of file ThymioButtons.h.
int Aseba::ThymioButtonSet::getRow | ( | ) | [inline] |
Definition at line 186 of file ThymioButtons.h.
QPixmap Aseba::ThymioButtonSet::image | ( | ) | [virtual] |
Definition at line 719 of file ThymioButtons.cpp.
void Aseba::ThymioButtonSet::mouseMoveEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [private, virtual] |
Definition at line 896 of file ThymioButtons.cpp.
void Aseba::ThymioButtonSet::mousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [private, virtual] |
Definition at line 890 of file ThymioButtons.cpp.
void Aseba::ThymioButtonSet::mouseReleaseEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [private, virtual] |
Definition at line 919 of file ThymioButtons.cpp.
void Aseba::ThymioButtonSet::paint | ( | QPainter * | painter, |
const QStyleOptionGraphicsItem * | option, | ||
QWidget * | widget = 0 |
||
) | [virtual] |
Definition at line 545 of file ThymioButtons.cpp.
void Aseba::ThymioButtonSet::setAdvanced | ( | bool | advanced | ) |
Definition at line 686 of file ThymioButtons.cpp.
void Aseba::ThymioButtonSet::setColorScheme | ( | QColor | eventColor, |
QColor | actionColor | ||
) |
Definition at line 612 of file ThymioButtons.cpp.
void Aseba::ThymioButtonSet::setErrorStatus | ( | bool | flag | ) | [inline] |
Definition at line 200 of file ThymioButtons.h.
void Aseba::ThymioButtonSet::setRow | ( | int | row | ) |
Definition at line 621 of file ThymioButtons.cpp.
void Aseba::ThymioButtonSet::setScale | ( | qreal | factor | ) |
Definition at line 673 of file ThymioButtons.cpp.
void Aseba::ThymioButtonSet::stateChanged | ( | ) | [slot] |
Definition at line 714 of file ThymioButtons.cpp.
ThymioButton* Aseba::ThymioButtonSet::actionButton [private] |
Definition at line 210 of file ThymioButtons.h.
QColor Aseba::ThymioButtonSet::actionButtonColor [private] |
Definition at line 216 of file ThymioButtons.h.
ThymioAddButton* Aseba::ThymioButtonSet::addButton [private] |
Definition at line 212 of file ThymioButtons.h.
bool Aseba::ThymioButtonSet::advancedMode [private] |
Definition at line 221 of file ThymioButtons.h.
Definition at line 213 of file ThymioButtons.h.
Definition at line 211 of file ThymioButtons.h.
bool Aseba::ThymioButtonSet::errorFlag [private] |
Definition at line 220 of file ThymioButtons.h.
ThymioButton* Aseba::ThymioButtonSet::eventButton [private] |
Definition at line 209 of file ThymioButtons.h.
QColor Aseba::ThymioButtonSet::eventButtonColor [private] |
Definition at line 215 of file ThymioButtons.h.
bool Aseba::ThymioButtonSet::highlightActionButton [private] |
Definition at line 219 of file ThymioButtons.h.
bool Aseba::ThymioButtonSet::highlightEventButton [private] |
Definition at line 218 of file ThymioButtons.h.
qreal Aseba::ThymioButtonSet::trans [private] |
Definition at line 222 of file ThymioButtons.h.
qreal Aseba::ThymioButtonSet::xpos [private] |
Definition at line 223 of file ThymioButtons.h.