-
Notifications
You must be signed in to change notification settings - Fork 0
/
vgribbonwindow.h
57 lines (45 loc) · 1.56 KB
/
vgribbonwindow.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
#pragma once
#include <QMainWindow>
#include <opencv2/opencv.hpp>
//---------------------------------------qt-------------------------------------------
#include "QPixmap"
#include "QLabel"
#include "QPainter"
#include "QLabel"
#include "QTextCodec"
namespace Ui { class VGRibbonWindow; };
class VGRibbonWindow : public QMainWindow
{
Q_OBJECT
private:
explicit VGRibbonWindow(QWidget *parent = nullptr);
~VGRibbonWindow();
public :
static VGRibbonWindow *instance;
public:
static VGRibbonWindow *getInstance() {
if (instance) {
return instance;
} else {
instance = new VGRibbonWindow();
}
}
private slots:
void on_actionOpen_triggered();
void on_actionclassify_triggered();
private:
Ui::VGRibbonWindow *ui;
private:
void VGRibbonWindow::paintEvent(QPaintEvent *event);
void VGRibbonWindow::tool_selectFile(std::string title, const QString &p_filter, std::string nameFunc,
std::string &fileNamefull, std::string &filePath, QString &qFileNameFull) ;
void VGRibbonWindow::tool_selectFile_save_path(std::string title, const QString &p_filter, std::string nameFunc,
std::string &fileNamefull, std::string &filePath, QString &qFileNameFull);
void VGRibbonWindow::closeEvent(QCloseEvent *event) ;
public:
void VGRibbonWindow::printLogToTextBox(std::string words);
void VGRibbonWindow::printLogToTextBox_q(QString qWds) ;
public:
cv::Mat m_cv_img;
std::string m_fileDir;
};