##// END OF EJS Templates
Implements filter function for data source...
Implements filter function for data source An item is valid if one of its metadata matches the text in the seach box

File last commit:

r461:b8af3b4730c2
r477:eab21078feec
Show More
Variable.h
57 lines | 1.4 KiB | text/x-c | CLexer
Alexandre Leroux
Creates the variable model...
r112 #ifndef SCIQLOP_VARIABLE_H
#define SCIQLOP_VARIABLE_H
Alexandre Leroux
Exports core module as a shared library...
r461 #include "CoreGlobal.h"
Variable slot is called when x range of its graph changed
r226 #include <Data/SqpDateTime.h>
#include <QLoggingCategory>
Alexandre Leroux
Makes the connection between Variable controller and Visualization controller...
r170 #include <QObject>
Alexandre Leroux
Centralization of qregistermetatype management
r308 #include <Common/MetaTypes.h>
Variable slot is called when x range of its graph changed
r226 #include <Common/spimpl.h>
Q_DECLARE_LOGGING_CATEGORY(LOG_Variable)
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
Exports core module as a shared library...
r461 class SCIQLOP_CORE_EXPORT Variable : public QObject {
The mock plugin can now create data with view operation
r235
Q_OBJECT
Alexandre Leroux
Changes Variable from struct to class
r163 public:
Alexandre Leroux
Adds QVariantHash to store metadata in a variable
r406 explicit Variable(const QString &name, const SqpDateTime &dateTime,
const QVariantHash &metadata = {});
Alexandre Leroux
Changes Variable from struct to class
r163
QString name() const noexcept;
The mock plugin can now create data with view operation
r235 SqpDateTime dateTime() const noexcept;
Implementation of the new Dela T computation strategy
r260 void setDateTime(const SqpDateTime &dateTime) noexcept;
Alexandre Leroux
Adds data series to a variable
r164
Alexandre Leroux
Handles creations for scalar series
r182 /// @return the data of the variable, nullptr if there is no data
IDataSeries *dataSeries() const noexcept;
Alexandre Leroux
Adds QVariantHash to store metadata in a variable
r406 QVariantHash metadata() const noexcept;
The cache is now updated only if date requested has been successfully...
r318 bool contains(const SqpDateTime &dateTime) const noexcept;
bool intersect(const SqpDateTime &dateTime) const noexcept;
bool isInside(const SqpDateTime &dateTime) const noexcept;
The mock plugin can now create data with view operation
r235
Variable slot is called when x range of its graph changed
r226 public slots:
Alexandre Leroux
Use std::shared_ptr in CosinusProvider
r310 void setDataSeries(std::shared_ptr<IDataSeries> dataSeries) noexcept;
The mock plugin can now create data with view operation
r235
signals:
Fix the cosinus bug....
r298 void updated();
The mock plugin can now create data with view operation
r235
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
Alexandre Leroux
Centralization of qregistermetatype management
r308 SCIQLOP_REGISTER_META_TYPE(VARIABLE_PTR_REGISTRY, std::shared_ptr<Variable>)
Alexandre Leroux
Makes the connection between Variable controller and Visualization controller...
r170
Alexandre Leroux
Creates the variable model...
r112 #endif // SCIQLOP_VARIABLE_H