##// END OF EJS Templates
Completes visit of tab and zone...
Completes visit of tab and zone For a tab or a zone that can drops the variable, we add an action to its menu, of type "Open in new..." For example, for a tab, the new action action will be "Open in new zone". The action is separated to other actions in the menu

File last commit:

r182:cc2257464c26
r214:aa91a995c6e9
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