##// END OF EJS Templates
Connects variable widget to visualization widget...
Connects variable widget to visualization widget The connection is used to populate variable menu with the plot menu

File last commit:

r235:746eaca503e3
r249:3d1d1572319d
Show More
VariableController.h
58 lines | 1.4 KiB | text/x-c | CLexer
/ core / include / Variable / VariableController.h
Alexandre Leroux
Inits variable controller and adds it to the SciQlop app
r111 #ifndef SCIQLOP_VARIABLECONTROLLER_H
#define SCIQLOP_VARIABLECONTROLLER_H
The mock plugin can now create data with view operation
r235 #include <Data/SqpDateTime.h>
Alexandre Leroux
Inits variable controller and adds it to the SciQlop app
r111 #include <QLoggingCategory>
#include <QObject>
#include <Common/spimpl.h>
The mock plugin can now create data with view operation
r235
Alexandre Leroux
Updates VariableController::createVariable() method...
r166 class IDataProvider;
Time widget is now used with the variable createion request
r193 class TimeController;
Alexandre Leroux
Adds Variable model in the Variable controller
r113 class Variable;
Alexandre Leroux
Affects model to the Variable Widget
r152 class VariableModel;
Alexandre Leroux
Inits variable controller and adds it to the SciQlop app
r111 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...
r166 VariableModel *variableModel() noexcept;
Time widget is now used with the variable createion request
r193 void setTimeController(TimeController *timeController) noexcept;
The mock plugin can now create data with view operation
r235
/// Request the data loading of the variable whithin dateTime
void requestDataLoading(std::shared_ptr<Variable> variable, const SqpDateTime &dateTime);
Alexandre Leroux
Updates VariableController::createVariable() method...
r166 signals:
/// Signal emitted when a variable has been created
void variableCreated(std::shared_ptr<Variable> variable);
public slots:
Alexandre Leroux
Adds Variable model in the Variable controller
r113 /**
Alexandre Leroux
Updates VariableController::createVariable() method...
r166 * Creates a new variable and adds it to the model
Alexandre Leroux
Adds Variable model in the Variable controller
r113 * @param name the name of the new variable
Alexandre Leroux
Updates VariableController::createVariable() method...
r166 * @param provider the data provider for the new variable
Alexandre Leroux
Adds Variable model in the Variable controller
r113 */
Alexandre Leroux
Updates VariableController::createVariable() method...
r166 void createVariable(const QString &name, std::shared_ptr<IDataProvider> provider) noexcept;
Alexandre Leroux
Adds Variable model in the Variable controller
r113
Alexandre Leroux
Inits variable controller and adds it to the SciQlop app
r111 void initialize();
void finalize();
private:
void waitForFinish();
class VariableControllerPrivate;
spimpl::unique_impl_ptr<VariableControllerPrivate> impl;
};
#endif // SCIQLOP_VARIABLECONTROLLER_H