circuit-logic-simulator/UndoCommands/AddWire.h

27 lines
441 B
C
Raw Normal View History

2020-03-24 20:18:39 +01:00
#ifndef ADDWIRE_H
#define ADDWIRE_H
#include <QUndoCommand>
class Scene;
class Wire;
class Connector;
class AddWire : public QUndoCommand
{
public:
AddWire(Scene* scene, Connector* connectorInput, Connector* connectorOutput);
~AddWire();
void redo() override;
void undo() override;
private:
Scene* m_scene;
Wire* m_wire;
Connector* m_connectorInput;
Connector* m_connectorOutput;
};
#endif // ADDWIRE_H