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

The BridgeTerminalsCommand class UndoCommand use to create bridge between terminals of a terminals strip. More...

#include <bridgeterminalscommand.h>

Inherits QUndoCommand.

Collaboration diagram for BridgeTerminalsCommand:
Collaboration graph

Public Member Functions

 BridgeTerminalsCommand (TerminalStrip *strip, QVector< QSharedPointer< RealTerminal > > real_terminal, QUndoCommand *parent=nullptr)
 
 ~BridgeTerminalsCommand () override
 
void undo () override
 
void redo () override
 

Private Attributes

QPointer< TerminalStripm_strip
 
QVector< QSharedPointer< RealTerminal > > m_real_terminal_vector
 
QSharedPointer< TerminalStripBridgem_bridge
 

Detailed Description

The BridgeTerminalsCommand class UndoCommand use to create bridge between terminals of a terminals strip.

Constructor & Destructor Documentation

◆ BridgeTerminalsCommand()

BridgeTerminalsCommand::BridgeTerminalsCommand ( TerminalStrip strip,
QVector< QSharedPointer< RealTerminal > >  real_terminal,
QUndoCommand *  parent = nullptr 
)

◆ ~BridgeTerminalsCommand()

BridgeTerminalsCommand::~BridgeTerminalsCommand ( )
inlineoverride

Member Function Documentation

◆ redo()

void BridgeTerminalsCommand::redo ( )
override

◆ undo()

void BridgeTerminalsCommand::undo ( )
override

Member Data Documentation

◆ m_bridge

QSharedPointer<TerminalStripBridge> BridgeTerminalsCommand::m_bridge
private

◆ m_real_terminal_vector

QVector<QSharedPointer<RealTerminal> > BridgeTerminalsCommand::m_real_terminal_vector
private

◆ m_strip

QPointer<TerminalStrip> BridgeTerminalsCommand::m_strip
private

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