##// END OF EJS Templates
Updates tab widget so it can be deleted when closed
Updates tab widget so it can be deleted when closed

File last commit:

r244:419e3cbb9021
r247:83d15158feaa
Show More
VisualizationGraphWidget.h
55 lines | 1.4 KiB | text/x-c | CLexer
/ gui / include / Visualization / VisualizationGraphWidget.h
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 #ifndef SCIQLOP_VISUALIZATIONGRAPHWIDGET_H
#define SCIQLOP_VISUALIZATIONGRAPHWIDGET_H
Add the visualization gui classes
r111 #include "Visualization/IVisualizationWidget.h"
Alexandre Leroux
Adds logs for null visitors
r204 #include <QLoggingCategory>
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 #include <QWidget>
Add the visualization gui classes
r111 #include <memory>
#include <Common/spimpl.h>
Alexandre Leroux
Adds logs for null visitors
r204 Q_DECLARE_LOGGING_CATEGORY(LOG_VisualizationGraphWidget)
Alexandre Leroux
QCustomPlot notify the graph widget when the xRange changed
r211 class QCPRange;
Add the visualization gui classes
r111 class Variable;
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 namespace Ui {
class VisualizationGraphWidget;
} // namespace Ui
Add the visualization gui classes
r111 class VisualizationGraphWidget : public QWidget, public IVisualizationWidget {
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 Q_OBJECT
public:
Alexandre Leroux
Fixes reference
r191 explicit VisualizationGraphWidget(const QString &name = {}, QWidget *parent = 0);
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 virtual ~VisualizationGraphWidget();
Add the visualization gui classes
r111 void addVariable(std::shared_ptr<Variable> variable);
// IVisualizationWidget interface
Alexandre Leroux
Updates visitor interface...
r192 void accept(IVisualizationWidgetVisitor *visitor) override;
Alexandre Leroux
Creates a interface that defines a variable container...
r194 bool canDrop(const Variable &variable) const override;
Alexandre Leroux
Adds override keywor
r203 QString name() const override;
Add the visualization gui classes
r111
The mock plugin can now create data with view operation
r219 void updateDisplay(std::shared_ptr<Variable> variable);
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 private:
Ui::VisualizationGraphWidget *ui;
Add the visualization gui classes
r111
class VisualizationGraphWidgetPrivate;
spimpl::unique_impl_ptr<VisualizationGraphWidgetPrivate> impl;
Alexandre Leroux
Handles key modifiers for zoom...
r166
private slots:
Alexandre Leroux
QCustomPlot notify the graph widget when the xRange changed
r211
void onRangeChanged(const QCPRange &t1, const QCPRange &t2);
Alexandre Leroux
Handles key modifiers for zoom...
r166 /// Slot called when a mouse wheel was made, to perform some processing before the zoom is done
void onMouseWheel(QWheelEvent *event) noexcept;
The mock plugin can now create data with view operation
r219
void onDataCacheVariableUpdated();
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 };
#endif // SCIQLOP_VISUALIZATIONGRAPHWIDGET_H