-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
88 lines (59 loc) · 1.95 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QCloseEvent>
#include <QListWidgetItem>
#include <QGraphicsScene>
#include <QToolButton>
#include <QFuture>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots:
void resizeEvent(QResizeEvent *event);
void closeEvent(QCloseEvent *event);
void on_listImages_itemClicked(QListWidgetItem *item);
void on_listImages_itemDoubleClicked(QListWidgetItem *item);
void on_listImages_currentRowChanged(int currentRow);
void on_actionQuit_triggered();
void on_actionAbout_Qt_triggered();
void on_actionAbout_triggered();
void on_actionLoad_Images_triggered();
void on_actionRemove_Selected_Images_triggered();
void on_actionRemove_All_Images_triggered();
void scenesClear();
void showScaledPixmap();
void on_actionConvert_Selected_Images_triggered();
void on_actionConvert_All_Images_triggered();
void convert();
void on_actionCancel_Converting_triggered();
void on_buttonFolder_clicked();
void on_radioSourceFolder_clicked();
void on_radioFolder_clicked();
private:
Ui::MainWindow *ui;
QStringList fileNamesCurrent, fileNames;
QVector<int> fileSizes;
QVector<int> tableColumnWidths;
QString defaultPath = "C:/Qt/Qt Projects/TEST_IMAGES/images100";
QGraphicsScene *scenePreview = new QGraphicsScene();
QGraphicsScene *sceneViewer = new QGraphicsScene();
QString extension, message;
QMap<QString, QString> formatMap;
int quality;
bool convertAll, cancelConverting;
QList<int> indexList;
QList<QToolButton *> allToolButtons;
int fileCount, fileCounter;
QString outputDir;
QString encoderHalicPath, decoderHalicPath;
quint64 totalInputSize, totalOutputSize, totalTime;
QFuture<void> future;
};
#endif // MAINWINDOW_H