18#ifndef OPENELMTCOMMAND_H
19#define OPENELMTCOMMAND_H
21#include <QUndoCommand>
22#include <QDomDocument>
31 OpenElmtCommand(
const QDomDocument &document, QPointer<ElementScene> scene, QUndoCommand *parent =
nullptr);
34 virtual void undo()
override;
35 virtual void redo()
override;
The ElementScene class This class is the canvas allowing the visual edition of an electrical element....
Definition elementscene.h:46
Definition openelmtcommand.h:29
~OpenElmtCommand() override
Definition openelmtcommand.cpp:34
bool m_first_redo
Definition openelmtcommand.h:39
QList< QGraphicsItem * > m_graphics_item
Definition openelmtcommand.h:41
QDomDocument m_document
Definition openelmtcommand.h:38
virtual void undo() override
Definition openelmtcommand.cpp:41
virtual void redo() override
Definition openelmtcommand.cpp:46
QPointer< ElementScene > m_scene
Definition openelmtcommand.h:40