##// END OF EJS Templates
Handles desynchronisation when removing variable from a graph (1)...
Handles desynchronisation when removing variable from a graph (1) - Prevents the zone widget that a variable will be removed from graph, to call desynchronisation in the Variable controller

File last commit:

r729:94000392d1e8
r737:e5aabf0f62fb
Show More
VisualizationGraphRenderingDelegate.h
31 lines | 1.0 KiB | text/x-c | CLexer
/ gui / include / Visualization / VisualizationGraphRenderingDelegate.h
#ifndef SCIQLOP_VISUALIZATIONGRAPHRENDERINGDELEGATE_H
#define SCIQLOP_VISUALIZATIONGRAPHRENDERINGDELEGATE_H
#include <Common/spimpl.h>
class QCustomPlot;
class QMouseEvent;
class Unit;
class VisualizationGraphWidget;
class VisualizationGraphRenderingDelegate {
public:
/// Ctor
/// @param graphWidget the graph widget to which the delegate is associated
/// @remarks the graph widget must exist throughout the life cycle of the delegate
explicit VisualizationGraphRenderingDelegate(VisualizationGraphWidget &graphWidget);
void onMouseMove(QMouseEvent *event) noexcept;
/// Sets properties of the plot's axes
void setAxesProperties(const Unit &xAxisUnit, const Unit &valuesUnit) noexcept;
/// Shows or hides graph overlay (name, close button, etc.)
void showGraphOverlay(bool show) noexcept;
private:
class VisualizationGraphRenderingDelegatePrivate;
spimpl::unique_impl_ptr<VisualizationGraphRenderingDelegatePrivate> impl;
};
#endif // SCIQLOP_VISUALIZATIONGRAPHRENDERINGDELEGATE_H