1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
3 | |
4 | #ifndef MAINWINDOW_H |
5 | #define MAINWINDOW_H |
6 | |
7 | #include <QMainWindow> |
8 | #include <QtQuick/QQuickView> |
9 | #include "ui_properties.h" |
10 | #include "ui_import.h" |
11 | |
12 | class SplineEditor; |
13 | |
14 | class MainWindow : public QMainWindow |
15 | { |
16 | Q_OBJECT |
17 | public: |
18 | explicit MainWindow(QWidget *parent = nullptr); |
19 | |
20 | void showQuickView(); |
21 | |
22 | public Q_SLOTS: |
23 | void textEditTextChanged(); |
24 | void importData(int result); |
25 | |
26 | protected: |
27 | void moveEvent(QMoveEvent *event) override; |
28 | void resizeEvent(QResizeEvent *event) override; |
29 | void closeEvent(QCloseEvent *event) override; |
30 | void initQml(); |
31 | |
32 | private: |
33 | QQuickView quickView; |
34 | QWidget *m_placeholder; |
35 | Ui_Properties ui_properties; |
36 | Ui_ImportDialog ui_import; |
37 | SplineEditor *m_splineEditor; |
38 | |
39 | }; |
40 | |
41 | #endif // MAINWINDOW_H |
42 | |