##// END OF EJS Templates
Passes directly GraphWidget in delegate...
Passes directly GraphWidget in delegate It will allow to get title and call close action in plot overlay

File last commit:

r666:cff73dc198fa
r666:cff73dc198fa
Show More
VisualizationGraphRenderingDelegate.h
24 lines | 783 B | 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 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;
private:
class VisualizationGraphRenderingDelegatePrivate;
spimpl::unique_impl_ptr<VisualizationGraphRenderingDelegatePrivate> impl;
};
#endif // SCIQLOP_VISUALIZATIONGRAPHRENDERINGDELEGATE_H