diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2019-01-12 15:01:41 +0100 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2019-01-12 15:11:00 +0100 |
commit | d49cde5d0b948f24aa7b3bd9ad9b3b63333f2281 (patch) | |
tree | 573a28adec900d892ab14c2bc4a4902d61985d81 /src/gui/undocommands.h | |
parent | 8fe8ff000d48460583f542b932d8af3e3d3ae008 (diff) |
reverse edge direction
Diffstat (limited to 'src/gui/undocommands.h')
-rw-r--r-- | src/gui/undocommands.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/undocommands.h b/src/gui/undocommands.h index ff51c90..42fed30 100644 --- a/src/gui/undocommands.h +++ b/src/gui/undocommands.h @@ -78,6 +78,17 @@ private: int _newOutAngle; }; +class ReverseEdgesCommand : public GraphUpdateCommand +{ +public: + explicit ReverseEdgesCommand(TikzScene *scene, QSet<Edge*> edgeSet, + QUndoCommand *parent = nullptr); + void undo() override; + void redo() override; +private: + QSet<Edge*> _edgeSet; +}; + class DeleteCommand : public GraphUpdateCommand { public: |