diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2020-04-13 14:40:07 +0100 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2020-04-13 14:40:07 +0100 |
commit | 6dda16a24dfe7cbd0d90b77c57f1cf789210feb5 (patch) | |
tree | 7748bbbe8e484af230481ff092fcf7268c6af24b /src/gui/undocommands.h | |
parent | b48731917964d263175716a29a58d965cb726798 (diff) |
ability to make paths from edges
Diffstat (limited to 'src/gui/undocommands.h')
-rw-r--r-- | src/gui/undocommands.h | 16 |
1 files changed, 16 insertions, 0 deletions
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<Edge*> _newEdgeOrder; }; +class MakePathCommand : public GraphUpdateCommand +{ +public: + explicit MakePathCommand(TikzScene *scene, + const QVector<Edge*> &edgeList, + const QMap<Edge*,GraphElementData*> &oldEdgeData, + QUndoCommand *parent = nullptr); + void undo() override; + void redo() override; +private: + QVector<Edge*> _edgeList; + + // creating path clobbers data on all but first edge + QMap<Edge*,GraphElementData*> _oldEdgeData; +}; + #endif // UNDOCOMMANDS_H |