29 lines
472 B
C
29 lines
472 B
C
|
#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;
|
||
|
Part* m_wireInputPart;
|
||
|
int m_wireInputConnectorIdx;
|
||
|
Part* m_wireOutputPart;
|
||
|
int m_wireOutputConnectorIdx;
|
||
|
};
|
||
|
|
||
|
#endif // REMOVEWIRE_H
|