##// END OF EJS Templates
Merge branch 'feature/TimeWidgetInUse' into develop
Merge branch 'feature/TimeWidgetInUse' into develop

File last commit:

r162:81ea5016bbcd
r180:435054a2a67e merge
Show More
VisualizationWidget.h
52 lines | 1.3 KiB | text/x-c | CLexer
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 #ifndef SCIQLOP_VISUALIZATIONWIDGET_H
#define SCIQLOP_VISUALIZATIONWIDGET_H
Add the visualization gui classes
r111 #include "Visualization/IVisualizationWidget.h"
Widget of the tab widget are now of type VisualizationTabWidget...
r87 #include <QLoggingCategory>
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 #include <QWidget>
Alexandre Leroux
Creates the slot to display the created variable in the Visualization widget...
r162 class Variable;
Add the visualization gui classes
r111 class VisualizationTabWidget;
Widget of the tab widget are now of type VisualizationTabWidget...
r87 Q_DECLARE_LOGGING_CATEGORY(LOG_VisualizationWidget)
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 namespace Ui {
class VisualizationWidget;
} // namespace Ui
Add the visualization gui classes
r111 class VisualizationWidget : public QWidget, public IVisualizationWidget {
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 Q_OBJECT
public:
explicit VisualizationWidget(QWidget *parent = 0);
virtual ~VisualizationWidget();
Add the visualization gui classes
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
Add const and override
r112 void accept(IVisualizationWidget *visitor) override;
void close() override;
QString name() const;
Add the visualization gui classes
r111
Alexandre Leroux
Creates the slot to display the created variable in the Visualization widget...
r162 public slots:
/**
* Displays a variable in a new graph of a new zone of the current tab
* @param variable the variable to display
* @todo this is a temporary method that will be replaced by own actions for each type of
* visualization widget
*/
void displayVariable(std::shared_ptr<Variable> variable) noexcept;
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 private:
Ui::VisualizationWidget *ui;
};
#endif // VISUALIZATIONWIDGET_H