0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00
obs-studio/UI/frontend-plugins/frontend-tools/captions.hpp
jp9000 aa70704700 frontend-plugins: Abstract captions
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.
2017-04-30 08:28:07 -07:00

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);
};