Initial Commit
This commit is contained in:
28
UndoCommands/RemoveWire.h
Normal file
28
UndoCommands/RemoveWire.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user