#include <commands.h>
Public Member Functions | |
NextLabelEditCommand (LabelX *label, const QString &labelText, float labelPos, bool isLeft, QUndoCommand *parent=0) | |
void | redo () |
void | undo () |
Protected Attributes | |
bool | isLeft_backup |
bool | isLeft_new |
LabelX * | label |
float | labelPos_backup |
float | labelPos_new |
QString | labelText_backup |
QString | labelText_new |
Definition at line 316 of file commands.h.
NextLabelEditCommand::NextLabelEditCommand | ( | LabelX * | label, | |
const QString & | labelText, | |||
float | labelPos, | |||
bool | isLeft, | |||
QUndoCommand * | parent = 0 | |||
) |
Definition at line 760 of file commands.cpp.
References LabelX::left(), LabelX::posParam(), and LabelX::text().
void NextLabelEditCommand::redo | ( | ) |
Definition at line 777 of file commands.cpp.
References Transition::adjust(), LabelX::getTransition(), isLeft_new, labelPos_new, labelText_new, LabelX::setLeftOriented(), LabelX::setPosParam(), and LabelX::setText().
void NextLabelEditCommand::undo | ( | ) |
Definition at line 768 of file commands.cpp.
References Transition::adjust(), LabelX::getTransition(), isLeft_backup, labelPos_backup, labelText_backup, LabelX::setLeftOriented(), LabelX::setPosParam(), and LabelX::setText().
bool NextLabelEditCommand::isLeft_backup [protected] |
Definition at line 330 of file commands.h.
Referenced by undo().
bool NextLabelEditCommand::isLeft_new [protected] |
Definition at line 331 of file commands.h.
Referenced by redo().
LabelX* NextLabelEditCommand::label [protected] |
Definition at line 325 of file commands.h.
float NextLabelEditCommand::labelPos_backup [protected] |
Definition at line 327 of file commands.h.
Referenced by undo().
float NextLabelEditCommand::labelPos_new [protected] |
Definition at line 329 of file commands.h.
Referenced by redo().
QString NextLabelEditCommand::labelText_backup [protected] |
Definition at line 326 of file commands.h.
Referenced by undo().
QString NextLabelEditCommand::labelText_new [protected] |
Definition at line 328 of file commands.h.
Referenced by redo().