diff options
author | scratko <m@scratko.xyz> | 2025-08-03 02:28:24 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2025-08-03 02:56:54 +0300 |
commit | ef8a3f6c3e20178ee520f1e6bedbc866e3c9b490 (patch) | |
tree | cbdea78c5c54e5dda4a8eb9c8a0d42091a27448c /mainwindow.h | |
download | artifical-text-detection-master.tar.gz artifical-text-detection-master.tar.bz2 artifical-text-detection-master.zip |
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
|