Add ability to enable and disable cot per song to ui
Some checks failed
Build eismuliplexer for linux / Build (push) Has been cancelled
Some checks failed
Build eismuliplexer for linux / Build (push) Has been cancelled
This commit is contained in:
parent
970ed46892
commit
9d0dc6298c
6 changed files with 131 additions and 134 deletions
|
|
@ -5,21 +5,16 @@
|
|||
#include "ui_SongDialog.h"
|
||||
#include <QMessageBox>
|
||||
|
||||
SongDialog::SongDialog(QWidget *parent, const QString &caption, const QString &lyrics, const QString &vocalLanguage)
|
||||
SongDialog::SongDialog(QWidget *parent, const QString &caption, const QString &lyrics, const QString &vocalLanguage, bool cotEnabled)
|
||||
: QDialog(parent),
|
||||
ui(new Ui::SongDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
// Set initial values if provided
|
||||
if (!caption.isEmpty())
|
||||
{
|
||||
ui->captionEdit->setPlainText(caption);
|
||||
}
|
||||
if (!lyrics.isEmpty())
|
||||
{
|
||||
ui->lyricsEdit->setPlainText(lyrics);
|
||||
}
|
||||
ui->captionEdit->setPlainText(caption);
|
||||
ui->lyricsEdit->setPlainText(lyrics);
|
||||
|
||||
ui->checkBoxEnhanceCaption->setChecked(cotEnabled);
|
||||
|
||||
// Setup vocal language combo box
|
||||
ui->vocalLanguageCombo->addItem("--", ""); // Unset
|
||||
|
|
@ -110,6 +105,11 @@ QString SongDialog::getVocalLanguage() const
|
|||
return ui->vocalLanguageCombo->currentData().toString();
|
||||
}
|
||||
|
||||
bool SongDialog::getCotEnabled() const
|
||||
{
|
||||
return ui->checkBoxEnhanceCaption->isChecked();
|
||||
}
|
||||
|
||||
void SongDialog::on_okButton_clicked()
|
||||
{
|
||||
// Validate that caption is not empty
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue