-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainWindow.h
64 lines (57 loc) · 1.5 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QSettings>
#include <QSystemTrayIcon>
#include <QMenu>
#include <QTimer>
#include <QProcess>
#include <QTranslator>
#include <QCloseEvent>
#include <QFile>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
QSettings settings;
private slots:
void on_actionQuit_triggered();
void updateMinimizeTxt();
void on_actionMinimize_triggered();
void activated(QSystemTrayIcon::ActivationReason reason);
void init();
void closeEvent(QCloseEvent *event);
void startMiner();
void error( QProcess::ProcessError error );
void finished( int exitCode, QProcess::ExitStatus exitStatus );
void readyReadStandardError();
void readyReadStandardOutput();
void firstShow();
void updateTheInformations();
void on_actionEnglish_triggered();
void on_actionFran_ais_triggered();
void on_actionEspanol_triggered();
void updateTheLanguage();
void on_actionStart_minimized_triggered();
void on_bitcoinAddress_editingFinished();
private:
Ui::MainWindow *ui;
QMenu menu;
QSystemTrayIcon systray;
QTimer initTimer;
QTimer autorestartminer,restartminer;
QProcess miner;
double khs,khsMax;
QTranslator translator;
QStringList extraArgs;
QTimer updateTheInformationsTimer;
QFile log;
protected:
void changeEvent(QEvent *e);
};
#endif // MAINWINDOW_H