feat: add floating edge

This commit is contained in:
parker
2025-06-21 01:11:15 +01:00
parent 20c6ad2b64
commit e1b88b5fdc
9 changed files with 145 additions and 22 deletions

View File

@@ -1,11 +1,23 @@
#pragma once
#include <QWidget>
#include "gui/network/NetworkGraphicsView.h"
#include "gui/network/NetworkGraphicsScene.h"
#include "gui/network/SocketGraphic.h"
#include "gui/network/FloatingEdgeGraphic.h"
class Network
: public QWidget
{
public:
Network(QWidget* parent = nullptr);
void socketClicked(SocketGraphic* socket);
void mouseMoved(QMouseEvent *event);
private:
QLayout* mainLayout_;
NetworkGraphicsScene* scene_;
NetworkGraphicsView* view_;
FloatingEdgeGraphic* floatingEdge_=nullptr;
protected:
};