##// END OF EJS Templates
Really basic implementation of Downloader which might replace current...
Really basic implementation of Downloader which might replace current NetworkController It is currently really basic, it only does synchronous DLs with or without authentication. It is written to isolate as much as possible Qt Network classes. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1280:5b0b3c10ce1e
r1342:91cbf8a85daf
Show More
VisualizationGraphHelper.h
41 lines | 1.3 KiB | text/x-c | CLexer
/ gui / include / Visualization / VisualizationGraphHelper.h
#ifndef SCIQLOP_VISUALIZATIONGRAPHHELPER_H
#define SCIQLOP_VISUALIZATIONGRAPHHELPER_H
#include "Visualization/VisualizationDefs.h"
#include <Data/SqpRange.h>
#include <QLoggingCategory>
#include <QVector>
#include <memory>
Q_DECLARE_LOGGING_CATEGORY(LOG_VisualizationGraphHelper)
class IDataSeries;
class QCPAbstractPlottable;
class QCustomPlot;
class Variable;
/**
* @brief The VisualizationGraphHelper class aims to create the QCustomPlot components relative to a
* variable, depending on the data series of this variable
*/
struct VisualizationGraphHelper {
/**
* Creates (if possible) the QCustomPlot components relative to the variable passed in
* parameter, and adds these to the plot passed in parameter.
* @param variable the variable for which to create the components
* @param plot the plot in which to add the created components. It takes ownership of these
* components.
* @return the list of the components created
*/
static PlottablesMap create(std::shared_ptr<Variable> variable, QCustomPlot &plot) noexcept;
static void updateData(PlottablesMap &plottables, std::shared_ptr<Variable> variable,
const SqpRange &dateTime);
static void setYAxisRange(std::shared_ptr<Variable> variable, QCustomPlot &plot) noexcept;
};
#endif // SCIQLOP_VISUALIZATIONGRAPHHELPER_H