##// END OF EJS Templates
Add lambda in VIsualizationWidget to fix the bug of the corner widget button size...
Add lambda in VIsualizationWidget to fix the bug of the corner widget button size Modify the property of the QFrame to ensure the box around the zone widget to be visible

File last commit:

r182:cc2257464c26
r186:134da9ef870f
Show More
Variable.h
35 lines | 842 B | text/x-c | CLexer
#ifndef SCIQLOP_VARIABLE_H
#define SCIQLOP_VARIABLE_H
#include <Common/spimpl.h>
#include <QObject>
class IDataSeries;
class QString;
/**
* @brief The Variable class represents a variable in SciQlop.
*/
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;
void addDataSeries(std::unique_ptr<IDataSeries> dataSeries) noexcept;
/// @return the data of the variable, nullptr if there is no data
IDataSeries *dataSeries() const noexcept;
private:
class VariablePrivate;
spimpl::unique_impl_ptr<VariablePrivate> impl;
};
// Required for using shared_ptr in signals/slots
Q_DECLARE_METATYPE(std::shared_ptr<Variable>)
#endif // SCIQLOP_VARIABLE_H