circuit-logic-simulator/UndoCommands/RemoveWire.h

25 lines
350 B
C
Raw Normal View History

2020-03-24 20:18:39 +01:00
#ifndef REMOVEWIRE_H
#define REMOVEWIRE_H
#include <QUndoCommand>
class Scene;
class Wire;
class Part;
class RemoveWire : public QUndoCommand
{
public:
RemoveWire(Scene* scene, Wire* wire);
~RemoveWire();
void redo() override;
void undo() override;
private:
Scene* m_scene;
Wire* m_wire;
};
#endif // REMOVEWIRE_H