-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtrainingtimer.h
55 lines (42 loc) · 1.15 KB
/
trainingtimer.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
#ifndef TRAININGTIMER_H
#define TRAININGTIMER_H
#include "handlestuff.h"
#include "trainingconfigdialog.h"
#include <QWidget>
#include <QTime>
#include <QTimer>
#include <QLabel>
namespace Ui {
class TrainingTimer;
}
class TrainingTimer : public QWidget
{
Q_OBJECT
public:
explicit TrainingTimer(QWidget *parent = nullptr);
~TrainingTimer();
bool loadPreset(const QString& path);
void setHandler(HandleStuff* stuff);
void setSavedPreset(MemoryPreset preset);
signals:
void memoryPresetChanged(MemoryPreset preset);
public slots:
void onSavestateLoaded();
void onMemoryRequestDone(quint64);
private slots:
void on_configPushButton_clicked();
void on_memoryCheckcheckBox_stateChanged(int arg1);
private:
Ui::TrainingTimer *ui;
QTimer timer;
quint64 oldAddressValue;
QDateTime startedTime;
HandleStuff* handler;
bool readyToTime;
bool firstMemoryTick;
bool firstLoad;
TrainingConfigDialog configDialog;
void onTimerTick();
void setLabelTime(QLabel* label);
};
#endif // TRAININGTIMER_H