aa70704700
Currently the captioning code is a bit intertwined with the UI, and the captioning is hard-coded towards microsoft speech API. This patch abstracts captions to allow other APIs to be implemented later.
22 lines
411 B
C++
22 lines
411 B
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
#include <memory>
|
|
|
|
#include "ui_captions.h"
|
|
|
|
class CaptionsDialog : public QDialog {
|
|
Q_OBJECT
|
|
|
|
std::unique_ptr<Ui_CaptionsDialog> ui;
|
|
|
|
public:
|
|
CaptionsDialog(QWidget *parent);
|
|
|
|
public slots:
|
|
void on_source_currentIndexChanged(int idx);
|
|
void on_enable_clicked(bool checked);
|
|
void on_language_currentIndexChanged(int idx);
|
|
void on_provider_currentIndexChanged(int idx);
|
|
};
|