began node viewer for dag insight

This commit is contained in:
itsmattkc
2019-07-15 03:52:44 -04:00
parent 33f9f9dbc4
commit dc2101938e
19 changed files with 401 additions and 42 deletions
+10
View File
@@ -24,6 +24,8 @@
#include <QGraphicsView>
#include "node/graph.h"
#include "widget/nodeview/nodeviewedge.h"
#include "widget/nodeview/nodeviewitem.h"
class NodeView : public QGraphicsView
{
@@ -33,10 +35,18 @@ public:
void SetGraph(NodeGraph* graph);
static NodeViewItem* NodeToUIObject(QGraphicsScene* scene, Node* n);
private:
NodeGraph* graph_;
QGraphicsScene scene_;
QList<NodeViewEdge*> edges_;
private slots:
void ItemsChanged();
};
#endif // NODEVIEW_H