summaryrefslogtreecommitdiff
path: root/src/gui/undocommands.h
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2019-01-18 15:30:10 +0100
committerAleks Kissinger <aleks0@gmail.com>2019-01-18 15:30:10 +0100
commit15d97051f0b5105a2765fc068ae980e36195434c (patch)
tree30dc3b710fb69d5a2d03f549c092e523536943a1 /src/gui/undocommands.h
parent8a46efa89b20ee2e509877a6e7fb1591360fb6f7 (diff)
fixed CTRL key bug and added option to auto-select new edges
Diffstat (limited to 'src/gui/undocommands.h')
-rw-r--r--src/gui/undocommands.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/undocommands.h b/src/gui/undocommands.h
index 42fed30..94b98be 100644
--- a/src/gui/undocommands.h
+++ b/src/gui/undocommands.h
@@ -121,11 +121,14 @@ private:
class AddEdgeCommand : public GraphUpdateCommand
{
public:
- explicit AddEdgeCommand(TikzScene *scene, Edge *edge, QUndoCommand *parent = nullptr);
+ explicit AddEdgeCommand(TikzScene *scene, Edge *edge, bool selectEdge, QSet<Node *> selNodes, QSet<Edge *> selEdges, QUndoCommand *parent = nullptr);
void undo() override;
void redo() override;
private:
+ bool _selectEdge;
Edge *_edge;
+ QSet<Node*> _selNodes;
+ QSet<Edge*> _selEdges;
};
class ChangeEdgeModeCommand : public GraphUpdateCommand