Debian Codegraph @

src/xmpsolve/mainqmlview.h

raw
1 #ifndef XMPSOLVE_MAINQMLVIEW_H
2 #define XMPSOLVE_MAINQMLVIEW_H
3
4 #include <QtQml/QQmlApplicationEngine>
5 #include <QQmlContext>
6 #include "rootsmodel.h"
7 #include "rootsrenderer.h"
8 #include "polynomialsolver.h"
9
10 namespace xmpsolve {
11
12 class MainQmlView : public QQmlApplicationEngine
13 {
14 Q_OBJECT
15 public:
16 explicit MainQmlView();
17
18 private:
19 /**
20 * @brief m_model is the model that holds the current approximations
21 * computed by MPSolve.
22 */
23 RootsModel *m_model;
24
25 /**
26 * @brief m_solver is the default polynomial solver that can be used
27 * to perform the computations.
28 */
29 PolynomialSolver m_solver;
30
31 /**
32 * @brief m_rootContext is the root Context of the current QQmlEngine
33 * embedded in the QQuickView.
34 *
35 * It is used in here to allow to the Qml Items an easy access to
36 * C++ objects.
37 */
38 QQmlContext *m_rootContext;
39
40 /**
41 * @brief inflateObjects loads the useful members of the View in the root Context
42 * of the QQmlEngine.
43 */
44 void inflateObjects();
45
46 void loadTypes();
47
48 signals:
49
50 public slots:
51
52 };
53
54 } // namespace xmpsolve
55
56 #endif // XMPSOLVE_MAINQMLVIEW_H