From ef8a3f6c3e20178ee520f1e6bedbc866e3c9b490 Mon Sep 17 00:00:00 2001 From: scratko Date: Sun, 3 Aug 2025 02:28:24 +0300 Subject: Initial commit: added source code, resources and README --- mainwindow.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 mainwindow.h (limited to 'mainwindow.h') 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 +#include +#include "detectionalgorithm.h" +#include +#include + +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 pred_first, QList pred_second, + QList real_first, QList 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 -- cgit v1.2.3