QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
RemoveTerminalFromStripCommand Class Reference

The RemoveTerminalFromStripCommand class Remove a terminal from a terminal strip. The removed terminal become free. More...

#include <addterminaltostripcommand.h>

Inherits QUndoCommand.

Collaboration diagram for RemoveTerminalFromStripCommand:
Collaboration graph

Public Member Functions

 RemoveTerminalFromStripCommand (QSharedPointer< PhysicalTerminal > terminal, TerminalStrip *strip, QUndoCommand *parent=nullptr)
 RemoveTerminalFromStripCommand::RemoveTerminalFromStripCommand.
 RemoveTerminalFromStripCommand (const QVector< QSharedPointer< PhysicalTerminal > > &phy_t_vector, TerminalStrip *strip, QUndoCommand *parent=nullptr)
 ~RemoveTerminalFromStripCommand () override
void undo () override
void redo () override

Private Member Functions

void setCommandTitle ()

Private Attributes

QVector< QVector< QSharedPointer< RealTerminal > > > m_terminals
QPointer< TerminalStripm_strip

Detailed Description

The RemoveTerminalFromStripCommand class Remove a terminal from a terminal strip. The removed terminal become free.

Constructor & Destructor Documentation

◆ RemoveTerminalFromStripCommand() [1/2]

RemoveTerminalFromStripCommand::RemoveTerminalFromStripCommand ( QSharedPointer< PhysicalTerminal > terminal,
TerminalStrip * strip,
QUndoCommand * parent = nullptr )

RemoveTerminalFromStripCommand::RemoveTerminalFromStripCommand.

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

◆ RemoveTerminalFromStripCommand() [2/2]

RemoveTerminalFromStripCommand::RemoveTerminalFromStripCommand ( const QVector< QSharedPointer< PhysicalTerminal > > & phy_t_vector,
TerminalStrip * strip,
QUndoCommand * parent = nullptr )
Here is the call graph for this function:

◆ ~RemoveTerminalFromStripCommand()

RemoveTerminalFromStripCommand::~RemoveTerminalFromStripCommand ( )
inlineoverride

Member Function Documentation

◆ redo()

void RemoveTerminalFromStripCommand::redo ( )
override

◆ setCommandTitle()

void RemoveTerminalFromStripCommand::setCommandTitle ( )
private
Here is the caller graph for this function:

◆ undo()

void RemoveTerminalFromStripCommand::undo ( )
override

Member Data Documentation

◆ m_strip

QPointer<TerminalStrip> RemoveTerminalFromStripCommand::m_strip
private

◆ m_terminals

QVector<QVector<QSharedPointer<RealTerminal> > > RemoveTerminalFromStripCommand::m_terminals
private

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