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

The UnBridgeTerminalsCommand class UndoCommand use to remove bridge between terminals of a terminals strip. More...

#include <bridgeterminalscommand.h>

Inherits QUndoCommand.

Collaboration diagram for UnBridgeTerminalsCommand:
Collaboration graph

Public Member Functions

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

Private Attributes

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

Detailed Description

The UnBridgeTerminalsCommand class UndoCommand use to remove bridge between terminals of a terminals strip.

Constructor & Destructor Documentation

◆ UnBridgeTerminalsCommand()

UnBridgeTerminalsCommand::UnBridgeTerminalsCommand ( TerminalStrip strip,
QVector< QSharedPointer< RealTerminal > >  real_terminal,
QUndoCommand *  parent = nullptr 
)
Here is the call graph for this function:

◆ ~UnBridgeTerminalsCommand()

UnBridgeTerminalsCommand::~UnBridgeTerminalsCommand ( )
inlineoverride

Member Function Documentation

◆ redo()

void UnBridgeTerminalsCommand::redo ( )
override

◆ undo()

void UnBridgeTerminalsCommand::undo ( )
override

Member Data Documentation

◆ m_bridge

QSharedPointer<TerminalStripBridge> UnBridgeTerminalsCommand::m_bridge
private

◆ m_strip

QPointer<TerminalStrip> UnBridgeTerminalsCommand::m_strip
private

◆ m_terminals

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

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