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

The GroupTerminalsCommand class Class used to group (make level terminal) together. More...

#include <groupterminalscommand.h>

Inherits QUndoCommand.

Collaboration diagram for GroupTerminalsCommand:
Collaboration graph

Public Member Functions

 GroupTerminalsCommand (TerminalStrip *strip, const QSharedPointer< PhysicalTerminal > &receiver_, const QVector< QSharedPointer< RealTerminal > > &to_group, QUndoCommand *parent=nullptr)
 GroupTerminalsCommand::GroupTerminalsCommand.
 
void undo () override
 
void redo () override
 

Private Attributes

QPointer< TerminalStripm_terminal_strip
 
QSharedPointer< PhysicalTerminalm_receiver
 
QVector< QSharedPointer< RealTerminal > > m_to_group
 

Detailed Description

The GroupTerminalsCommand class Class used to group (make level terminal) together.

Constructor & Destructor Documentation

◆ GroupTerminalsCommand()

GroupTerminalsCommand::GroupTerminalsCommand ( TerminalStrip strip,
const QSharedPointer< PhysicalTerminal > &  receiver_,
const QVector< QSharedPointer< RealTerminal > > &  to_group,
QUndoCommand *  parent = nullptr 
)

GroupTerminalsCommand::GroupTerminalsCommand.

Parameters
strip: The parent strip of terminal to group
receiver: The terminal where other terminals will be grouped
to_group: Terminals to group

Member Function Documentation

◆ redo()

void GroupTerminalsCommand::redo ( )
override

◆ undo()

void GroupTerminalsCommand::undo ( )
override

Member Data Documentation

◆ m_receiver

QSharedPointer<PhysicalTerminal> GroupTerminalsCommand::m_receiver
private

◆ m_terminal_strip

QPointer<TerminalStrip> GroupTerminalsCommand::m_terminal_strip
private

◆ m_to_group

QVector<QSharedPointer<RealTerminal> > GroupTerminalsCommand::m_to_group
private

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