VisualizationZoneWidget.h
39 lines
| 945 B
| text/x-c
|
CLexer
r58 | #ifndef SCIQLOP_VISUALIZATIONZONEWIDGET_H | |||
#define SCIQLOP_VISUALIZATIONZONEWIDGET_H | ||||
r111 | #include "Visualization/IVisualizationWidget.h" | |||
class VisualizationGraphWidget; | ||||
r58 | #include <QWidget> | |||
namespace Ui { | ||||
class VisualizationZoneWidget; | ||||
} // Ui | ||||
r111 | class VisualizationZoneWidget : public QWidget, public IVisualizationWidget { | |||
r58 | Q_OBJECT | |||
public: | ||||
explicit VisualizationZoneWidget(QWidget *parent = 0); | ||||
virtual ~VisualizationZoneWidget(); | ||||
r111 | /// Add a graph widget | |||
void addGraph(VisualizationGraphWidget *graphWidget); | ||||
/// Create a graph using a Variable | ||||
VisualizationGraphWidget *createGraph(); | ||||
/// Remove a graph | ||||
void removeGraph(VisualizationGraphWidget *graph); | ||||
// IVisualizationWidget interface | ||||
r112 | void accept(IVisualizationWidget *visitor) override; | |||
void close() override; | ||||
QString name() const override; | ||||
r111 | ||||
r58 | private: | |||
Ui::VisualizationZoneWidget *ui; | ||||
}; | ||||
#endif // SCIQLOP_VISUALIZATIONZONEWIDGET_H | ||||