|
wiRedPanda
Logic Circuit Simulator
|
Undo command that toggles one output bit in a TruthTable element. More...
#include <Commands.h>
Public Member Functions | |
| void | redo () override |
| Toggles the bit at pos. | |
| ToggleTruthTableOutputCommand (GraphicElement *element, int pos, Scene *scene, QUndoCommand *parent=nullptr) | |
| Constructs the toggle command. | |
| void | undo () override |
| Toggles the bit again (involution). | |
Undo command that toggles one output bit in a TruthTable element.
Definition at line 416 of file Commands.h.
|
explicit |
Constructs the toggle command.
| element | TruthTable element to modify. |
| pos | Flat index of the bit to toggle in the proposition array. |
| scene | Target scene. |
| parent | Optional parent undo command. |
Definition at line 1053 of file Commands.cpp.
References ItemWithId::id().
|
override |
Toggles the bit at pos.
Definition at line 1062 of file Commands.cpp.
References CommandUtils::findElm(), PANDACEPTION, and qCDebug.
Referenced by undo().
|
override |
Toggles the bit again (involution).
Definition at line 1084 of file Commands.cpp.
References redo().