GUI Milestone 1

This commit is contained in:
Joey Yakimowich-Payne 2026-01-29 22:12:23 -07:00
commit f46f9542b4
7 changed files with 593 additions and 19 deletions

31
gui/GraphEditorWidget.h Normal file
View file

@ -0,0 +1,31 @@
#pragma once
#include <warppipe/warppipe.hpp>
#include <QWidget>
namespace QtNodes {
class BasicGraphicsScene;
class GraphicsView;
} // namespace QtNodes
class WarpGraphModel;
class QTimer;
class GraphEditorWidget : public QWidget {
Q_OBJECT
public:
explicit GraphEditorWidget(warppipe::Client *client,
QWidget *parent = nullptr);
private slots:
void onRefreshTimer();
private:
warppipe::Client *m_client = nullptr;
WarpGraphModel *m_model = nullptr;
QtNodes::BasicGraphicsScene *m_scene = nullptr;
QtNodes::GraphicsView *m_view = nullptr;
QTimer *m_refreshTimer = nullptr;
};