This repository has been archived by the owner on Nov 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
112 lines (98 loc) · 2.42 KB
/
mainwindow.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
//mainwindow.h
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <fstream>
#include <regex>
#include <QApplication>
#include <QPushButton>
#include <QLabel>
#include <QLineEdit>
#include <QGridLayout>
#include <QMainWindow>
#include <QComboBox>
#include <QRadioButton>
#include <QCommandLinkButton>
#include <QDialog>
#include <QMessageBox>
#include <QtWidgets/QMainWindow>
#include <QFileDialog>
#include <QFile>
#include <QString>
#include <QMenu>
#include <QMenuBar>
#include <QAction>
#include <QRegularExpression>
#include <QStatusBar>
#include <QProgressDialog>
#include <QTreeWidget>
#include <QStandardItemModel>
#include <QStandardItem>
#include <QStringListModel>
#include <QDesktopServices>
#include <QDebug>
#include <QListWidget>
#include <sstream>
#include <sys/stat.h>
#include<io.h>
#include <iostream>
using namespace std;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget* parent = 0);
~MainWindow() {
}
public:
map<string, string> dict;
QLineEdit* Path;
QPushButton* selectPath;
QLabel* text1;
QLabel* text2;
QLabel* text4;
QComboBox* Format;
QRadioButton* forge;
QRadioButton* recover;
QPushButton* execute;
QPushButton* fixFormat;
QGridLayout* layout;
QMainWindow* mainwindow;
QWidget* centerContent;
QMenuBar* menubar;
QMenu* more;
QAction* aboutInfo;
QAction* aboutQT;
QLabel* pathtext = new QLabel;
QLabel* Tip;
QTreeWidget* formatList;
QTreeWidgetItem* m_myItem;
int m_myCol;
QLineEdit* fName;
QLineEdit* fData;
QDialog* add;
public:
string getFilePath();
void getFormatData(map<string, string>& dict);
public slots:
void showAboutWindow();
void selectPathWindow();
void executeProcess();
int isFilePathFormatOK();
void showFixFormatWindow();
void showAboutQtWindow();
void showOpenUrl();
void showBiliBiliDetails();
void changeStatusText();
void save();
void treeWidgetOpenEditor(QTreeWidgetItem* item, int col);
void treeWidgetCloseEditor();
void addItemAction();
//void addToDict(QTreeWidgetItem*);
void addItemActionConfirm();
void delItem();
void updateCombobox();
void setFormatDisabled();
void setFormatEnabled();
static bool isFileExists(string& name);
};
#endif // MAINWINDOW_H