-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui_eod.h
76 lines (49 loc) · 1.39 KB
/
gui_eod.h
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#ifndef GUI_EOD_H
#define GUI_EOD_H
#include <QMainWindow>
#include <opencv2/opencv.hpp>
#include "ObjectBase.h"
#include "XML_highlighter.h"
#include <QFile>
#include <QElapsedTimer>
QT_BEGIN_NAMESPACE
namespace Ui { class gui_eod; }
QT_END_NAMESPACE
enum LOG_TYPES {LOG_INFO, LOG_WARN, LOG_ERROR};
class gui_eod : public QMainWindow
{
Q_OBJECT
public:
gui_eod(QWidget *parent = nullptr);
~gui_eod();
private slots:
void on_pb_openImage_clicked();
void on_pb_openBase_clicked();
void on_pb_detect_clicked();
void on_cb_check_all_stateChanged(int arg1);
void on_pb_refresh_clicked();
void on_l_image_customContextMenuRequested(const QPoint &pos);
void save_image();
void on_cb_check_all_complex_clicked();
void on_te_ob_editor_textChanged();
void on_pb_save_base_clicked();
void on_pb_save_base_2_clicked();
private:
Ui::gui_eod *ui;
eod::ObjectBase * objectBase = NULL;
QPixmap source_image;
QPixmap current_display_image;
void display_image(QPixmap& im);
void resizeEvent(QResizeEvent*);
void check_ready();
void from_base_to_list_view();
void display_log(QString log, LOG_TYPES type = LOG_INFO);
QString last_image_path;
QString last_base_path;
size_t seq;
XML_Highlighter *highlighter;
QElapsedTimer timer;
QFile* log_file;
QTextStream* log_stream;
};
#endif // GUI_EOD_H