##// END OF EJS Templates
Merge branch 'feature/DownloadWhenTolIsOutsideCache' into develop
Merge branch 'feature/DownloadWhenTolIsOutsideCache' into develop

File last commit:

r403:9fabd78ca3ee
r405:632636b095ab merge
Show More
VariableController.h
95 lines | 3.0 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;
Alexandre Leroux
Variable deletion (1)...
r303 /**
* Deletes from the controller the variable passed in parameter.
*
Alexandre Leroux
Variable deletion (2)...
r304 * Delete a variable includes:
Alexandre Leroux
Variable deletion (7)...
r310 * - the deletion of the various references to the variable in SciQlop
Alexandre Leroux
Variable deletion (3)...
r306 * - the deletion of the model variable
Alexandre Leroux
Variable deletion (2)...
r304 * - the deletion of the provider associated with the variable
Alexandre Leroux
Variable deletion (2)...
r305 * - removing the cache associated with the variable
Alexandre Leroux
Variable deletion (1)...
r303 *
* @param variable the variable to delete from the controller.
*/
void deleteVariable(std::shared_ptr<Variable> variable) noexcept;
/**
* Deletes from the controller the variables passed in parameter.
* @param variables the variables to delete from the controller.
* @sa deleteVariable()
*/
void deleteVariables(const QVector<std::shared_ptr<Variable> > &variables) noexcept;
The mock plugin can now create data with view operation
r219
Implement of the abort download process
r388 /**
* @brief abort the variable retrieve data progression
*/
void abortProgress(std::shared_ptr<Variable> variable);
Alexandre Leroux
Updates VariableController::createVariable() method...
r154 signals:
Alexandre Leroux
Variable deletion (7)...
r310 /// Signal emitted when a variable is about to be deleted from the controller
void variableAboutToBeDeleted(std::shared_ptr<Variable> variable);
Alexandre Leroux
Updates VariableController::createVariable() method...
r154
Add connection logical for the rescale operation
r403 /// Signal emitted when a data acquisition is requested on a range for a variable
void rangeChanged(std::shared_ptr<Variable> variable, const SqpDateTime &range);
Alexandre Leroux
Updates VariableController::createVariable() method...
r154 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 variable creation to pass metadata...
r377 * @param metadata the metadata 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 variable creation to pass metadata...
r377 void createVariable(const QString &name, const QVariantHash &metadata,
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);
Add implementation of progress bar on variable inspector connected to...
r369
void onVariableRetrieveDataInProgress(QUuid identifier, double progress);
Implement of the abort download process
r388 void onAbortProgressRequested(std::shared_ptr<Variable> variable);
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