back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/mainwindow.h
blob: 8862cf50cdb878e4349b498c7139b94c1ef34e85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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