This repository has been archived by the owner on Aug 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
mainwindow.h
95 lines (76 loc) · 2.97 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "qtreewidgetdraganddrop.h"
#include <QMainWindow>
#include <QTreeWidgetItem>
#include <QMessageBox>
#include <QPushButton>
#include <QMovie>
#include <QComboBox>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void bootStrap();
protected:
void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private:
Ui::MainWindow *ui;
QMovie *gifLoader = new QMovie("://res/misc/loader.gif");
QComboBox *userIDComboBox;
void makeWideMessageBox(QMessageBox *msgBox, quint32 width);
void disableAllControls();
const QString warningColor = "#ab4e52";
signals:
void sendButtonList(QList<QPushButton*> buttonList);
void pushButton_addScreenshots_clicked();
void pushButton_prepare_clicked();
void clearScreenshotPathsPool();
void clearState();
void sendSelectedIDs(QString selectedUserID, QString selectedGameID, quint32 jpegQuality, MainWindow *mainWindow);
void getSteamDir();
void sendUserDataPaths(QString steamDir);
void clearCopyingStatusLabels();
void writeVDF();
void getVDFStatus();
void sendSettings(QSize size, QPoint pos, QString userID, QString userIDComboBox, quint32 jpegQuality);
void sendScreenshotsSelected(QStringList screenshotsSelected);
void sendNeverOfferUpdate();
void sendNewlySelectedUserID(QString userID);
void sendTreeWidgetPointer(QTreeWidgetDragAndDrop *treeWidget);
public slots:
void addWidgetItemToScreenshotList(QTreeWidgetItem *item);
void resizeScreenshotListColumns();
void setWidgetsDisabled(QStringList list, bool disable);
void setProgressBarLength(quint32 length);
void locateSteamDir(QString steamDir);
void prepareScreenshots(quint32 addedLines);
void moveWindow(QSize geometry, QPoint moveToPoint);
void setComboBoxesCleared(QStringList list);
void setLabelsCleared(QStringList list);
void insertIntoComboBox(QString name, QStringList items);
void setLabelsOnMissingStuff(bool userDataMissing, QString vdfFilename);
void returnScreenshotsSelected(QString lastSelectedScreenshotDir);
void setProgressBarValue(quint32 value);
void deleteCopiedWidgetItem(QString path);
void setIndexOfComboBox(QString name, QString text);
void setLabelsText(QStringList list, QString text);
void setLabelsVisible(QStringList list, bool visible);
void setStatusLabelText(QString text, QString color);
void setDirStatusLabelsVisible(bool visible);
void offerUpdate(QString version, QString link);
void setJpegQualityValue(quint32 jpegQualityValue);
private slots:
void on_pushButton_addScreenshots_clicked();
void on_pushButton_clearQueue_clicked();
void on_pushButton_copyScreenshots_clicked();
void on_pushButton_prepare_clicked();
void on_pushButton_locateSteamDir_clicked();
void reactToComboBoxActivation(QString userID);
};
#endif // MAINWINDOW_H