diff options
Diffstat (limited to 'mainwindow.h')
-rwxr-xr-x | mainwindow.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/mainwindow.h b/mainwindow.h new file mode 100755 index 0000000..8862cf5 --- /dev/null +++ b/mainwindow.h @@ -0,0 +1,43 @@ +#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+#include <QMainWindow>
+#include <string>
+#include "detectionalgorithm.h"
+#include <QThread>
+#include <QtCharts>
+
+QT_BEGIN_NAMESPACE
+namespace Ui { class MainWindow; }
+QT_END_NAMESPACE
+
+class MainWindow : public QMainWindow
+{
+ Q_OBJECT
+
+public:
+ MainWindow(QWidget *parent = nullptr);
+ ~MainWindow();
+
+signals:
+ void run();
+
+public slots:
+ //загрузка файла
+ void on_file_button_clicked();
+ //запуск алгоритма для анализа текста
+ void on_analysys_push_button_clicked();
+ void slotCancel();
+ void show_dialog();
+ void show_chart(QList<QPointF> pred_first, QList<QPointF> pred_second,
+ QList<QPointF> real_first, QList<QPointF> real_second);
+ void show_result(int rob, int ret);
+
+private:
+ Ui::MainWindow *ui;
+ QString target_doc;
+ DetectionAlgorithm *alg;
+ QThread *thread;
+ QWidget *chart_window;
+};
+#endif // MAINWINDOW_H
|