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

The UnGroupTerminalsCommand class This class is used to ungroup terminal (remove level of multi level terminal) More...

#include <groupterminalscommand.h>

Inherits QUndoCommand.

Collaboration diagram for UnGroupTerminalsCommand:
Collaboration graph

Public Member Functions

 UnGroupTerminalsCommand (TerminalStrip *strip, const QVector< QSharedPointer< RealTerminal > > &to_ungroup, QUndoCommand *parent=nullptr)
 
void undo () override
 
void redo () override
 

Private Member Functions

void setUp (const QVector< QSharedPointer< RealTerminal > > &to_ungroup)
 

Private Attributes

QPointer< TerminalStripm_terminal_strip
 
QHash< QSharedPointer< PhysicalTerminal >, QVector< QSharedPointer< RealTerminal > > > m_physical_real_H
 
QVector< QPair< QSharedPointer< RealTerminal >, int > > m_real_t_level
 

Detailed Description

The UnGroupTerminalsCommand class This class is used to ungroup terminal (remove level of multi level terminal)

Constructor & Destructor Documentation

◆ UnGroupTerminalsCommand()

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

Member Function Documentation

◆ redo()

void UnGroupTerminalsCommand::redo ( )
override

◆ setUp()

void UnGroupTerminalsCommand::setUp ( const QVector< QSharedPointer< RealTerminal > > &  to_ungroup)
private
Here is the caller graph for this function:

◆ undo()

void UnGroupTerminalsCommand::undo ( )
override

Member Data Documentation

◆ m_physical_real_H

QHash<QSharedPointer<PhysicalTerminal>, QVector<QSharedPointer<RealTerminal> > > UnGroupTerminalsCommand::m_physical_real_H
private

◆ m_real_t_level

QVector<QPair<QSharedPointer<RealTerminal>, int> > UnGroupTerminalsCommand::m_real_t_level
private

◆ m_terminal_strip

QPointer<TerminalStrip> UnGroupTerminalsCommand::m_terminal_strip
private

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