QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
MoveTerminalCommand Class Reference

#include <addterminaltostripcommand.h>

Inherits QUndoCommand.

Collaboration diagram for MoveTerminalCommand:
Collaboration graph

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< TerminalStripm_old_strip
 
QPointer< TerminalStripm_new_strip
 

Constructor & Destructor Documentation

◆ MoveTerminalCommand() [1/2]

MoveTerminalCommand::MoveTerminalCommand ( QSharedPointer< PhysicalTerminal terminal,
TerminalStrip old_strip,
TerminalStrip new_strip,
QUndoCommand *  parent = nullptr 
)

MoveTerminalCommand::MoveTerminalCommand.

Parameters
terminal
old_strip
new_strip
parent
Here is the call graph for this function:

◆ MoveTerminalCommand() [2/2]

MoveTerminalCommand::MoveTerminalCommand ( QVector< QSharedPointer< PhysicalTerminal > >  terminals,
TerminalStrip old_strip,
TerminalStrip new_strip,
QUndoCommand *  parent = nullptr 
)
Here is the call graph for this function:

Member Function Documentation

◆ redo()

void MoveTerminalCommand::redo ( )
override

◆ undo()

void MoveTerminalCommand::undo ( )
override

Member Data Documentation

◆ m_new_strip

QPointer<TerminalStrip> MoveTerminalCommand::m_new_strip
private

◆ m_old_strip

QPointer<TerminalStrip> MoveTerminalCommand::m_old_strip
private

◆ m_terminal

const QVector<QSharedPointer<PhysicalTerminal> > MoveTerminalCommand::m_terminal
private

The documentation for this class was generated from the following files: