-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
87 lines (57 loc) · 1.63 KB
/
mainwindow.h
File metadata and controls
87 lines (57 loc) · 1.63 KB
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QListWidgetItem>
#include <NeuresetController.h>
#include "Battery.h"
#include "defs.h"
#include <QTimer>
#include <QtDebug>
#include <QtCharts>
#include <QChartView>
#include <QLineSeries>
#include <QFile>
#include <QTextStream>
#include <QDateTime>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
public slots:
void contactLost(bool);
void treatmentDelivered(bool);
void reset();
signals:
void disconnectSite(int eegId);
private slots:
void on_btn_pauseTreatement_clicked();
void on_btn_continueTreatment_clicked();
void on_btn_stopTreatement_clicked();
void on_btn_disconnectSite_clicked();
void on_btn_connectSites_clicked();
void on_widget_menuOpts_itemActivated(QListWidgetItem *item);
void on_btn_on_clicked();
void on_btn_off_clicked();
void on_btn_setDate_clicked();
//slot for recieving signals from controller
void updateTreatmentTime(const QString& time);
// slot to update the UI based on battery level
void updateBatteryLevel(int level);
// slot to handle battery depletion
void handleBatteryDepleted();
//update progress bar.
void updateProgressBar(int progress);
void on_btn_seeEEGWave_clicked();
private:
Ui::MainWindow *ui;
NeuresetController* controller = NeuresetController::getInstance();
Battery* batteryInstance;
void initializeBatteryStuff();
QString history;
};
#endif // MAINWINDOW_H