-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtool.h
73 lines (48 loc) · 1.54 KB
/
tool.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
64
65
66
67
68
69
70
71
72
73
#pragma once
#include <QMainWindow>
#include "mediaplayer/mediaplayer.h"
#include "editor/texteditor.h"
#include<QThread>
#include<QtConcurrent/QtConcurrent>
#include "./transcriptgenerator.h"
QT_BEGIN_NAMESPACE
namespace Ui { class Tool; }
QT_END_NAMESPACE
class Tool final : public QMainWindow
{
Q_OBJECT
public:
explicit Tool(QWidget *parent = nullptr);
~Tool() final;
protected:
void keyPressEvent(QKeyEvent *event) override;
private slots:
void handleMediaPlayerError();
void createKeyboardShortcutGuide();
void changeFont();
void changeFontSize(int change);
void transliterationSelected(QAction* action);
void on_Upload_and_generate_Transcript_triggered();
// void on_editor_openTranscript_triggered();
void on_btn_translate_clicked();
void on_editor_openTranscript_triggered();
void on_add_video_clicked();
void on_open_transcript_clicked();
void on_new_transcript_clicked();
void on_save_transcript_clicked();
void on_save_as_transcript_clicked();
void on_load_a_custom_dict_clicked();
void on_get_PDF_clicked();
void on_decreseFontSize_clicked();
void on_increaseFontSize_clicked();
void on_toggleWordEditor_clicked();
void on_keyboard_shortcuts_clicked();
void on_fontComboBox_currentFontChanged(const QFont &f);
private:
void setFontForElements();
void setTransliterationLangCodes();
MediaPlayer *player = nullptr;
Ui::Tool *ui;
QFont font;
QMap<QString, QString> m_transliterationLang;
};