-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
49 lines (41 loc) · 1.11 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
// mainwindow.h
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QTableWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QSettings>
class MainWindow : public QMainWindow
{
Q_OBJECT
public slots:
void moveModUp();
void moveModDown();
void moveMod(bool moveUp);
void importBgyml();
void onModCheckBoxChanged(int state);
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots:
void browseOutputModsFolder();
void generatePatch();
void populateModsList();
void reloadModsList();
void renameIniFiles(int fromRow, int toRow);
void deleteMod();
private:
QTableWidget *modsListTable;
QLineEdit *outputModsFolderLineEdit;
QPushButton *browseButton;
QPushButton *moveUpButton;
QPushButton *moveDownButton;
bool userInitiatedMoveAction = false;
QSettings *appSettings;
QString settingsFilePath;
QStringList m_enabledModIDs;
int currentSelectedRow;
QWidget* cloneCheckboxWidget(QWidget* original);
};
#endif // MAINWINDOW_H