18#ifndef GROUPTERMINALSCOMMAND_H
19#define GROUPTERMINALSCOMMAND_H
21#include <QUndoCommand>
24#include "../terminalstrip.h"
34 const QSharedPointer<PhysicalTerminal> &receiver_,
35 const QVector<QSharedPointer<RealTerminal>> &to_group,
36 QUndoCommand *parent =
nullptr);
55 const QVector<QSharedPointer<RealTerminal>> &to_ungroup,
56 QUndoCommand *parent =
nullptr);
62 void setUp(
const QVector<QSharedPointer<RealTerminal>> &to_ungroup);
66 QHash <QSharedPointer<PhysicalTerminal>, QVector<QSharedPointer<RealTerminal>>>
m_physical_real_H;
The GroupTerminalsCommand class Class used to group (make level terminal) together.
Definition groupterminalscommand.h:31
void undo() override
Definition groupterminalscommand.cpp:40
QVector< QSharedPointer< RealTerminal > > m_to_group
Definition groupterminalscommand.h:44
QPointer< TerminalStrip > m_terminal_strip
Definition groupterminalscommand.h:42
void redo() override
Definition groupterminalscommand.cpp:46
QSharedPointer< PhysicalTerminal > m_receiver
Definition groupterminalscommand.h:43
The TerminalStrip class This class hold all the datas and configurations of a terminal strip (but the...
Definition terminalstrip.h:45
The UnGroupTerminalsCommand class This class is used to ungroup terminal (remove level of multi level...
Definition groupterminalscommand.h:52
void redo() override
Definition groupterminalscommand.cpp:77
QVector< QPair< QSharedPointer< RealTerminal >, int > > m_real_t_level
Definition groupterminalscommand.h:67
QHash< QSharedPointer< PhysicalTerminal >, QVector< QSharedPointer< RealTerminal > > > m_physical_real_H
Definition groupterminalscommand.h:66
void setUp(const QVector< QSharedPointer< RealTerminal > > &to_ungroup)
Definition groupterminalscommand.cpp:87
QPointer< TerminalStrip > m_terminal_strip
Definition groupterminalscommand.h:65
void undo() override
Definition groupterminalscommand.cpp:62