-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmainwindow.h
37 lines (32 loc) · 887 Bytes
/
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
#pragma once
#include "ui_mainwindow.h"
#include <QMainWindow>
#include <QTimer>
#include <atomic>
#include <memory> //for std::unique_ptr
namespace Ui {
class MainWindow;
}
namespace lsl {
class stream_outlet;
}
struct TobiiResearchEyeTracker;
class MainWindow : public QMainWindow {
Q_OBJECT
public:
explicit MainWindow(QWidget *parent, const char *config_file);
~MainWindow() noexcept override;
std::unique_ptr<lsl::stream_outlet> gaze_stream;
private slots:
void closeEvent(QCloseEvent *ev) override;
void toggleRecording();
void refresh_eyetrackers();
private:
// function for loading / saving the config file
QString find_config_file(const char *filename);
void load_config(const QString &filename);
void save_config(const QString &filename);
std::unique_ptr<Ui::MainWindow> ui; // window pointer
TobiiResearchEyeTracker *current_tracker;
QTimer statusTimer;
};