feat: signle displayFlag
This commit is contained in:
@@ -3,13 +3,17 @@
|
||||
#include <memory>
|
||||
#include <qgraphicsitem.h>
|
||||
#include <typeinfo>
|
||||
#include "Engine/Network/NetworkManager.h"
|
||||
#include "Engine/Types.h"
|
||||
#include "gui/network/NetworkGraphicsView.h"
|
||||
#include "gui/network/NodeEdgeGraphic.h"
|
||||
#include "gui/network/NetworkGraphicsScene.h"
|
||||
#include "gui/network/NodeGraphic.h"
|
||||
#include "gui/network/SocketGraphic.h"
|
||||
#include "gui/network/FloatingEdgeGraphic.h"
|
||||
#include <iostream>
|
||||
#include <QPointer>
|
||||
#include <unordered_map>
|
||||
|
||||
class Network
|
||||
: public QWidget
|
||||
@@ -31,6 +35,10 @@ private:
|
||||
NetworkGraphicsScene* scene_;
|
||||
NetworkGraphicsView* view_;
|
||||
|
||||
enzo::nt::NetworkManager* nm_;
|
||||
|
||||
std::unordered_map<enzo::nt::OpId, NodeGraphic*> nodeStore_;
|
||||
|
||||
FloatingEdgeGraphic* floatingEdge_=nullptr;
|
||||
SocketGraphic* startSocket_=nullptr;
|
||||
|
||||
@@ -46,6 +54,8 @@ private:
|
||||
void destroyFloatingEdge();
|
||||
void deleteEdge(QGraphicsItem* edge);
|
||||
|
||||
NodeGraphic* createNode();
|
||||
|
||||
void highlightEdge(QGraphicsItem* edge, bool state);
|
||||
void leftMousePressed(QMouseEvent* event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user