VisualizationGraphRenderingDelegate.h
27 lines
| 895 B
| text/x-c
|
CLexer
Alexandre Leroux
|
r480 | #ifndef SCIQLOP_VISUALIZATIONGRAPHRENDERINGDELEGATE_H | ||
#define SCIQLOP_VISUALIZATIONGRAPHRENDERINGDELEGATE_H | ||||
#include <Common/spimpl.h> | ||||
class QCustomPlot; | ||||
class QMouseEvent; | ||||
Alexandre Leroux
|
r725 | class VisualizationGraphWidget; | ||
Alexandre Leroux
|
r480 | |||
class VisualizationGraphRenderingDelegate { | ||||
public: | ||||
Alexandre Leroux
|
r725 | /// 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); | ||||
Alexandre Leroux
|
r480 | |||
Alexandre Leroux
|
r481 | void onMouseMove(QMouseEvent *event) noexcept; | ||
Alexandre Leroux
|
r728 | /// Shows or hides graph overlay (name, close button, etc.) | ||
void showGraphOverlay(bool show) noexcept; | ||||
Alexandre Leroux
|
r480 | private: | ||
class VisualizationGraphRenderingDelegatePrivate; | ||||
spimpl::unique_impl_ptr<VisualizationGraphRenderingDelegatePrivate> impl; | ||||
}; | ||||
#endif // SCIQLOP_VISUALIZATIONGRAPHRENDERINGDELEGATE_H | ||||