##// END OF EJS Templates
Affects model to the Variable Widget
Affects model to the Variable Widget

File last commit:

r143:53848f21863d
r143:53848f21863d
Show More
VariableController.h
43 lines | 999 B | 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
#include <QLoggingCategory>
#include <QObject>
#include <Common/spimpl.h>
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
Adds Variable model in the Variable controller
r108 /**
* Creates a new variable
* @param name the name of the new variable
* @return the variable if it was created successfully, nullptr otherwise
*/
Variable *createVariable(const QString &name) noexcept;
Alexandre Leroux
Affects model to the Variable Widget
r143 VariableModel *variableModel() noexcept;
Alexandre Leroux
Inits variable controller and adds it to the SciQlop app
r106 public slots:
void initialize();
void finalize();
private:
void waitForFinish();
class VariableControllerPrivate;
spimpl::unique_impl_ptr<VariableControllerPrivate> impl;
};
#endif // SCIQLOP_VARIABLECONTROLLER_H