Signapse
Gui.h
Go to the documentation of this file.
1#ifndef SIGNAPSE_GUI_H
2#define SIGNAPSE_GUI_H
3
4#include <QCoreApplication>
5#include "QtGeneratedGui.h"
6#include "stdlib.h"
7
8#include <opencv2/core.hpp>
9#include <opencv2/imgproc.hpp>
10#include <opencv2/imgcodecs.hpp>
11
12#include "ProgressBar.h"
13#include "SignapseUtils.h"
14#include "SceneCallback.h"
15
16#define testFolder "test/asl_alphabet_test/"
17
18/*
19 * A class to wrap the QT generated header file and handle GUI functionality.
20 * Inherits from QWidget and SceneCallback
21 */
22class Gui : public QWidget, public SceneCallback{
23 Q_OBJECT
24public:
25 virtual void NextScene(Scene next);
26 Gui(QMainWindow* win, Ui_MainWindow* ui_win);
27 void SetVisible(bool visible);
28 void SetTargetImage(int target);
29 void SetTargetImage(std::string target);
30 void SetTask(std::string newTask);
31 void buttonPressed();
32 void updateThreshold();
33
34
35private:
36 QMainWindow *widget;
37 Ui_MainWindow *ui;
38 ProgressBar progressBar;
39 void setDemoImage(cv::Mat img);
40 void setTaskText(std::string letter);
41 void makeConnections();
42 std::string currentTask;
43signals:
44 void progressChanged(int progress);
45
46};
47
48#endif
Definition: Gui.h:22
void buttonPressed()
Definition: Gui.cpp:63
void updateThreshold()
Definition: Gui.cpp:70
void SetTargetImage(int target)
virtual void NextScene(Scene next)
Definition: Gui.cpp:24
void SetVisible(bool visible)
Definition: Gui.cpp:47
void SetTask(std::string newTask)
Definition: Gui.cpp:99
Gui(QMainWindow *win, Ui_MainWindow *ui_win)
Definition: Gui.cpp:11
void progressChanged(int progress)
Struct Scene.
Definition: Scene.h:36