forked from zwpwjwtz/f3-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
58 lines (47 loc) · 1.25 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 <QTimer>
#include "f3_launcher.h"
#include "helpwindow.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void on_buttonCheck_clicked();
void on_buttonExit_clicked();
void on_buttonSelectPath_clicked();
void on_buttonHelp_clicked();
void on_timer_timeout();
void on_cui_status_changed(f3_launcher_status status);
void on_cui_error(f3_launcher_error_code errCode);
void on_buttonMode_clicked();
void on_buttonSelectDev_clicked();
void on_optionQuickTest_clicked();
void on_optionLessMem_clicked();
void on_optionDestructive_clicked();
void on_buttonMode_2_clicked();
private:
Ui::MainWindow *ui;
f3_launcher cui;
QTimer timer;
HelpWindow help;
bool checking;
int timerTarget;
int userMode;
QString mountPoint;
void showStatus(const QString& string);
void clearStatus();
void showCapacity(int value);
QString mountDisk(const QString& device);
bool unmountDisk(const QString& mountPoint);
protected:
void closeEvent(QCloseEvent *);
};
#endif // MAINWINDOW_H