GUI Milestone 1
This commit is contained in:
parent
4fc36822ba
commit
f46f9542b4
7 changed files with 593 additions and 19 deletions
31
gui/GraphEditorWidget.h
Normal file
31
gui/GraphEditorWidget.h
Normal 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;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue