VisualizationGraphWidget.h
39 lines
| 904 B
| text/x-c
|
CLexer
r58 | #ifndef SCIQLOP_VISUALIZATIONGRAPHWIDGET_H | |||
#define SCIQLOP_VISUALIZATIONGRAPHWIDGET_H | ||||
r118 | #include "Visualization/IVisualizationWidget.h" | |||
r58 | #include <QWidget> | |||
r118 | #include <memory> | |||
#include <Common/spimpl.h> | ||||
class Variable; | ||||
r58 | namespace Ui { | |||
class VisualizationGraphWidget; | ||||
} // namespace Ui | ||||
r118 | class VisualizationGraphWidget : public QWidget, public IVisualizationWidget { | |||
r58 | Q_OBJECT | |||
public: | ||||
explicit VisualizationGraphWidget(QWidget *parent = 0); | ||||
virtual ~VisualizationGraphWidget(); | ||||
r118 | void addVariable(std::shared_ptr<Variable> variable); | |||
// IVisualizationWidget interface | ||||
r119 | void accept(IVisualizationWidget *visitor) override; | |||
void close() override; | ||||
QString name() const; | ||||
r118 | ||||
r58 | private: | |||
Ui::VisualizationGraphWidget *ui; | ||||
r118 | ||||
class VisualizationGraphWidgetPrivate; | ||||
spimpl::unique_impl_ptr<VisualizationGraphWidgetPrivate> impl; | ||||
r58 | }; | |||
#endif // SCIQLOP_VISUALIZATIONGRAPHWIDGET_H | ||||