-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmainwindow.h
51 lines (43 loc) · 1.01 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
/* Nama File : mainwindow.h
Kelas interaksi utama Compress dan Decompress dengan Pengguna
*/
#pragma once
#include "about.h"
#include "compresswindow.h"
#include "extractwindow.h"
#include "huffmandecoding.h"
#include "huffmanencoding.h"
#include <QApplication>
#include <QFileDialog>
#include <QInputDialog>
#include <QMainWindow>
#include <QShortcut>
#include <QTextEdit>
#include <QTextStream>
#include <QElapsedTimer>
#include <stdint.h>
#include <QSettings>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow {
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
void Compress();
void Extract();
~MainWindow();
protected:
void changeEvent(QEvent *e);
private slots:
void showAbout();
void showLicense();
void changeLanguage(QAction *);
private:
void detectTranslations();
QSettings * m_settings;
QMap<QString, QList<QTranslator *>> m_translations;
Ui::MainWindow *ui;
CompressWindow *compressWindow = nullptr;
ExtractWindow *extractWindow = nullptr;
};