-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainwindow.h
58 lines (42 loc) · 1.12 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QFileDialog>
#include <QIntValidator>
#include <QtDebug>
#include <QString>
#include <QStringList>
#include <vector>
#include <string>
#include <unordered_map>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
std::vector <std::string> getCodeFileList() { return codeFileList; }
int getK() { return k; }
int getW() { return w; }
~MainWindow();
private slots:
void on_pushDir_clicked();
void on_pushStart_clicked();
void on_checkTweaks_stateChanged(int arg1);
void on_slider_k_valueChanged(int value);
void on_slider_w_valueChanged(int value);
void on_radio_Other_toggled(bool checked);
private:
Ui::MainWindow *ui;
void fillTextBrowser(QString dir);
void setTweaks();
void initializeComboBox();
void initializeExtensions();
std::vector <std::string> codeFileList;
std::unordered_map <std::string, QStringList> extensions;
std::string currExtension;
int k, w;
};
#endif // MAINWINDOW_H