VisualizationWidget.h
42 lines
| 972 B
| text/x-c
|
CLexer
r58 | #ifndef SCIQLOP_VISUALIZATIONWIDGET_H | |||
#define SCIQLOP_VISUALIZATIONWIDGET_H | ||||
r111 | #include "Visualization/IVisualizationWidget.h" | |||
r87 | #include <QLoggingCategory> | |||
r58 | #include <QWidget> | |||
r111 | class VisualizationTabWidget; | |||
r87 | Q_DECLARE_LOGGING_CATEGORY(LOG_VisualizationWidget) | |||
r58 | namespace Ui { | |||
class VisualizationWidget; | ||||
} // namespace Ui | ||||
r111 | class VisualizationWidget : public QWidget, public IVisualizationWidget { | |||
r58 | Q_OBJECT | |||
public: | ||||
explicit VisualizationWidget(QWidget *parent = 0); | ||||
virtual ~VisualizationWidget(); | ||||
r111 | /// Add a zone widget | |||
virtual void addTab(VisualizationTabWidget *tabWidget); | ||||
/// Create a tab using a Variable | ||||
VisualizationTabWidget *createTab(); | ||||
/// Remove a tab | ||||
void removeTab(VisualizationTabWidget *tab); | ||||
// IVisualizationWidget interface | ||||
r112 | void accept(IVisualizationWidget *visitor) override; | |||
void close() override; | ||||
QString name() const; | ||||
r111 | ||||
r58 | private: | |||
Ui::VisualizationWidget *ui; | ||||
}; | ||||
#endif // VISUALIZATIONWIDGET_H | ||||