18#ifndef ADDDIAGRAMCOMMAND_H
19#define ADDDIAGRAMCOMMAND_H
21#include <QUndoCommand>
bool m_owns_diagram
true while the diagram is detached from the project (not currently in its diagram list)
Definition adddiagramcommand.h:49
~AddDiagramCommand() override
AddDiagramCommand::~AddDiagramCommand Destroy the diagram only if it is currently detached from the p...
Definition adddiagramcommand.cpp:45
int m_position
Definition adddiagramcommand.h:47
QPointer< QETProject > m_project
Definition adddiagramcommand.h:45
Diagram * m_diagram
Definition adddiagramcommand.h:46
void redo() override
Definition adddiagramcommand.cpp:52
void undo() override
Definition adddiagramcommand.cpp:61
AddDiagramCommand(QETProject *project, Diagram *diagram, int pos=-1, QUndoCommand *parent=nullptr)
AddDiagramCommand::AddDiagramCommand.
Definition adddiagramcommand.cpp:30
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:54
Definition qetproject.h:77