summaryrefslogtreecommitdiff
path: root/src/gui/tikzscene.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/tikzscene.h')
-rw-r--r--src/gui/tikzscene.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/tikzscene.h b/src/gui/tikzscene.h
index f8dc7ec..e1d30d2 100644
--- a/src/gui/tikzscene.h
+++ b/src/gui/tikzscene.h
@@ -27,6 +27,7 @@
#include "graph.h"
#include "nodeitem.h"
#include "edgeitem.h"
+#include "pathitem.h"
#include "tikzdocument.h"
#include "toolpalette.h"
#include "stylepalette.h"
@@ -48,6 +49,7 @@ public:
Graph *graph();
QMap<Node*,NodeItem*> &nodeItems();
QMap<Edge*,EdgeItem*> &edgeItems();
+ QMap<Path*,PathItem*> &pathItems();
void refreshAdjacentEdges(QList<Node*> nodes);
// void setBounds(QRectF bounds);
@@ -81,6 +83,8 @@ public:
void reverseSelectedEdges();
+ void makePath(bool duplicateEdges);
+ void splitPath();
void getSelection(QSet<Node*> &selNodes, QSet<Edge*> &selEdges) const;
QSet<Node*> getSelectedNodes() const;
@@ -90,6 +94,9 @@ public:
bool highlightHeads() const;
bool highlightTails() const;
+ bool drawNodeLabels() const;
+ void setDrawNodeLabels(bool drawNodeLabels);
+
public slots:
void graphReplaced();
void refreshZIndices();
@@ -107,14 +114,17 @@ private:
StylePalette *_styles;
QMap<Node*,NodeItem*> _nodeItems;
QMap<Edge*,EdgeItem*> _edgeItems;
+ QMap<Path*,PathItem*> _pathItems;
QGraphicsLineItem *_drawEdgeItem;
QGraphicsRectItem *_rubberBandItem;
EdgeItem *_modifyEdgeItem;
+ Edge *_selectingEdge;
NodeItem *_edgeStartNodeItem;
NodeItem *_edgeEndNodeItem;
bool _firstControlPoint;
QPointF _mouseDownPos;
bool _draggingNodes;
+ bool _drawNodeLabels;
QMap<Node*,QPointF> _oldNodePositions;
qreal _oldWeight;
@@ -126,6 +136,8 @@ private:
bool _highlightHeads;
bool _highlightTails;
bool _smartTool;
+
+ bool _ctrlWasPressed;
};
#endif // TIKZSCENE_H