##// END OF EJS Templates
Separate the initialization of the properties of the graph of the update of the units of the graph....
Separate the initialization of the properties of the graph of the update of the units of the graph. The initialization of the properties is carried out when adding a variable in the graph, the update of the units is carried out when loading the data of this variable

File last commit:

r512:d00d6fd96c10
r1337:3acf26407503
Show More
RescaleAxeOperation.h
42 lines | 1.3 KiB | text/x-c | CLexer
Add rescale operation to permit to rescale axe widget
r435 #ifndef SCIQLOP_RESCALEAXEOPERATION_H
#define SCIQLOP_RESCALEAXEOPERATION_H
#include "Visualization/IVisualizationWidgetVisitor.h"
Change SqpRange for SqpDateTime
r512 #include <Data/SqpRange.h>
Add rescale operation to permit to rescale axe widget
r435
#include <Common/spimpl.h>
#include <QLoggingCategory>
#include <memory>
class Variable;
Q_DECLARE_LOGGING_CATEGORY(LOG_RescaleAxeOperation)
/**
* @brief The RescaleAxeOperation class defines an operation that traverses all of visualization
* widgets to remove a variable if they contain it
*/
class RescaleAxeOperation : public IVisualizationWidgetVisitor {
public:
/**
* Ctor
* @param variable the variable to remove from widgets
*/
Change SqpRange for SqpDateTime
r512 explicit RescaleAxeOperation(std::shared_ptr<Variable> variable, const SqpRange &range);
Add rescale operation to permit to rescale axe widget
r435
void visitEnter(VisualizationWidget *widget) override final;
void visitLeave(VisualizationWidget *widget) override final;
void visitEnter(VisualizationTabWidget *tabWidget) override final;
void visitLeave(VisualizationTabWidget *tabWidget) override final;
void visitEnter(VisualizationZoneWidget *zoneWidget) override final;
void visitLeave(VisualizationZoneWidget *zoneWidget) override final;
void visit(VisualizationGraphWidget *graphWidget) override final;
private:
class RescaleAxeOperationPrivate;
spimpl::unique_impl_ptr<RescaleAxeOperationPrivate> impl;
};
#endif // SCIQLOP_RESCALEAXEOPERATION_H