QElectroTech 0.100.0-dev
|
#include <addterminaltostripcommand.h>
Inherits QUndoCommand.
Public Member Functions | |
MoveTerminalCommand (QSharedPointer< PhysicalTerminal > terminal, TerminalStrip *old_strip, TerminalStrip *new_strip, QUndoCommand *parent=nullptr) | |
MoveTerminalCommand::MoveTerminalCommand. | |
MoveTerminalCommand (QVector< QSharedPointer< PhysicalTerminal > > terminals, TerminalStrip *old_strip, TerminalStrip *new_strip, QUndoCommand *parent=nullptr) | |
void | undo () override |
void | redo () override |
Private Attributes | |
const QVector< QSharedPointer< PhysicalTerminal > > | m_terminal |
QPointer< TerminalStrip > | m_old_strip |
QPointer< TerminalStrip > | m_new_strip |
MoveTerminalCommand::MoveTerminalCommand | ( | QSharedPointer< PhysicalTerminal > | terminal, |
TerminalStrip * | old_strip, | ||
TerminalStrip * | new_strip, | ||
QUndoCommand * | parent = nullptr |
||
) |
MoveTerminalCommand::MoveTerminalCommand.
terminal | |
old_strip | |
new_strip | |
parent |
MoveTerminalCommand::MoveTerminalCommand | ( | QVector< QSharedPointer< PhysicalTerminal > > | terminals, |
TerminalStrip * | old_strip, | ||
TerminalStrip * | new_strip, | ||
QUndoCommand * | parent = nullptr |
||
) |
|
override |
|
override |
|
private |
|
private |
|
private |