warp-pipe/gui/GraphEditorWidget.h

31 lines
631 B
C++

#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;
};