##// END OF EJS Templates
Removes VisualizationController::onVariableCreated() slot...
Removes VisualizationController::onVariableCreated() slot The slot is replaced by a signal that only propagates the VariableController signal. This new signal will be intercepted by the VisualizationWidget to create a new graph from the created variable

File last commit:

r170:a3d07f8af710
r174:992eeb099247
Show More
Variable.h
32 lines | 725 B | text/x-c | CLexer
Alexandre Leroux
Creates the variable model...
r112 #ifndef SCIQLOP_VARIABLE_H
#define SCIQLOP_VARIABLE_H
Alexandre Leroux
Changes Variable from struct to class
r163 #include <Common/spimpl.h>
Alexandre Leroux
Makes the connection between Variable controller and Visualization controller...
r170 #include <QObject>
Alexandre Leroux
Adds data series to a variable
r164 class IDataSeries;
Alexandre Leroux
Changes Variable from struct to class
r163 class QString;
Alexandre Leroux
Creates the variable model...
r112
/**
Alexandre Leroux
Changes Variable from struct to class
r163 * @brief The Variable class represents a variable in SciQlop.
Alexandre Leroux
Creates the variable model...
r112 */
Alexandre Leroux
Changes Variable from struct to class
r163 class Variable {
public:
explicit Variable(const QString &name, const QString &unit, const QString &mission);
QString name() const noexcept;
QString mission() const noexcept;
QString unit() const noexcept;
Alexandre Leroux
Creates the variable model...
r112
Alexandre Leroux
Adds data series to a variable
r164 void addDataSeries(std::unique_ptr<IDataSeries> dataSeries) noexcept;
Alexandre Leroux
Changes Variable from struct to class
r163 private:
class VariablePrivate;
spimpl::unique_impl_ptr<VariablePrivate> impl;
Alexandre Leroux
Creates the variable model...
r112 };
Alexandre Leroux
Makes the connection between Variable controller and Visualization controller...
r170 // Required for using shared_ptr in signals/slots
Q_DECLARE_METATYPE(std::shared_ptr<Variable>)
Alexandre Leroux
Creates the variable model...
r112 #endif // SCIQLOP_VARIABLE_H