-
Notifications
You must be signed in to change notification settings - Fork 3
/
patternlabelui.h
51 lines (47 loc) · 1.5 KB
/
patternlabelui.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
#ifndef PATTERNLABELUI_H
#define PATTERNLABELUI_H
#include <QtWidgets/QMainWindow>
#include "ui_patternlabelui.h"
#include <QMutex>
#include <QProcess>
class XmlSaveThread;
class PatternWindow;
class PatternLabelUI : public QMainWindow
{
Q_OBJECT
public:
PatternLabelUI(QWidget *parent = 0);
~PatternLabelUI();
void requireSaveXml();
public slots:
void on_actionLoad_image_list_triggered();
void on_actionLoad_jd_image_list_triggered();
void on_actionLoad_xml_triggered();
void on_actionSave_xml_triggered();
void on_actionCollect_pattern_xmls_triggered();
void on_actionLoad_pattern_xml_triggered();
void on_actionUnique_patterns_triggered();
void on_actionSave_pattern_xml_triggered();
void on_pbPrevIndex_clicked();
void on_pbNextIndex_clicked();
void on_pbLastImageThisIndex_clicked();
void on_pbNextImageThisIndex_clicked();
void on_actionExport_training_data_triggered();
void on_actionRemove_other_triggered();
void pbGroupRbTypesClicked(int buttonID);
void on_sbCurIndex_valueChanged(int v);
void on_cbAddPatternMode_clicked();
void on_pbAddPattern_clicked();
void on_cbMatchByClothTypeOnly_clicked();
protected:
void setupRadioButtons();
void updateByIndex(int index, int imgId);
void closeEvent(QCloseEvent* ev);
private:
Ui::PatternLabelUIClass ui;
QMap<QString, QSharedPointer<QButtonGroup>> m_rbTypes;
bool m_updateSbIndex;
XmlSaveThread* m_xmlSaveThread;
QSharedPointer<PatternWindow> m_patternWindow;
};
#endif // PATTERNLABELUI_H