-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmainwindow.h
63 lines (54 loc) · 1.19 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
#include <QWidget>
#include <QLabel>
#include <QLayout>
#include <QTabWidget>
#include <QPushButton>
#include <fstream>
#include <iostream>
#include <QSlider>
#include "reader.h"
#include "renderer.h"
#include "classifier_thread.h"
#include "gyro_widget.h"
using namespace std;
class mainwindow : public QWidget
{
Q_OBJECT
public:
mainwindow(QWidget *parent = 0);
gyro_widget * gyro;
public slots:
void start_stop_reader();
void thread_do_stuff();
private slots:
void connect_emotiv();
void update_widgets();
void connect_will();
void connect_kat();
void commands();
private:
QHBoxLayout * main_layout;
void setup_page1();
void setup_page2();
void setup_mainwindow();
void do_action();
QPushButton * connect_will_button;
QPushButton * connect_kat_button;
QPushButton * start_stop_button;
QPushButton * toggle_print;
QPushButton * training_button;
QPushButton * reset_button;
QPushButton * commands_button;
QTabWidget * tabs;
QWidget * page1;
QWidget * page2;
QLabel * main_label;
Reader * reader;
Renderer * renderer;
classifier_thread * thread;
QTimer * timer;
bool playing;
bool training;
void train();
bool accept_commands;
};