-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSettingClass.h
More file actions
35 lines (27 loc) · 769 Bytes
/
SettingClass.h
File metadata and controls
35 lines (27 loc) · 769 Bytes
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 <QWidget>
#include "ui_SettingClass.h"
class SettingClass : public QWidget
{
Q_OBJECT
public:
SettingClass(QWidget *parent = nullptr);
~SettingClass();
void closeEvent(QCloseEvent* event);
void updateEngineMode(int mode);
private:
Ui::SettingClassClass ui;
QString key;
QString region;
QString detectionLanguage;
QString translationLanguage;
bool recordState;
int engineMode;
bool showSingleLanguage;
private slots:
void on_saveButton_clicked();
void checkInputChanges();
void on_engineModeComboBox_currentIndexChanged(int);
signals:
void updateAPIConfig(std::string key, std::string region, std::string recognitionLanguage, std::string translationLanguage, bool recordState, int engineMode, bool showSingleLanguage);
};