##// END OF EJS Templates
onRangeChanged is now based on the good range (the new one)...
onRangeChanged is now based on the good range (the new one) setTimeRange is now connected to rescaleAxes and replot methods

File last commit:

r281:08349e12a7ef
r290:076efd0d6728
Show More
VariableController.h
61 lines | 1.7 KiB | text/x-c | CLexer
/ core / include / Variable / VariableController.h
Alexandre Leroux
Inits variable controller and adds it to the SciQlop app
r106 #ifndef SCIQLOP_VARIABLECONTROLLER_H
#define SCIQLOP_VARIABLECONTROLLER_H
The mock plugin can now create data with view operation
r219 #include <Data/SqpDateTime.h>
Alexandre Leroux
Inits variable controller and adds it to the SciQlop app
r106 #include <QLoggingCategory>
#include <QObject>
#include <Common/spimpl.h>
Alexandre Leroux
Updates VariableController::createVariable() method...
r154 class IDataProvider;
Temporal parameters of the selected variables can be updated using the...
r281 class QItemSelectionModel;
Time widget is now used with the variable createion request
r179 class TimeController;
Alexandre Leroux
Adds Variable model in the Variable controller
r108 class Variable;
Alexandre Leroux
Affects model to the Variable Widget
r143 class VariableModel;
Alexandre Leroux
Inits variable controller and adds it to the SciQlop app
r106 Q_DECLARE_LOGGING_CATEGORY(LOG_VariableController)
/**
* @brief The VariableController class aims to handle the variables in SciQlop.
*/
class VariableController : public QObject {
Q_OBJECT
public:
explicit VariableController(QObject *parent = 0);
virtual ~VariableController();
Alexandre Leroux
Updates VariableController::createVariable() method...
r154 VariableModel *variableModel() noexcept;
Temporal parameters of the selected variables can be updated using the...
r281 QItemSelectionModel *variableSelectionModel() noexcept;
Alexandre Leroux
Updates VariableController::createVariable() method...
r154
Time widget is now used with the variable createion request
r179 void setTimeController(TimeController *timeController) noexcept;
The mock plugin can now create data with view operation
r219
Alexandre Leroux
Updates VariableController::createVariable() method...
r154 signals:
/// Signal emitted when a variable has been created
void variableCreated(std::shared_ptr<Variable> variable);
public slots:
Fix the cosinus bug....
r276 /// Request the data loading of the variable whithin dateTime
void onRequestDataLoading(std::shared_ptr<Variable> variable, const SqpDateTime &dateTime);
Alexandre Leroux
Adds Variable model in the Variable controller
r108 /**
Alexandre Leroux
Updates VariableController::createVariable() method...
r154 * Creates a new variable and adds it to the model
Alexandre Leroux
Adds Variable model in the Variable controller
r108 * @param name the name of the new variable
Alexandre Leroux
Updates VariableController::createVariable() method...
r154 * @param provider the data provider for the new variable
Alexandre Leroux
Adds Variable model in the Variable controller
r108 */
Alexandre Leroux
Updates VariableController::createVariable() method...
r154 void createVariable(const QString &name, std::shared_ptr<IDataProvider> provider) noexcept;
Alexandre Leroux
Adds Variable model in the Variable controller
r108
Temporal parameters of the selected variables can be updated using the...
r281 /// Update the temporal parameters of every selected variable to dateTime
void onDateTimeOnSelection(const SqpDateTime &dateTime);
Alexandre Leroux
Inits variable controller and adds it to the SciQlop app
r106 void initialize();
void finalize();
private:
void waitForFinish();
class VariableControllerPrivate;
spimpl::unique_impl_ptr<VariableControllerPrivate> impl;
};
#endif // SCIQLOP_VARIABLECONTROLLER_H