File indexing completed on 2024-12-22 04:40:08
0001 /* 0002 SPDX-FileCopyrightText: 2017-2022 Mladen Milinkovic <max@smoothware.net> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "vobsubinputinitdialog.h" 0008 #include "ui_vobsubinputinitdialog.h" 0009 0010 using namespace SubtitleComposer; 0011 0012 VobSubInputInitDialog::VobSubInputInitDialog(QWidget *parent) : 0013 QDialog(parent), 0014 ui(new Ui::VobSubInputInitDialog) 0015 { 0016 ui->setupUi(this); 0017 } 0018 0019 VobSubInputInitDialog::~VobSubInputInitDialog() 0020 { 0021 delete ui; 0022 } 0023 0024 void 0025 VobSubInputInitDialog::streamListSet(const QStringList streams) 0026 { 0027 ui->comboStream->addItems(streams); 0028 } 0029 0030 int 0031 VobSubInputInitDialog::streamIndex() const 0032 { 0033 return ui->comboStream->currentIndex(); 0034 } 0035 0036 quint32 0037 VobSubInputInitDialog::postProcessingFlags() const 0038 { 0039 quint32 flags = 0; 0040 0041 if(ui->ppAposQuote->isChecked()) 0042 flags |= APOSTROPHE_TO_QUOTES; 0043 if(ui->ppSpacePunct->isChecked()) 0044 flags |= SPACE_PUNCTUATION; 0045 if(ui->ppSpaceNumber->isChecked()) 0046 flags |= SPACE_NUMBERS; 0047 if(ui->ppSpaceParen->isChecked()) 0048 flags |= SPACE_PARENTHESES; 0049 if(ui->ppCharsOCR->isChecked()) 0050 flags |= CHARS_OCR; 0051 0052 return flags; 0053 }