Vagyojaka 5.5.7
Loading...
Searching...
No Matches
changespeakerdialog.h
Go to the documentation of this file.
1#pragma once
2
3#include <QDialog>
4#include "ui_changespeakerdialog.h"
5
6namespace Ui {
8}
9
10class ChangeSpeakerDialog : public QDialog
11{
12 Q_OBJECT
13
14public:
15 explicit ChangeSpeakerDialog(QWidget* parent = nullptr): QDialog(parent), ui(new Ui::ChangeSpeakerDialog)
16 {
17 ui->setupUi(this);
18 }
19
21
22 QString speaker() const
23 {
24 return ui->comboBox_speaker->currentText();
25 }
26
27 bool replaceAll() const
28 {
29 return ui->checkBox_changeAllOccurences->isChecked();
30 }
31
32 void addItems(const QStringList& speakers) const
33 {
34 ui->comboBox_speaker->addItems(speakers);
35 }
36
37 void setCurrentSpeaker(const QString& speakerName) const
38 {
39 ui->label_currentSpeaker->setText(speakerName);
40 }
41
42private:
43 Ui::ChangeSpeakerDialog* ui;
44};
Definition changespeakerdialog.h:11
ChangeSpeakerDialog(QWidget *parent=nullptr)
Definition changespeakerdialog.h:15
bool replaceAll() const
Definition changespeakerdialog.h:27
QString speaker() const
Definition changespeakerdialog.h:22
void setCurrentSpeaker(const QString &speakerName) const
Definition changespeakerdialog.h:37
void addItems(const QStringList &speakers) const
Definition changespeakerdialog.h:32
~ChangeSpeakerDialog()
Definition changespeakerdialog.h:20
Ui::ChangeSpeakerDialog * ui
Definition changespeakerdialog.h:43
Definition about.h:6