-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubtitlegui.h
35 lines (29 loc) · 920 Bytes
/
subtitlegui.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
#pragma once
#include <QtWidgets/QWidget>
#include "ui_subtitlegui.h"
#include "SettingClass.h"
#include "displayText.h"
#include "subtitleUpdater.h"
#include "historyPage.h"
class SubtitleGUI : public QWidget
{
Q_OBJECT
public:
SubtitleGUI(QWidget *parent = nullptr);
~SubtitleGUI();
private:
Ui::SubtitleGUIClass ui;
SettingClass* settingPage = nullptr;
historyPage* recordPage = nullptr;
displayText* textOutput;
subtitleUpdater* textUpdater;
bool recognitionIsRunning = false;
private slots:
void on_historyButton_clicked();
void on_settingButton_clicked();
void on_startButton_clicked();
void on_modeSwitch_clicked(bool);
void stop_recognition();
public slots:
void saveNewAPIConfig(std::string key, std::string region, std::string recognitionLanguage, std::string translationLanguage, bool recordState, int engineMode, bool showSingleLanguage);
};