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

The SortTerminalStripCommand class An undo command use to sort the terminals element who compose a terminal strip. More...

#include <sortterminalstripcommand.h>

Inherits QUndoCommand.

Collaboration diagram for SortTerminalStripCommand:
Collaboration graph

Public Member Functions

 SortTerminalStripCommand (TerminalStrip *strip, QUndoCommand *parent=nullptr)
void undo () override
void redo () override

Private Member Functions

void sort ()

Private Attributes

QPointer< TerminalStripm_strip
QVector< QSharedPointer< PhysicalTerminal > > m_old_order
QVector< QSharedPointer< PhysicalTerminal > > m_new_order

Detailed Description

The SortTerminalStripCommand class An undo command use to sort the terminals element who compose a terminal strip.

Constructor & Destructor Documentation

◆ SortTerminalStripCommand()

SortTerminalStripCommand::SortTerminalStripCommand ( TerminalStrip * strip,
QUndoCommand * parent = nullptr )
Here is the call graph for this function:

Member Function Documentation

◆ redo()

void SortTerminalStripCommand::redo ( )
override

◆ sort()

void SortTerminalStripCommand::sort ( )
private
Here is the caller graph for this function:

◆ undo()

void SortTerminalStripCommand::undo ( )
override

Member Data Documentation

◆ m_new_order

QVector<QSharedPointer<PhysicalTerminal> > SortTerminalStripCommand::m_new_order
private

◆ m_old_order

QVector<QSharedPointer<PhysicalTerminal> > SortTerminalStripCommand::m_old_order
private

◆ m_strip

QPointer<TerminalStrip> SortTerminalStripCommand::m_strip
private

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