From 6dda16a24dfe7cbd0d90b77c57f1cf789210feb5 Mon Sep 17 00:00:00 2001 From: Aleks Kissinger Date: Mon, 13 Apr 2020 14:40:07 +0100 Subject: ability to make paths from edges --- src/gui/undocommands.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/gui/undocommands.h') diff --git a/src/gui/undocommands.h b/src/gui/undocommands.h index 40f0a3b..a1daa07 100644 --- a/src/gui/undocommands.h +++ b/src/gui/undocommands.h @@ -255,4 +255,20 @@ private: QVector _newEdgeOrder; }; +class MakePathCommand : public GraphUpdateCommand +{ +public: + explicit MakePathCommand(TikzScene *scene, + const QVector &edgeList, + const QMap &oldEdgeData, + QUndoCommand *parent = nullptr); + void undo() override; + void redo() override; +private: + QVector _edgeList; + + // creating path clobbers data on all but first edge + QMap _oldEdgeData; +}; + #endif // UNDOCOMMANDS_H -- cgit v1.2.3