18#ifndef REMOVEDIAGRAMCOMMAND_H
19#define REMOVEDIAGRAMCOMMAND_H
21#include <QUndoCommand>
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:54
Definition qetproject.h:77
void undo() override
Definition removediagramcommand.cpp:60
RemoveDiagramCommand(QETProject *project, Diagram *diagram, QUndoCommand *parent=nullptr)
RemoveDiagramCommand::RemoveDiagramCommand.
Definition removediagramcommand.cpp:29
void redo() override
Definition removediagramcommand.cpp:51
QPointer< QETProject > m_project
Definition removediagramcommand.h:46
~RemoveDiagramCommand() override
RemoveDiagramCommand::~RemoveDiagramCommand Destroy the diagram only if it is currently detached from...
Definition removediagramcommand.cpp:44
int m_position
Definition removediagramcommand.h:48
bool m_owns_diagram
true while the diagram is detached from the project (i.e. the removal is in effect)
Definition removediagramcommand.h:50
Diagram * m_diagram
Definition removediagramcommand.h:47