feat: signle displayFlag

This commit is contained in:
parker
2025-07-05 17:14:47 +01:00
parent f6d78d6d8b
commit 18f85d6e76
6 changed files with 66 additions and 4 deletions

View File

@@ -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);