| 1 | /***************************************************************************** |
| 2 | ** QNapi |
| 3 | ** Copyright (C) 2008-2017 Piotr KrzemiĆski <[email protected]> |
| 4 | ** |
| 5 | ** This program is free software; you can redistribute it and/or modify |
| 6 | ** it under the terms of the GNU General Public License as published by |
| 7 | ** the Free Software Foundation; either version 2 of the License, or |
| 8 | ** (at your option) any later version. |
| 9 | ** |
| 10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
| 11 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
| 12 | ** |
| 13 | *****************************************************************************/ |
| 14 | |
| 15 | #include "frmoptions.h"cxx . . $ `<file>/gui/src/forms/frmoptions.h`/ |
| 16 | |
| 17 | #include "config/qnapiconfig.h"cxx . . $ `<file>/libqnapi/src/config/qnapiconfig.h`/ |
| 18 | |
| 19 | #include "engines/napiprojektdownloadengine.h"cxx . . $ `<file>/libqnapi/src/engines/napiprojektdownloadengine.h`/ |
| 20 | #include "engines/napisy24downloadengine.h"cxx . . $ `<file>/libqnapi/src/engines/napisy24downloadengine.h`/ |
| 21 | #include "engines/opensubtitlesdownloadengine.h"cxx . . $ `<file>/libqnapi/src/engines/opensubtitlesdownloadengine.h`/ |
| 22 | |
| 23 | #include "forms/frmnapiprojektconfig.h"cxx . . $ `<file>/gui/src/forms/frmnapiprojektconfig.h`/ |
| 24 | #include "forms/frmnapisy24config.h"cxx . . $ `<file>/gui/src/forms/frmnapisy24config.h`/ |
| 25 | #include "forms/frmopensubtitlesconfig.h"cxx . . $ `<file>/gui/src/forms/frmopensubtitlesconfig.h`/ |
| 26 | |
| 27 | #include "libqnapi.h"cxx . . $ `<file>/libqnapi/src/libqnapi.h`/ |
| 28 | |
| 29 | #include <QLocale> |
| 30 | |
| 31 | #ifdef Q_OS_MAC |
| 32 | #include "utils/infoplistdockicon.h" |
| 33 | #endif |
| 34 | |
| 35 | frmOptionscxx . . $ frmOptions#::frmOptionscxx . . $ frmOptions#frmOptions(872e7b0c281abd8d).(QWidgetcxx . . $ QWidget# *parent, Qtcxx . . $ Qt/::WindowFlagscxx . . $ Qt/WindowFlags# f) |
| 36 | : QDialogcxx . . $ QDialog#QDialog(872e7b0c281abd8d).(parent, f), |
| 37 | subtitleFormatsRegistrycxx . . $ frmOptions#subtitleFormatsRegistry.(LibQNapicxx . . $ LibQNapi#::subtitleFormatsRegistrycxx . . $ LibQNapi#subtitleFormatsRegistry(973e1e8926cdb00d).()), |
| 38 | enginesRegistrycxx . . $ frmOptions#enginesRegistry.(LibQNapicxx . . $ LibQNapi#::subtitleDownloadEngineRegistrycxx . . $ LibQNapi#subtitleDownloadEngineRegistry(c62bee4899d08222).()) { |
| 39 | uicxx . . $ frmOptions#ui..setupUicxx . . $ Ui_frmOptions#setupUi(d194de0c0f68c28b).(this); |
| 40 | |
| 41 | uicxx . . $ frmOptions#ui..cbUiLanguagecxx . . $ Ui_frmOptions#cbUiLanguage.->setItemDatacxx . . $ QComboBox#setItemData(50e2029a20136d85).(0, ""cxx . . $ QVariant#QVariant(85c52e162fed56f9)., Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole.); |
| 42 | uicxx . . $ frmOptions#ui..cbUiLanguagecxx . . $ Ui_frmOptions#cbUiLanguage.->setItemDatacxx . . $ QComboBox#setItemData(50e2029a20136d85).(1, QLocalecxx . . $ QVariant#QVariant(3520e46b33348bf6).(QLocalecxx . . $ QLocale#::Englishcxx . . $ QLocale#English.).namecxx . . $ QLocale#name(6ef7b6c27b00b43d).(), |
| 43 | Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole.); |
| 44 | uicxx . . $ frmOptions#ui..cbUiLanguagecxx . . $ Ui_frmOptions#cbUiLanguage.->setItemDatacxx . . $ QComboBox#setItemData(50e2029a20136d85).(2, QLocalecxx . . $ QVariant#QVariant(3520e46b33348bf6).(QLocalecxx . . $ QLocale#::Italiancxx . . $ QLocale#Italian.).namecxx . . $ QLocale#name(6ef7b6c27b00b43d).(), |
| 45 | Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole.); |
| 46 | uicxx . . $ frmOptions#ui..cbUiLanguagecxx . . $ Ui_frmOptions#cbUiLanguage.->setItemDatacxx . . $ QComboBox#setItemData(50e2029a20136d85).(3, QLocalecxx . . $ QVariant#QVariant(3520e46b33348bf6).(QLocalecxx . . $ QLocale#::Polishcxx . . $ QLocale#Polish.).namecxx . . $ QLocale#name(6ef7b6c27b00b43d).(), |
| 47 | Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole.); |
| 48 | uicxx . . $ frmOptions#ui..lbUiLangChangeNoticecxx . . $ Ui_frmOptions#lbUiLangChangeNotice.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 49 | |
| 50 | #ifdef Q_OS_MAC |
| 51 | ui.cbQuietBatch->hide(); |
| 52 | #endif |
| 53 | |
| 54 | #ifndef Q_OS_MAC |
| 55 | uicxx . . $ frmOptions#ui..cbShowDockIconcxx . . $ Ui_frmOptions#cbShowDockIcon.->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).(); |
| 56 | #endif |
| 57 | |
| 58 | #ifdef Q_OS_WIN |
| 59 | ui.cbChangePermissions->hide(); |
| 60 | ui.sbOPerm->hide(); |
| 61 | ui.sbGPerm->hide(); |
| 62 | ui.sbUPerm->hide(); |
| 63 | #endif |
| 64 | |
| 65 | QStringcxx . . $ QString# tlcodecxx . . $ QString#QString(49f6e7a06ebc5aa8).; |
| 66 | uicxx . . $ frmOptions#ui..cbLangBackupcxx . . $ Ui_frmOptions#cbLangBackup.->addItemcxx . . $ QComboBox#addItem(1c60a90c724e6bfb).("None"cxx . . $ QString#QString(85c52e162fed56f9)., QVariantcxx . . $ QVariant#QVariant(85c52e162fed56f9).("")); |
| 67 | foreachcxx . . $ `<external>/15045578679651060896/qglobal.h:1145:13`! (QString lang, SubtitleLanguage("").listLanguages()) { |
| 68 | tlcode =cxx . . $ QString#`operator=`(7b76e6691bca1027). SubtitleLanguagecxx . . $ SubtitleLanguage#(langcxx . . $ QString#QString(3520e46b33348bf6).).toTwoLettercxx . . $ SubtitleLanguage#toTwoLetter(4365c3963150523e).(); |
| 69 | uicxx . . $ frmOptions#ui..cbLangcxx . . $ Ui_frmOptions#cbLang.->addItemcxx . . $ QComboBox#addItem(9ae2da45ae734932).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(QStringcxx . . $ QString#QString(85c52e162fed56f9).(":/languages/%1.png").argcxx . . $ QString#arg(bc823072288cbbb5).(tlcode)), lang, |
| 70 | QVariantcxx . . $ QVariant#QVariant(3520e46b33348bf6).(tlcode)); |
| 71 | uicxx . . $ frmOptions#ui..cbLangBackupcxx . . $ Ui_frmOptions#cbLangBackup.->addItemcxx . . $ QComboBox#addItem(9ae2da45ae734932).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(QStringcxx . . $ QString#QString(85c52e162fed56f9).(":/languages/%1.png").argcxx . . $ QString#arg(bc823072288cbbb5).(tlcode)), |
| 72 | lang, QVariantcxx . . $ QVariant#QVariant(3520e46b33348bf6).(tlcode)); |
| 73 | } |
| 74 | |
| 75 | setAttributecxx . . $ QWidget#setAttribute(52fc7bf162518f7f).(Qtcxx . . $ Qt/::WA_QuitOnClosecxx . . $ Qt/WA_QuitOnClose., false); |
| 76 | |
| 77 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ frmOptions#ui..le7zPathcxx . . $ Ui_frmOptions#le7zPath., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(textChanged(const QString &)), this, |
| 78 | SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(le7zPathChanged())); |
| 79 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ frmOptions#ui..pb7zPathSelectcxx . . $ Ui_frmOptions#pb7zPathSelect., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(select7zPath())); |
| 80 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ frmOptions#ui..leTmpPathcxx . . $ Ui_frmOptions#leTmpPath., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(textChanged(const QString &)), this, |
| 81 | SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(leTmpPathChanged())); |
| 82 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ frmOptions#ui..pbTmpPathSelectcxx . . $ Ui_frmOptions#pbTmpPathSelect., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(selectTmpPath())); |
| 83 | |
| 84 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(itemSelectionChanged()), this, |
| 85 | SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(twEnginesSelectionChanged())); |
| 86 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(itemChanged(QTableWidgetItem *)), this, |
| 87 | SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(twEnginesItemChanged(QTableWidgetItem *))); |
| 88 | |
| 89 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ frmOptions#ui..pbMoveUpcxx . . $ Ui_frmOptions#pbMoveUp., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(pbMoveUpClicked())); |
| 90 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ frmOptions#ui..pbMoveDowncxx . . $ Ui_frmOptions#pbMoveDown., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(pbMoveDownClicked())); |
| 91 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ frmOptions#ui..pbEngineConfcxx . . $ Ui_frmOptions#pbEngineConf., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, |
| 92 | SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(pbEngineConfClicked())); |
| 93 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ frmOptions#ui..pbEngineInfocxx . . $ Ui_frmOptions#pbEngineInfo., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, |
| 94 | SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(pbEngineInfoClicked())); |
| 95 | |
| 96 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ frmOptions#ui..cbSubFormatcxx . . $ Ui_frmOptions#cbSubFormat., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(currentIndexChanged(int)), this, |
| 97 | SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(subFormatChanged(int))); |
| 98 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ frmOptions#ui..cbEncodingMethodcxx . . $ Ui_frmOptions#cbEncodingMethod., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(currentIndexChanged(int)), this, |
| 99 | SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(encodingMethodChanged(int))); |
| 100 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ frmOptions#ui..cbAutoDetectEncodingcxx . . $ Ui_frmOptions#cbAutoDetectEncoding., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, |
| 101 | SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(autoDetectEncodingClicked())); |
| 102 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ frmOptions#ui..cbShowAllEncodingscxx . . $ Ui_frmOptions#cbShowAllEncodings., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, |
| 103 | SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(showAllEncodingsClicked())); |
| 104 | |
| 105 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ frmOptions#ui..pbRestoreDefaultscxx . . $ Ui_frmOptions#pbRestoreDefaults., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, |
| 106 | SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(restoreDefaults())); |
| 107 | |
| 108 | showAllEncodingscxx . . $ frmOptions#showAllEncodings(49f6e7a06ebc5aa8).(); |
| 109 | |
| 110 | foreachcxx . . $ `<external>/15045578679651060896/qglobal.h:1145:13`! (QString format, subtitleFormatsRegistry->listFormatNames()) { |
| 111 | uicxx . . $ frmOptions#ui..cbSubFormatcxx . . $ Ui_frmOptions#cbSubFormat.->addItemcxx . . $ QComboBox#addItem(1c60a90c724e6bfb).(format); |
| 112 | } |
| 113 | |
| 114 | QRectcxx . . $ QRect# position = frameGeometrycxx . . $ QWidget#frameGeometry(d857385bac04cbf7).(); |
| 115 | position.moveCentercxx . . $ QRect#moveCenter(4f9e9534be445c03).(QDesktopWidgetcxx . . $ QDesktopWidget#QDesktopWidget(49f6e7a06ebc5aa8).().availableGeometrycxx . . $ QDesktopWidget#availableGeometry(b336661e7197c5cf).().centercxx . . $ QRect#center(75d69cfbd3c4b2dd).()); |
| 116 | movecxx . . $ QWidget#move(4f9e9534be445c03).(position.topLeftcxx . . $ QRect#topLeft(75d69cfbd3c4b2dd).()); |
| 117 | } |
| 118 | |
| 119 | frmOptionscxx . . $ frmOptions#::~cxx . . $ frmOptions#`~frmOptions`(49f6e7a06ebc5aa8).frmOptionscxx . . $ frmOptions#() {} |
| 120 | |
| 121 | void frmOptionscxx . . $ frmOptions#::le7zPathChangedcxx . . $ frmOptions#le7zPathChanged(49f6e7a06ebc5aa8).() { |
| 122 | QFileInfocxx . . $ QFileInfo# fcxx . . $ QFileInfo#QFileInfo(3520e46b33348bf6).(uicxx . . $ frmOptions#ui..le7zPathcxx . . $ Ui_frmOptions#le7zPath.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()); |
| 123 | uicxx . . $ frmOptions#ui..le7zPathcxx . . $ Ui_frmOptions#le7zPath.->setStyleSheetcxx . . $ QWidget#setStyleSheet(3520e46b33348bf6).(fcxx . . $ QString#QString(85c52e162fed56f9)..isFilecxx . . $ QFileInfo#isFile(50ce9a9e25b4a850).() && f.isExecutablecxx . . $ QFileInfo#isExecutable(50ce9a9e25b4a850).() ? "" |
| 124 | : "color:red;"); |
| 125 | } |
| 126 | |
| 127 | void frmOptionscxx . . $ frmOptions#::select7zPathcxx . . $ frmOptions#select7zPath(49f6e7a06ebc5aa8).() { |
| 128 | QStringcxx . . $ QString# path7z = QFileDialogcxx . . $ QString#QString(e1217c004a86c950).::getOpenFileNamecxx . . $ QFileDialog#getOpenFileName(a6b29be4bec65236).( |
| 129 | this, trcxx . . $ frmOptions#tr(75d9f1c324b4579d).("Specify the path for 7z executable"), |
| 130 | QFileInfocxx . . $ QFileInfo#(uicxx . . $ frmOptions#ui..le7zPathcxx . . $ Ui_frmOptions#le7zPath.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()).pathcxx . . $ QFileInfo#path(6ef7b6c27b00b43d).()); |
| 131 | if (!path7z.isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) { |
| 132 | if (!QFileInfocxx . . $ QFileInfo#(path7z).isExecutablecxx . . $ QFileInfo#isExecutable(50ce9a9e25b4a850).()) |
| 133 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).( |
| 134 | this, trcxx . . $ frmOptions#tr(75d9f1c324b4579d).("Invalid path"), |
| 135 | trcxx . . $ frmOptions#tr(75d9f1c324b4579d).("Defined path to 7z executable is invalid. If you can not " |
| 136 | "locate 7z executable, try installing p7zip-full package.")); |
| 137 | else |
| 138 | uicxx . . $ frmOptions#ui..le7zPathcxx . . $ Ui_frmOptions#le7zPath.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(path7z); |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | void frmOptionscxx . . $ frmOptions#::leTmpPathChangedcxx . . $ frmOptions#leTmpPathChanged(49f6e7a06ebc5aa8).() { |
| 143 | QFileInfocxx . . $ QFileInfo# fcxx . . $ QFileInfo#QFileInfo(3520e46b33348bf6).(uicxx . . $ frmOptions#ui..leTmpPathcxx . . $ Ui_frmOptions#leTmpPath.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()); |
| 144 | uicxx . . $ frmOptions#ui..leTmpPathcxx . . $ Ui_frmOptions#leTmpPath.->setStyleSheetcxx . . $ QWidget#setStyleSheet(3520e46b33348bf6).(fcxx . . $ QString#QString(85c52e162fed56f9)..isDircxx . . $ QFileInfo#isDir(50ce9a9e25b4a850).() && f.isWritablecxx . . $ QFileInfo#isWritable(50ce9a9e25b4a850).() ? "" : "color:red;"); |
| 145 | } |
| 146 | |
| 147 | void frmOptionscxx . . $ frmOptions#::selectTmpPathcxx . . $ frmOptions#selectTmpPath(49f6e7a06ebc5aa8).() { |
| 148 | QStringcxx . . $ QString# tmpDir = QFileDialogcxx . . $ QString#QString(e1217c004a86c950).::getExistingDirectorycxx . . $ QFileDialog#getExistingDirectory(a1339ef2a1b3555a).( |
| 149 | this, trcxx . . $ frmOptions#tr(75d9f1c324b4579d).("Specify temporary directory"), |
| 150 | QFileInfocxx . . $ QFileInfo#(uicxx . . $ frmOptions#ui..leTmpPathcxx . . $ Ui_frmOptions#leTmpPath.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()).pathcxx . . $ QFileInfo#path(6ef7b6c27b00b43d).(), |
| 151 | QFileDialogcxx . . $ QFileDialog#::ShowDirsOnlycxx . . $ QFileDialog#ShowDirsOnly. |cxx . . $ `operator|`(111e3d57d9caabd5). QFileDialogcxx . . $ QFileDialog#::DontResolveSymlinkscxx . . $ QFileDialog#DontResolveSymlinks.); |
| 152 | if (!tmpDir.isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) uicxx . . $ frmOptions#ui..leTmpPathcxx . . $ Ui_frmOptions#leTmpPath.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(QFileInfocxx . . $ QFileInfo#(tmpDir).pathcxx . . $ QFileInfo#path(6ef7b6c27b00b43d).()); |
| 153 | } |
| 154 | |
| 155 | void frmOptionscxx . . $ frmOptions#::twEnginesSelectionChangedcxx . . $ frmOptions#twEnginesSelectionChanged(49f6e7a06ebc5aa8).() { |
| 156 | if (uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->selectedItemscxx . . $ QTableWidget#selectedItems(484d219719baa840).().sizecxx . . $ QList#size(455f465bc33b4cdf).() < 1) return; |
| 157 | |
| 158 | int currentRow = uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->rowcxx . . $ QTableWidget#row(af476ffb2b32b618).(uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->selectedItemscxx . . $ QTableWidget#selectedItems(484d219719baa840).().atcxx . . $ QList#at(e2681f9bb6b2f357).(0)); |
| 159 | |
| 160 | uicxx . . $ frmOptions#ui..pbMoveUpcxx . . $ Ui_frmOptions#pbMoveUp.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(currentRow > 0); |
| 161 | uicxx . . $ frmOptions#ui..pbMoveDowncxx . . $ Ui_frmOptions#pbMoveDown.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(currentRow < uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->rowCountcxx . . $ QTableWidget#rowCount(455f465bc33b4cdf).() - 1); |
| 162 | uicxx . . $ frmOptions#ui..pbEngineConfcxx . . $ Ui_frmOptions#pbEngineConf.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(true); |
| 163 | uicxx . . $ frmOptions#ui..pbEngineInfocxx . . $ Ui_frmOptions#pbEngineInfo.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(true); |
| 164 | } |
| 165 | |
| 166 | void frmOptionscxx . . $ frmOptions#::twEnginesItemChangedcxx . . $ frmOptions#twEnginesItemChanged(554f3a74aaf98b06).(QTableWidgetItemcxx . . $ QTableWidgetItem# *item) { |
| 167 | bool foundActive = false; |
| 168 | |
| 169 | for (int i = 0; i < uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->rowCountcxx . . $ QTableWidget#rowCount(455f465bc33b4cdf).(); ++i) { |
| 170 | if (!uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->itemcxx . . $ QTableWidget#item(e78ccbf9c1467f73).(i, 0)) { |
| 171 | return; |
| 172 | } |
| 173 | |
| 174 | if (uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->itemcxx . . $ QTableWidget#item(e78ccbf9c1467f73).(i, 0)->checkStatecxx . . $ QTableWidgetItem#checkState(94511a6609c7e4a7).() == Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked.) { |
| 175 | foundActive = true; |
| 176 | break; |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | if (!foundActive) { |
| 181 | item->setCheckStatecxx . . $ QTableWidgetItem#setCheckState(537692883700039).(Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked.); |
| 182 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).( |
| 183 | this, trcxx . . $ frmOptions#tr(75d9f1c324b4579d).("Warning"), |
| 184 | trcxx . . $ frmOptions#tr(75d9f1c324b4579d).("At least one subtitles engine must remain active!")); |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | void frmOptionscxx . . $ frmOptions#::pbMoveUpClickedcxx . . $ frmOptions#pbMoveUpClicked(49f6e7a06ebc5aa8).() { |
| 189 | int currentRow = uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->rowcxx . . $ QTableWidget#row(af476ffb2b32b618).(uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->selectedItemscxx . . $ QTableWidget#selectedItems(484d219719baa840).().atcxx . . $ QList#at(e2681f9bb6b2f357).(0)); |
| 190 | |
| 191 | QTableWidgetItemcxx . . $ QTableWidgetItem# *current, *above; |
| 192 | current = uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->itemcxx . . $ QTableWidget#item(e78ccbf9c1467f73).(currentRow, 0); |
| 193 | above = uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->itemcxx . . $ QTableWidget#item(e78ccbf9c1467f73).(currentRow - 1, 0); |
| 194 | |
| 195 | QTableWidgetItemcxx . . $ QTableWidgetItem# tmp = *cxx . . $ QTableWidgetItem#QTableWidgetItem(8fa7f4ae3821b61a).current; |
| 196 | *current =cxx . . $ QTableWidgetItem#`operator=`(51ee9eff8ffc690). *above; |
| 197 | *above =cxx . . $ QTableWidgetItem#`operator=`(51ee9eff8ffc690). tmp; |
| 198 | |
| 199 | uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->selectRowcxx . . $ QTableView#selectRow(d4f767463ce0a6b3).(currentRow - 1); |
| 200 | } |
| 201 | |
| 202 | void frmOptionscxx . . $ frmOptions#::pbMoveDownClickedcxx . . $ frmOptions#pbMoveDownClicked(49f6e7a06ebc5aa8).() { |
| 203 | int currentRow = uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->rowcxx . . $ QTableWidget#row(af476ffb2b32b618).(uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->selectedItemscxx . . $ QTableWidget#selectedItems(484d219719baa840).().atcxx . . $ QList#at(e2681f9bb6b2f357).(0)); |
| 204 | |
| 205 | QTableWidgetItemcxx . . $ QTableWidgetItem# *current, *below; |
| 206 | current = uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->itemcxx . . $ QTableWidget#item(e78ccbf9c1467f73).(currentRow, 0); |
| 207 | below = uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->itemcxx . . $ QTableWidget#item(e78ccbf9c1467f73).(currentRow + 1, 0); |
| 208 | |
| 209 | QTableWidgetItemcxx . . $ QTableWidgetItem# tmp = *cxx . . $ QTableWidgetItem#QTableWidgetItem(8fa7f4ae3821b61a).current; |
| 210 | *current =cxx . . $ QTableWidgetItem#`operator=`(51ee9eff8ffc690). *below; |
| 211 | *below =cxx . . $ QTableWidgetItem#`operator=`(51ee9eff8ffc690). tmp; |
| 212 | |
| 213 | uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->selectRowcxx . . $ QTableView#selectRow(d4f767463ce0a6b3).(currentRow + 1); |
| 214 | } |
| 215 | |
| 216 | void frmOptionscxx . . $ frmOptions#::pbEngineConfClickedcxx . . $ frmOptions#pbEngineConfClicked(49f6e7a06ebc5aa8).() { |
| 217 | QStringcxx . . $ QString# engineName = uicxx . . $ QString#QString(e1217c004a86c950)..twEnginescxx . . $ Ui_frmOptions#twEngines.->selectedItemscxx . . $ QTableWidget#selectedItems(484d219719baa840).().atcxx . . $ QList#at(e2681f9bb6b2f357).(0)->textcxx . . $ QTableWidgetItem#text(6ef7b6c27b00b43d).(); |
| 218 | |
| 219 | const QNapiConfigcxx . . $ QNapiConfig# config = LibQNapicxx . . $ LibQNapi#::loadConfigcxx . . $ LibQNapi#loadConfig(915c3b8a74517b7e).(); |
| 220 | auto enginesConfig = configcxx . . $ QMap#QMap(2d6704d7835a813f)..enginesConfigcxx . . $ QNapiConfig#enginesConfig(489b69d55339f0a1).(); |
| 221 | |
| 222 | EngineConfigcxx . . $ EngineConfig# engineCfg = enginesConfig[cxx . . $ QMap#`operator[]`(bbd415b616967878).engineName]; |
| 223 | |
| 224 | if (engineName ==cxx . . $ `operator==`(edf9e4f73813982f). NapiProjektDownloadEnginecxx . . $ NapiProjektDownloadEngine#::metadatacxx . . $ NapiProjektDownloadEngine#metadata..namecxx . . $ SubtitleDownloadEngineMetadata#name(6ef7b6c27b00b43d).()) { |
| 225 | frmNapiProjektConfigcxx . . $ frmNapiProjektConfig# configDialogcxx . . $ frmNapiProjektConfig#frmNapiProjektConfig(1e9734ae4de8c102).(engineCfg, this); |
| 226 | if (configDialog.execcxx . . $ QDialog#exec(b126dc7c1de90089).() == QDialogcxx . . $ QDialog#::Acceptedcxx . . $ QDialog#Accepted.) { |
| 227 | engineCfg =cxx . . $ EngineConfig#`operator=`(b85823a7260a05ba). configDialog.getConfigcxx . . $ frmNapiProjektConfig#getConfig(bbd16875014b2b7e).(); |
| 228 | } |
| 229 | } else if (engineName ==cxx . . $ `operator==`(edf9e4f73813982f). OpenSubtitlesDownloadEnginecxx . . $ OpenSubtitlesDownloadEngine#::metadatacxx . . $ OpenSubtitlesDownloadEngine#metadata..namecxx . . $ SubtitleDownloadEngineMetadata#name(6ef7b6c27b00b43d).()) { |
| 230 | frmOpenSubtitlesConfigcxx . . $ frmOpenSubtitlesConfig# configDialogcxx . . $ frmOpenSubtitlesConfig#frmOpenSubtitlesConfig(1e9734ae4de8c102).(engineCfg, this); |
| 231 | if (configDialog.execcxx . . $ QDialog#exec(b126dc7c1de90089).() == QDialogcxx . . $ QDialog#::Acceptedcxx . . $ QDialog#Accepted.) { |
| 232 | engineCfg =cxx . . $ EngineConfig#`operator=`(b85823a7260a05ba). configDialog.getConfigcxx . . $ frmOpenSubtitlesConfig#getConfig(bbd16875014b2b7e).(); |
| 233 | } |
| 234 | } else if (engineName ==cxx . . $ `operator==`(edf9e4f73813982f). Napisy24DownloadEnginecxx . . $ Napisy24DownloadEngine#::metadatacxx . . $ Napisy24DownloadEngine#metadata..namecxx . . $ SubtitleDownloadEngineMetadata#name(6ef7b6c27b00b43d).()) { |
| 235 | frmNapisy24Configcxx . . $ frmNapisy24Config# configDialogcxx . . $ frmNapisy24Config#frmNapisy24Config(1e9734ae4de8c102).(engineCfg, this); |
| 236 | if (configDialog.execcxx . . $ QDialog#exec(b126dc7c1de90089).() == QDialogcxx . . $ QDialog#::Acceptedcxx . . $ QDialog#Accepted.) { |
| 237 | engineCfg =cxx . . $ EngineConfig#`operator=`(b85823a7260a05ba). configDialog.getConfigcxx . . $ frmNapisy24Config#getConfig(bbd16875014b2b7e).(); |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | enginesConfig[cxx . . $ QMap#`operator[]`(bbd415b616967878).engineName] =cxx . . $ EngineConfig#`operator=`(bb8f522a4c7a1efc). engineCfg; |
| 242 | |
| 243 | LibQNapicxx . . $ LibQNapi#::writeConfigcxx . . $ LibQNapi#writeConfig(64b8fa5c398f1122).(config.setEnginesConfigcxx . . $ QNapiConfig#setEnginesConfig(93c9192d7554579e).(enginesConfig)); |
| 244 | } |
| 245 | |
| 246 | void frmOptionscxx . . $ frmOptions#::pbEngineInfoClickedcxx . . $ frmOptions#pbEngineInfoClicked(49f6e7a06ebc5aa8).() { |
| 247 | QStringcxx . . $ QString# engineName = uicxx . . $ QString#QString(e1217c004a86c950)..twEnginescxx . . $ Ui_frmOptions#twEngines.->selectedItemscxx . . $ QTableWidget#selectedItems(484d219719baa840).().atcxx . . $ QList#at(e2681f9bb6b2f357).(0)->textcxx . . $ QTableWidgetItem#text(6ef7b6c27b00b43d).(); |
| 248 | QStringcxx . . $ QString# engineDescription = |
| 249 | enginesRegistrycxx . . $ QString#QString(e1217c004a86c950).->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).engineMetadatacxx . . $ SubtitleDownloadEnginesRegistry#engineMetadata(b33a41f6a1dd084a).(engineName).descriptioncxx . . $ SubtitleDownloadEngineMetadata#description(6ef7b6c27b00b43d).(); |
| 250 | |
| 251 | QMessageBoxcxx . . $ QMessageBox#::informationcxx . . $ QMessageBox#information(a9e3742e6f7b4147).(this, trcxx . . $ frmOptions#tr(75d9f1c324b4579d).("%1 subtitles engine info").argcxx . . $ QString#arg(bc823072288cbbb5).(engineName), |
| 252 | engineDescription); |
| 253 | } |
| 254 | |
| 255 | void frmOptionscxx . . $ frmOptions#::subFormatChangedcxx . . $ frmOptions#subFormatChanged(d4f767463ce0a6b3).(int format) { |
| 256 | if (format == 0) { |
| 257 | uicxx . . $ frmOptions#ui..cbSubExtensioncxx . . $ Ui_frmOptions#cbSubExtension.->setItemTextcxx . . $ QComboBox#setItemText(4b11a7293b4ed91c).(0, trcxx . . $ frmOptions#tr(75d9f1c324b4579d).("Default")); |
| 258 | } else { |
| 259 | QStringcxx . . $ QString# targetFormatName = uicxx . . $ QString#QString(e1217c004a86c950)..cbSubFormatcxx . . $ Ui_frmOptions#cbSubFormat.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).(); |
| 260 | QSharedPointercxx . . $ QSharedPointer#<const SubtitleFormatcxx . . $ SubtitleFormat#> targetSF = |
| 261 | subtitleFormatsRegistrycxx . . $ QSharedPointer#QSharedPointer(21100a343a80bccd).->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).selectcxx . . $ SubtitleFormatsRegistry#select(849396506c5f6260).(targetFormatName); |
| 262 | QStringcxx . . $ QString# targetDefaultExt = targetSFcxx . . $ QString#QString(e1217c004a86c950).->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).defaultExtensioncxx . . $ SubtitleFormat#defaultExtension(6ef7b6c27b00b43d).(); |
| 263 | uicxx . . $ frmOptions#ui..cbSubExtensioncxx . . $ Ui_frmOptions#cbSubExtension.->setItemTextcxx . . $ QComboBox#setItemText(4b11a7293b4ed91c).(0, trcxx . . $ frmOptions#tr(75d9f1c324b4579d).("Default (%1)").argcxx . . $ QString#arg(bc823072288cbbb5).(targetDefaultExt)); |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | void frmOptionscxx . . $ frmOptions#::encodingMethodChangedcxx . . $ frmOptions#encodingMethodChanged(d4f767463ce0a6b3).(int method) { |
| 268 | EncodingChangeMethodcxx . . $ EncodingChangeMethod# cemMethod = static_cast<EncodingChangeMethodcxx . . $ EncodingChangeMethod#>(method); |
| 269 | bool enableEncodingSettings = cemMethod == ECM_CHANGEcxx . . $ ECM_CHANGE.; |
| 270 | uicxx . . $ frmOptions#ui..cbEncFromcxx . . $ Ui_frmOptions#cbEncFrom.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(enableEncodingSettings); |
| 271 | uicxx . . $ frmOptions#ui..lbConvertcxx . . $ Ui_frmOptions#lbConvert.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(enableEncodingSettings); |
| 272 | uicxx . . $ frmOptions#ui..lbConvertFromcxx . . $ Ui_frmOptions#lbConvertFrom.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(enableEncodingSettings); |
| 273 | uicxx . . $ frmOptions#ui..cbEncTocxx . . $ Ui_frmOptions#cbEncTo.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(enableEncodingSettings); |
| 274 | uicxx . . $ frmOptions#ui..cbAutoDetectEncodingcxx . . $ Ui_frmOptions#cbAutoDetectEncoding.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(enableEncodingSettings); |
| 275 | uicxx . . $ frmOptions#ui..cbShowAllEncodingscxx . . $ Ui_frmOptions#cbShowAllEncodings.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(enableEncodingSettings); |
| 276 | autoDetectEncodingClickedcxx . . $ frmOptions#autoDetectEncodingClicked(49f6e7a06ebc5aa8).(); |
| 277 | } |
| 278 | |
| 279 | void frmOptionscxx . . $ frmOptions#::autoDetectEncodingClickedcxx . . $ frmOptions#autoDetectEncodingClicked(49f6e7a06ebc5aa8).() { |
| 280 | bool checkedCE = static_cast<EncodingChangeMethodcxx . . $ EncodingChangeMethod#>( |
| 281 | uicxx . . $ frmOptions#ui..cbEncodingMethodcxx . . $ Ui_frmOptions#cbEncodingMethod.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).()) == ECM_CHANGEcxx . . $ ECM_CHANGE.; |
| 282 | bool checkedADE = uicxx . . $ frmOptions#ui..cbAutoDetectEncodingcxx . . $ Ui_frmOptions#cbAutoDetectEncoding.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).(); |
| 283 | uicxx . . $ frmOptions#ui..cbEncFromcxx . . $ Ui_frmOptions#cbEncFrom.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(checkedCE && !checkedADE); |
| 284 | uicxx . . $ frmOptions#ui..lbConvertFromcxx . . $ Ui_frmOptions#lbConvertFrom.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(checkedCE && !checkedADE); |
| 285 | } |
| 286 | |
| 287 | void frmOptionscxx . . $ frmOptions#::showAllEncodingsClickedcxx . . $ frmOptions#showAllEncodingsClicked(49f6e7a06ebc5aa8).() { |
| 288 | QStringcxx . . $ QString# encFrom = uicxx . . $ QString#QString(e1217c004a86c950)..cbEncFromcxx . . $ Ui_frmOptions#cbEncFrom.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).(); |
| 289 | QStringcxx . . $ QString# encTo = uicxx . . $ QString#QString(e1217c004a86c950)..cbEncTocxx . . $ Ui_frmOptions#cbEncTo.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).(); |
| 290 | |
| 291 | if (uicxx . . $ frmOptions#ui..cbShowAllEncodingscxx . . $ Ui_frmOptions#cbShowAllEncodings.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) { |
| 292 | showAllEncodingscxx . . $ frmOptions#showAllEncodings(49f6e7a06ebc5aa8).(); |
| 293 | } else { |
| 294 | uicxx . . $ frmOptions#ui..cbEncFromcxx . . $ Ui_frmOptions#cbEncFrom.->clearcxx . . $ QComboBox#clear(49f6e7a06ebc5aa8).(); |
| 295 | uicxx . . $ frmOptions#ui..cbEncTocxx . . $ Ui_frmOptions#cbEncTo.->clearcxx . . $ QComboBox#clear(49f6e7a06ebc5aa8).(); |
| 296 | |
| 297 | QStringListcxx . . $ QStringList# codecscxx . . $ QStringList#QStringList(49f6e7a06ebc5aa8).; |
| 298 | codecs <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "windows-1250"cxx . . $ QString#QString(85c52e162fed56f9). |
| 299 | <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "windows-1257"cxx . . $ QString#QString(85c52e162fed56f9). |
| 300 | <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "ISO-8859-2"cxx . . $ QString#QString(85c52e162fed56f9). |
| 301 | <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "ISO-8859-13"cxx . . $ QString#QString(85c52e162fed56f9). |
| 302 | <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "ISO-8859-16"cxx . . $ QString#QString(85c52e162fed56f9). |
| 303 | <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "UTF-8"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 304 | |
| 305 | uicxx . . $ frmOptions#ui..cbEncFromcxx . . $ Ui_frmOptions#cbEncFrom.->addItemscxx . . $ QComboBox#addItems(631c0101495f0328).(codecs); |
| 306 | uicxx . . $ frmOptions#ui..cbEncTocxx . . $ Ui_frmOptions#cbEncTo.->addItemscxx . . $ QComboBox#addItems(631c0101495f0328).(codecs); |
| 307 | } |
| 308 | |
| 309 | uicxx . . $ frmOptions#ui..cbEncFromcxx . . $ Ui_frmOptions#cbEncFrom.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(uicxx . . $ frmOptions#ui..cbEncFromcxx . . $ Ui_frmOptions#cbEncFrom.->findTextcxx . . $ QComboBox#findText(c6a792a10ea0b85).(encFrom)); |
| 310 | uicxx . . $ frmOptions#ui..cbEncTocxx . . $ Ui_frmOptions#cbEncTo.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(uicxx . . $ frmOptions#ui..cbEncTocxx . . $ Ui_frmOptions#cbEncTo.->findTextcxx . . $ QComboBox#findText(c6a792a10ea0b85).(encTo)); |
| 311 | } |
| 312 | |
| 313 | void frmOptionscxx . . $ frmOptions#::showAllEncodingscxx . . $ frmOptions#showAllEncodings(49f6e7a06ebc5aa8).() { |
| 314 | uicxx . . $ frmOptions#ui..cbEncFromcxx . . $ Ui_frmOptions#cbEncFrom.->clearcxx . . $ QComboBox#clear(49f6e7a06ebc5aa8).(); |
| 315 | uicxx . . $ frmOptions#ui..cbEncTocxx . . $ Ui_frmOptions#cbEncTo.->clearcxx . . $ QComboBox#clear(49f6e7a06ebc5aa8).(); |
| 316 | |
| 317 | QListcxx . . $ QList#<QByteArraycxx . . $ QByteArray#> codecs = QTextCodeccxx . . $ QList#QList(b1a5d2b9a710f6d1).::availableCodecscxx . . $ QTextCodec#availableCodecs(ed7db3712f812397).(); |
| 318 | qSortcxx . . $ qSort(249673c20e2b8d5).(codecscxx . . $ QList#iterator#iterator(fe70663a9b8f3744)..begincxx . . $ QList#begin(ca2520f641887418).(), codecscxx . . $ QList#iterator#iterator(fe70663a9b8f3744)..endcxx . . $ QList#end(ca2520f641887418).()); |
| 319 | for (QListcxx . . $ QList#<QByteArray>::iteratorcxx . . $ QList#iterator# i = codecscxx . . $ QList#iterator#iterator(fe70663a9b8f3744)..begincxx . . $ QList#begin(ca2520f641887418).(); i !=cxx . . $ QList#iterator#`operator!=`(73282c1f1756321a). codecs.endcxx . . $ QList#end(ca2520f641887418).(); i++cxx . . $ QList#iterator#operator++(9f57c9c26280c292).) { |
| 320 | uicxx . . $ frmOptions#ui..cbEncFromcxx . . $ Ui_frmOptions#cbEncFrom.->addItemcxx . . $ QComboBox#addItem(1c60a90c724e6bfb).(*cxx . . $ QString#QString(45672f3c6961a244).i); |
| 321 | uicxx . . $ frmOptions#ui..cbEncTocxx . . $ Ui_frmOptions#cbEncTo.->addItemcxx . . $ QComboBox#addItem(1c60a90c724e6bfb).(*cxx . . $ QString#QString(45672f3c6961a244).i); |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | void frmOptionscxx . . $ frmOptions#::writeConfigcxx . . $ frmOptions#writeConfig(49f6e7a06ebc5aa8).() { |
| 326 | #ifdef Q_OS_MAC |
| 327 | InfoPlistDockIcon::setShowDockIcon(ui.cbShowDockIcon->isChecked()); |
| 328 | #endif |
| 329 | |
| 330 | const QNapiConfigcxx . . $ QNapiConfig# config = LibQNapicxx . . $ LibQNapi#::loadConfigcxx . . $ LibQNapi#loadConfig(915c3b8a74517b7e).(); |
| 331 | |
| 332 | QStringcxx . . $ QString# permissions = QStringcxx . . $ QString#QString(e1217c004a86c950).("%1%2%3") |
| 333 | .argcxx . . $ QString#arg(64ab2ed17cc11715).(uicxx . . $ frmOptions#ui..sbUPermcxx . . $ Ui_frmOptions#sbUPerm.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).()) |
| 334 | .argcxx . . $ QString#arg(64ab2ed17cc11715).(uicxx . . $ frmOptions#ui..sbGPermcxx . . $ Ui_frmOptions#sbGPerm.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).()) |
| 335 | .argcxx . . $ QString#arg(64ab2ed17cc11715).(uicxx . . $ frmOptions#ui..sbOPermcxx . . $ Ui_frmOptions#sbOPerm.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).()); |
| 336 | |
| 337 | auto updatedGeneralConfig = |
| 338 | config.generalConfigcxx . . $ QNapiConfig#generalConfig(e033123d5cc30136).() |
| 339 | .setUiLanguagecxx . . $ GeneralConfig#setUiLanguage(3719c4c244c5028).( |
| 340 | uicxx . . $ frmOptions#ui..cbUiLanguagecxx . . $ Ui_frmOptions#cbUiLanguage.->itemDatacxx . . $ QComboBox#itemData(db8258505c7ad0b0).(uicxx . . $ frmOptions#ui..cbUiLanguagecxx . . $ Ui_frmOptions#cbUiLanguage.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).()) |
| 341 | .toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()) |
| 342 | .setP7zipPathcxx . . $ GeneralConfig#setP7zipPath(3719c4c244c5028).(uicxx . . $ frmOptions#ui..le7zPathcxx . . $ Ui_frmOptions#le7zPath.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()) |
| 343 | .setTmpPathcxx . . $ GeneralConfig#setTmpPath(3719c4c244c5028).(uicxx . . $ frmOptions#ui..leTmpPathcxx . . $ Ui_frmOptions#leTmpPath.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()) |
| 344 | .setLanguagecxx . . $ GeneralConfig#setLanguage(3719c4c244c5028).( |
| 345 | uicxx . . $ frmOptions#ui..cbLangcxx . . $ Ui_frmOptions#cbLang.->itemDatacxx . . $ QComboBox#itemData(db8258505c7ad0b0).(uicxx . . $ frmOptions#ui..cbLangcxx . . $ Ui_frmOptions#cbLang.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).()).toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()) |
| 346 | .setBackupLanguagecxx . . $ GeneralConfig#setBackupLanguage(3719c4c244c5028).( |
| 347 | uicxx . . $ frmOptions#ui..cbLangBackupcxx . . $ Ui_frmOptions#cbLangBackup.->itemDatacxx . . $ QComboBox#itemData(db8258505c7ad0b0).(uicxx . . $ frmOptions#ui..cbLangBackupcxx . . $ Ui_frmOptions#cbLangBackup.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).()) |
| 348 | .toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()) |
| 349 | .setNoBackupcxx . . $ GeneralConfig#setNoBackup(f4250462da81cc3e).(uicxx . . $ frmOptions#ui..cbNoBackupcxx . . $ Ui_frmOptions#cbNoBackup.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 350 | .setQuietBatchcxx . . $ GeneralConfig#setQuietBatch(f4250462da81cc3e).(uicxx . . $ frmOptions#ui..cbQuietBatchcxx . . $ Ui_frmOptions#cbQuietBatch.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 351 | .setSearchPolicycxx . . $ GeneralConfig#setSearchPolicy(a9fe4b03e372ca60).( |
| 352 | static_cast<SearchPolicycxx . . $ SearchPolicy#>(uicxx . . $ frmOptions#ui..cbSearchPolicycxx . . $ Ui_frmOptions#cbSearchPolicy.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).())) |
| 353 | .setDownloadPolicycxx . . $ GeneralConfig#setDownloadPolicy(6013ef5c3100cc09).( |
| 354 | static_cast<DownloadPolicycxx . . $ DownloadPolicy#>(uicxx . . $ frmOptions#ui..cbDownloadPolicycxx . . $ Ui_frmOptions#cbDownloadPolicy.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).())) |
| 355 | .setChangePermissionsEnabledcxx . . $ GeneralConfig#setChangePermissionsEnabled(f4250462da81cc3e).(uicxx . . $ frmOptions#ui..cbChangePermissionscxx . . $ Ui_frmOptions#cbChangePermissions.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 356 | .setChangePermissionsTocxx . . $ GeneralConfig#setChangePermissionsTo(3719c4c244c5028).(permissions); |
| 357 | |
| 358 | QListcxx . . $ QList#<QPaircxx . . $ QPair#<QStringcxx . . $ QString#, bool> > updatedEnabledEnginescxx . . $ QList#QList(49f6e7a06ebc5aa8).; |
| 359 | for (int i = 0; i < uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->rowCountcxx . . $ QTableWidget#rowCount(455f465bc33b4cdf).(); ++i) { |
| 360 | updatedEnabledEngines <<cxx . . $ QList#`operator<<`(309d1580d8f5dc58). qMakePaircxx . . $ qMakePair(20c9105292f52692).( |
| 361 | uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->itemcxx . . $ QTableWidget#item(e78ccbf9c1467f73).(i, 0)->textcxx . . $ QTableWidgetItem#text(6ef7b6c27b00b43d).(), |
| 362 | uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->itemcxx . . $ QTableWidget#item(e78ccbf9c1467f73).(i, 0)->checkStatecxx . . $ QTableWidgetItem#checkState(94511a6609c7e4a7).() == Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked.); |
| 363 | } |
| 364 | |
| 365 | QStringcxx . . $ QString# targetSubFormat = uicxx . . $ QString#QString(3520e46b33348bf6)..cbSubFormatcxx . . $ Ui_frmOptions#cbSubFormat.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() == 0 |
| 366 | ? ""cxx . . $ QString#QString(3520e46b33348bf6). |
| 367 | : subtitleFormatsRegistrycxx . . $ QString#QString(3520e46b33348bf6).->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).listFormatNamescxx . . $ SubtitleFormatsRegistry#listFormatNames(e1dbd5c4feadc8f5).().atcxx . . $ QList#at(e2681f9bb6b2f357).( |
| 368 | uicxx . . $ frmOptions#ui..cbSubFormatcxx . . $ Ui_frmOptions#cbSubFormat.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() - 1); |
| 369 | QStringcxx . . $ QString# targetSubExt = uicxx . . $ QString#QString(e1217c004a86c950)..cbSubExtensioncxx . . $ Ui_frmOptions#cbSubExtension.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() == 0 |
| 370 | ? ""cxx . . $ QString#QString(e1217c004a86c950). |
| 371 | : uicxx . . $ QString#QString(e1217c004a86c950)..cbSubExtensioncxx . . $ Ui_frmOptions#cbSubExtension.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).(); |
| 372 | |
| 373 | auto updatedPostProcessingConfig = |
| 374 | config.postProcessingConfigcxx . . $ QNapiConfig#postProcessingConfig(ea7162ad39b13107).() |
| 375 | .setEnabledcxx . . $ PostProcessingConfig#setEnabled(984bf836fc6fa482).(uicxx . . $ frmOptions#ui..gbPpEnablecxx . . $ Ui_frmOptions#gbPpEnable.->isCheckedcxx . . $ QGroupBox#isChecked(50ce9a9e25b4a850).()) |
| 376 | .setEncodingChangeMethodcxx . . $ PostProcessingConfig#setEncodingChangeMethod(ac717df43b587e81).(static_cast<EncodingChangeMethodcxx . . $ EncodingChangeMethod#>( |
| 377 | uicxx . . $ frmOptions#ui..cbEncodingMethodcxx . . $ Ui_frmOptions#cbEncodingMethod.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).())) |
| 378 | .setEncodingAutoDetectFromcxx . . $ PostProcessingConfig#setEncodingAutoDetectFrom(984bf836fc6fa482).(uicxx . . $ frmOptions#ui..cbAutoDetectEncodingcxx . . $ Ui_frmOptions#cbAutoDetectEncoding.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 379 | .setEncodingFromcxx . . $ PostProcessingConfig#setEncodingFrom(432a06f3bfa9c656).(uicxx . . $ frmOptions#ui..cbEncFromcxx . . $ Ui_frmOptions#cbEncFrom.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).()) |
| 380 | .setEncodingTocxx . . $ PostProcessingConfig#setEncodingTo(432a06f3bfa9c656).(uicxx . . $ frmOptions#ui..cbEncTocxx . . $ Ui_frmOptions#cbEncTo.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).()) |
| 381 | .setShowAllEncodingscxx . . $ PostProcessingConfig#setShowAllEncodings(984bf836fc6fa482).(uicxx . . $ frmOptions#ui..cbShowAllEncodingscxx . . $ Ui_frmOptions#cbShowAllEncodings.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 382 | .setRemoveWordsEnabledcxx . . $ PostProcessingConfig#setRemoveWordsEnabled(984bf836fc6fa482).(uicxx . . $ frmOptions#ui..cbRemoveLinescxx . . $ Ui_frmOptions#cbRemoveLines.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 383 | .setRemoveWordscxx . . $ PostProcessingConfig#setRemoveWords(e4426743cf91da7d).(uicxx . . $ frmOptions#ui..teRemoveWordscxx . . $ Ui_frmOptions#teRemoveWords.->toPlainTextcxx . . $ QTextEdit#toPlainText(6ef7b6c27b00b43d).().splitcxx . . $ QString#split(c8b44a97dcb6200d).("\n"cxx . . $ QString#QString(85c52e162fed56f9).)) |
| 384 | .setSubFormatcxx . . $ PostProcessingConfig#setSubFormat(432a06f3bfa9c656).(targetSubFormat) |
| 385 | .setSubExtensioncxx . . $ PostProcessingConfig#setSubExtension(432a06f3bfa9c656).(targetSubExt) |
| 386 | .setSkipConvertAdscxx . . $ PostProcessingConfig#setSkipConvertAds(984bf836fc6fa482).(uicxx . . $ frmOptions#ui..cbSkipConvertAdscxx . . $ Ui_frmOptions#cbSkipConvertAds.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()); |
| 387 | |
| 388 | auto updatedConfig = |
| 389 | config.setGeneralConfigcxx . . $ QNapiConfig#setGeneralConfig(f8f48c3f1702e43f).(updatedGeneralConfig) |
| 390 | .setEnabledEnginescxx . . $ QNapiConfig#setEnabledEngines(69e31a8cfccfd06d).(updatedEnabledEngines) |
| 391 | .setPostProcessingConfigcxx . . $ QNapiConfig#setPostProcessingConfig(a352f7bd23209aa).(updatedPostProcessingConfig); |
| 392 | |
| 393 | LibQNapicxx . . $ LibQNapi#::writeConfigcxx . . $ LibQNapi#writeConfig(64b8fa5c398f1122).(updatedConfig); |
| 394 | } |
| 395 | |
| 396 | void frmOptionscxx . . $ frmOptions#::readConfigcxx . . $ frmOptions#readConfig(64b8fa5c398f1122).(const QNapiConfigcxx . . $ QNapiConfig# &config) { |
| 397 | #ifdef Q_OS_MAC |
| 398 | ui.cbShowDockIcon->setChecked(InfoPlistDockIcon::readShowDockIcon()); |
| 399 | #endif |
| 400 | |
| 401 | QStringcxx . . $ QString# systemLang = QLocalecxx . . $ QString#QString(e1217c004a86c950).::languageToStringcxx . . $ QLocale#languageToString(85d1224c88dab09d).(QLocalecxx . . $ QLocale#::systemcxx . . $ QLocale#system(7171962d3a2fd395).().languagecxx . . $ QLocale#language(2bd0820aba5f5ea8).()); |
| 402 | QStringcxx . . $ QString# localizedSystemLang = QCoreApplicationcxx . . $ QString#QString(e1217c004a86c950).::translatecxx . . $ QCoreApplication#translate(699330408c757f1b).( |
| 403 | "frmOptions", systemLang.toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).()); |
| 404 | uicxx . . $ frmOptions#ui..cbUiLanguagecxx . . $ Ui_frmOptions#cbUiLanguage.->setItemTextcxx . . $ QComboBox#setItemText(4b11a7293b4ed91c).(0, |
| 405 | trcxx . . $ frmOptions#tr(75d9f1c324b4579d).("Auto-detected based on system language (%1)") |
| 406 | .argcxx . . $ QString#arg(bc823072288cbbb5).(localizedSystemLang)); |
| 407 | uicxx . . $ frmOptions#ui..cbUiLanguagecxx . . $ Ui_frmOptions#cbUiLanguage.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(uicxx . . $ frmOptions#ui..cbUiLanguagecxx . . $ Ui_frmOptions#cbUiLanguage.->findDatacxx . . $ QComboBox#findData(c0958019ae3ea991).( |
| 408 | configcxx . . $ QVariant#QVariant(3520e46b33348bf6)..generalConfigcxx . . $ QNapiConfig#generalConfig(e033123d5cc30136).().uiLanguagecxx . . $ GeneralConfig#uiLanguage(6ef7b6c27b00b43d).(), Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole., Qtcxx . . $ QFlags#QFlags(9b289cee16747614).::MatchStartsWithcxx . . $ Qt/MatchStartsWith.)); |
| 409 | |
| 410 | connectcxx . . $ QObject#connect(799f219bacec96aa).( |
| 411 | uicxx . . $ frmOptions#ui..cbUiLanguagecxx . . $ Ui_frmOptions#cbUiLanguage., |
| 412 | static_cast<void (QComboBoxcxx . . $ QComboBox#::*)(int)>(&QComboBoxcxx . . $ QComboBox#::currentIndexChangedcxx . . $ QComboBox#currentIndexChanged(d4f767463ce0a6b3).), |
| 413 | [=]() { uicxx . . $ frmOptions#ui..lbUiLangChangeNoticecxx . . $ Ui_frmOptions#lbUiLangChangeNotice.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(true); }); |
| 414 | |
| 415 | uicxx . . $ frmOptions#ui..le7zPathcxx . . $ Ui_frmOptions#le7zPath.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(config.generalConfigcxx . . $ QNapiConfig#generalConfig(e033123d5cc30136).().p7zipPathcxx . . $ GeneralConfig#p7zipPath(6ef7b6c27b00b43d).()); |
| 416 | uicxx . . $ frmOptions#ui..leTmpPathcxx . . $ Ui_frmOptions#leTmpPath.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(config.generalConfigcxx . . $ QNapiConfig#generalConfig(e033123d5cc30136).().tmpPathcxx . . $ GeneralConfig#tmpPath(6ef7b6c27b00b43d).()); |
| 417 | uicxx . . $ frmOptions#ui..cbLangcxx . . $ Ui_frmOptions#cbLang.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(uicxx . . $ frmOptions#ui..cbLangcxx . . $ Ui_frmOptions#cbLang.->findDatacxx . . $ QComboBox#findData(c0958019ae3ea991).( |
| 418 | SubtitleLanguagecxx . . $ QVariant#QVariant(3520e46b33348bf6).(configcxx . . $ QString#QString(e1217c004a86c950)..generalConfigcxx . . $ QNapiConfig#generalConfig(e033123d5cc30136).().languagecxx . . $ GeneralConfig#language(6ef7b6c27b00b43d).()).toTwoLettercxx . . $ SubtitleLanguage#toTwoLetter(4365c3963150523e).())); |
| 419 | uicxx . . $ frmOptions#ui..cbLangBackupcxx . . $ Ui_frmOptions#cbLangBackup.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(uicxx . . $ frmOptions#ui..cbLangBackupcxx . . $ Ui_frmOptions#cbLangBackup.->findDatacxx . . $ QComboBox#findData(c0958019ae3ea991).( |
| 420 | SubtitleLanguagecxx . . $ QVariant#QVariant(3520e46b33348bf6).(configcxx . . $ QString#QString(e1217c004a86c950)..generalConfigcxx . . $ QNapiConfig#generalConfig(e033123d5cc30136).().backupLanguagecxx . . $ GeneralConfig#backupLanguage(6ef7b6c27b00b43d).()).toTwoLettercxx . . $ SubtitleLanguage#toTwoLetter(4365c3963150523e).())); |
| 421 | uicxx . . $ frmOptions#ui..cbNoBackupcxx . . $ Ui_frmOptions#cbNoBackup.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(config.generalConfigcxx . . $ QNapiConfig#generalConfig(e033123d5cc30136).().noBackupcxx . . $ GeneralConfig#noBackup(50ce9a9e25b4a850).()); |
| 422 | uicxx . . $ frmOptions#ui..cbQuietBatchcxx . . $ Ui_frmOptions#cbQuietBatch.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(config.generalConfigcxx . . $ QNapiConfig#generalConfig(e033123d5cc30136).().quietBatchcxx . . $ GeneralConfig#quietBatch(50ce9a9e25b4a850).()); |
| 423 | |
| 424 | uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->clearcxx . . $ QTableWidget#clear(49f6e7a06ebc5aa8).(); |
| 425 | |
| 426 | QListcxx . . $ QList#<QPaircxx . . $ QPair#<QStringcxx . . $ QString#, bool> > engines = configcxx . . $ QList#QList(b1a5d2b9a710f6d1)..enabledEnginescxx . . $ QNapiConfig#enabledEngines(4d74d8a6286ce4d2).(); |
| 427 | uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->setColumnCountcxx . . $ QTableWidget#setColumnCount(d4f767463ce0a6b3).(1); |
| 428 | uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->setRowCountcxx . . $ QTableWidget#setRowCount(d4f767463ce0a6b3).(engines.sizecxx . . $ QList#size(455f465bc33b4cdf).()); |
| 429 | |
| 430 | for (int i = 0; i < engines.sizecxx . . $ QList#size(455f465bc33b4cdf).(); ++i) { |
| 431 | QPaircxx . . $ QPair#<QStringcxx . . $ QString#, bool> e = engines.atcxx . . $ QList#at(e2681f9bb6b2f357).(i); |
| 432 | QIconcxx . . $ QIcon# engineIcon = |
| 433 | QIconcxx . . $ QIcon#QIcon(47c487586538d025).(QPixmapcxx . . $ QPixmap#QPixmap(ac4b840ac9fbb56d).(enginesRegistrycxx . . $ frmOptions#enginesRegistry.->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).enginePixmapDatacxx . . $ SubtitleDownloadEnginesRegistry#enginePixmapData(9d6760e3d9ac89d6).(e.firstcxx . . $ QPair#first.))); |
| 434 | QTableWidgetItemcxx . . $ QTableWidgetItem# *item = new QTableWidgetItemcxx . . $ QTableWidgetItem#(engineIcon, e.firstcxx . . $ QPair#first.); |
| 435 | item->setCheckStatecxx . . $ QTableWidgetItem#setCheckState(537692883700039).(e.secondcxx . . $ QPair#second. ? Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked. : Qtcxx . . $ Qt/::Uncheckedcxx . . $ Qt/Unchecked.); |
| 436 | uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->setItemcxx . . $ QTableWidget#setItem(786223559052ea9b).(i, 0, item); |
| 437 | } |
| 438 | |
| 439 | uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->horizontalHeadercxx . . $ QTableView#horizontalHeader(f0c0fe1a435d30ff).()->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).(); |
| 440 | uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->verticalHeadercxx . . $ QTableView#verticalHeader(f0c0fe1a435d30ff).()->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).(); |
| 441 | uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->verticalHeadercxx . . $ QTableView#verticalHeader(f0c0fe1a435d30ff).()->setDefaultSectionSizecxx . . $ QHeaderView#setDefaultSectionSize(d4f767463ce0a6b3).(20); |
| 442 | uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->verticalHeadercxx . . $ QTableView#verticalHeader(f0c0fe1a435d30ff).()->setSectionResizeModecxx . . $ QHeaderView#setSectionResizeMode(b313c7f6bdb9cd72).(QHeaderViewcxx . . $ QHeaderView#::Fixedcxx . . $ QHeaderView#Fixed.); |
| 443 | uicxx . . $ frmOptions#ui..twEnginescxx . . $ Ui_frmOptions#twEngines.->setColumnWidthcxx . . $ QTableView#setColumnWidth(3e454b8ccf442868).(0, 300); |
| 444 | |
| 445 | uicxx . . $ frmOptions#ui..cbSearchPolicycxx . . $ Ui_frmOptions#cbSearchPolicy.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(config.generalConfigcxx . . $ QNapiConfig#generalConfig(e033123d5cc30136).().searchPolicycxx . . $ GeneralConfig#searchPolicy(6accf7728854c083).()); |
| 446 | uicxx . . $ frmOptions#ui..cbDownloadPolicycxx . . $ Ui_frmOptions#cbDownloadPolicy.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(config.generalConfigcxx . . $ QNapiConfig#generalConfig(e033123d5cc30136).().downloadPolicycxx . . $ GeneralConfig#downloadPolicy(87828d06523330f).()); |
| 447 | |
| 448 | uicxx . . $ frmOptions#ui..cbEncodingMethodcxx . . $ Ui_frmOptions#cbEncodingMethod.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).( |
| 449 | config.postProcessingConfigcxx . . $ QNapiConfig#postProcessingConfig(ea7162ad39b13107).().encodingChangeMethodcxx . . $ PostProcessingConfig#encodingChangeMethod(1db807487c2f9f98).()); |
| 450 | uicxx . . $ frmOptions#ui..cbAutoDetectEncodingcxx . . $ Ui_frmOptions#cbAutoDetectEncoding.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).( |
| 451 | config.postProcessingConfigcxx . . $ QNapiConfig#postProcessingConfig(ea7162ad39b13107).().encodingAutoDetectFromcxx . . $ PostProcessingConfig#encodingAutoDetectFrom(50ce9a9e25b4a850).()); |
| 452 | uicxx . . $ frmOptions#ui..cbEncFromcxx . . $ Ui_frmOptions#cbEncFrom.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).( |
| 453 | uicxx . . $ frmOptions#ui..cbEncFromcxx . . $ Ui_frmOptions#cbEncFrom.->findTextcxx . . $ QComboBox#findText(c6a792a10ea0b85).(config.postProcessingConfigcxx . . $ QNapiConfig#postProcessingConfig(ea7162ad39b13107).().encodingFromcxx . . $ PostProcessingConfig#encodingFrom(6ef7b6c27b00b43d).())); |
| 454 | uicxx . . $ frmOptions#ui..cbEncTocxx . . $ Ui_frmOptions#cbEncTo.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).( |
| 455 | uicxx . . $ frmOptions#ui..cbEncTocxx . . $ Ui_frmOptions#cbEncTo.->findTextcxx . . $ QComboBox#findText(c6a792a10ea0b85).(config.postProcessingConfigcxx . . $ QNapiConfig#postProcessingConfig(ea7162ad39b13107).().encodingTocxx . . $ PostProcessingConfig#encodingTo(6ef7b6c27b00b43d).())); |
| 456 | uicxx . . $ frmOptions#ui..cbShowAllEncodingscxx . . $ Ui_frmOptions#cbShowAllEncodings.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).( |
| 457 | config.postProcessingConfigcxx . . $ QNapiConfig#postProcessingConfig(ea7162ad39b13107).().showAllEncodingscxx . . $ PostProcessingConfig#showAllEncodings(50ce9a9e25b4a850).()); |
| 458 | uicxx . . $ frmOptions#ui..cbRemoveLinescxx . . $ Ui_frmOptions#cbRemoveLines.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).( |
| 459 | config.postProcessingConfigcxx . . $ QNapiConfig#postProcessingConfig(ea7162ad39b13107).().removeWordsEnabledcxx . . $ PostProcessingConfig#removeWordsEnabled(50ce9a9e25b4a850).()); |
| 460 | uicxx . . $ frmOptions#ui..teRemoveWordscxx . . $ Ui_frmOptions#teRemoveWords.->setTextcxx . . $ QTextEdit#setText(3520e46b33348bf6).( |
| 461 | config.postProcessingConfigcxx . . $ QNapiConfig#postProcessingConfig(ea7162ad39b13107).().removeWordscxx . . $ PostProcessingConfig#removeWords(e1dbd5c4feadc8f5).().joincxx . . $ QListSpecialMethods#join(5555d9024dcf93fb).("\n"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 462 | |
| 463 | uicxx . . $ frmOptions#ui..cbSubFormatcxx . . $ Ui_frmOptions#cbSubFormat.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 464 | uicxx . . $ frmOptions#ui..cbSubExtensioncxx . . $ Ui_frmOptions#cbSubExtension.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 465 | |
| 466 | int formatIdx = 1; |
| 467 | foreachcxx . . $ `<external>/15045578679651060896/qglobal.h:1145:13`! (QString format, subtitleFormatsRegistry->listFormatNames()) { |
| 468 | if (config.postProcessingConfigcxx . . $ QNapiConfig#postProcessingConfig(ea7162ad39b13107).().subFormatcxx . . $ PostProcessingConfig#subFormat(6ef7b6c27b00b43d).() ==cxx . . $ `operator==`(edf9e4f73813982f). format) { |
| 469 | uicxx . . $ frmOptions#ui..cbSubFormatcxx . . $ Ui_frmOptions#cbSubFormat.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(formatIdx); |
| 470 | } |
| 471 | ++formatIdx; |
| 472 | } |
| 473 | |
| 474 | uicxx . . $ frmOptions#ui..cbSubExtensioncxx . . $ Ui_frmOptions#cbSubExtension.->setCurrentTextcxx . . $ QComboBox#setCurrentText(3520e46b33348bf6).( |
| 475 | config.postProcessingConfigcxx . . $ QNapiConfig#postProcessingConfig(ea7162ad39b13107).().subExtensioncxx . . $ PostProcessingConfig#subExtension(6ef7b6c27b00b43d).()); |
| 476 | uicxx . . $ frmOptions#ui..cbSkipConvertAdscxx . . $ Ui_frmOptions#cbSkipConvertAds.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).( |
| 477 | config.postProcessingConfigcxx . . $ QNapiConfig#postProcessingConfig(ea7162ad39b13107).().skipConvertAdscxx . . $ PostProcessingConfig#skipConvertAds(50ce9a9e25b4a850).()); |
| 478 | |
| 479 | uicxx . . $ frmOptions#ui..cbChangePermissionscxx . . $ Ui_frmOptions#cbChangePermissions.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).( |
| 480 | config.generalConfigcxx . . $ QNapiConfig#generalConfig(e033123d5cc30136).().changePermissionsEnabledcxx . . $ GeneralConfig#changePermissionsEnabled(50ce9a9e25b4a850).()); |
| 481 | QStringcxx . . $ QString# permissions = configcxx . . $ QString#QString(e1217c004a86c950)..generalConfigcxx . . $ QNapiConfig#generalConfig(e033123d5cc30136).().changePermissionsTocxx . . $ GeneralConfig#changePermissionsTo(6ef7b6c27b00b43d).(); |
| 482 | char o, g, u; |
| 483 | o = permissions.atcxx . . $ QString#at(13af7ae5a875439e).(0).toLatin1cxx . . $ QChar#toLatin1(1b8b762cbef9c2c9).() - '0'; |
| 484 | g = permissions.atcxx . . $ QString#at(13af7ae5a875439e).(1).toLatin1cxx . . $ QChar#toLatin1(1b8b762cbef9c2c9).() - '0'; |
| 485 | u = permissions.atcxx . . $ QString#at(13af7ae5a875439e).(2).toLatin1cxx . . $ QChar#toLatin1(1b8b762cbef9c2c9).() - '0'; |
| 486 | uicxx . . $ frmOptions#ui..sbUPermcxx . . $ Ui_frmOptions#sbUPerm.->setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).((0 <= o && o <= 7) ? o : 6); |
| 487 | uicxx . . $ frmOptions#ui..sbGPermcxx . . $ Ui_frmOptions#sbGPerm.->setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).((0 <= g && g <= 7) ? g : 4); |
| 488 | uicxx . . $ frmOptions#ui..sbOPermcxx . . $ Ui_frmOptions#sbOPerm.->setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).((0 <= u && u <= 7) ? u : 4); |
| 489 | |
| 490 | encodingMethodChangedcxx . . $ frmOptions#encodingMethodChanged(d4f767463ce0a6b3).( |
| 491 | static_cast<int>(config.postProcessingConfigcxx . . $ QNapiConfig#postProcessingConfig(ea7162ad39b13107).().encodingChangeMethodcxx . . $ PostProcessingConfig#encodingChangeMethod(1db807487c2f9f98).())); |
| 492 | showAllEncodingsClickedcxx . . $ frmOptions#showAllEncodingsClicked(49f6e7a06ebc5aa8).(); |
| 493 | |
| 494 | uicxx . . $ frmOptions#ui..gbPpEnablecxx . . $ Ui_frmOptions#gbPpEnable.->setCheckedcxx . . $ QGroupBox#setChecked(b45ddcbc8423892c).(config.postProcessingConfigcxx . . $ QNapiConfig#postProcessingConfig(ea7162ad39b13107).().enabledcxx . . $ PostProcessingConfig#enabled(50ce9a9e25b4a850).()); |
| 495 | } |
| 496 | |
| 497 | void frmOptionscxx . . $ frmOptions#::restoreDefaultscxx . . $ frmOptions#restoreDefaults(49f6e7a06ebc5aa8).() { |
| 498 | QSettingscxx . . $ QSettings# settingscxx . . $ QSettings#QSettings(749de1b6ae65bddd).; |
| 499 | settings.clearcxx . . $ QSettings#clear(49f6e7a06ebc5aa8).(); |
| 500 | const QNapiConfigcxx . . $ QNapiConfig# defaultConfig = |
| 501 | LibQNapicxx . . $ LibQNapi#::configReadercxx . . $ LibQNapi#configReader(4fcb67a38ce170aa).()->cxx . . $ QSharedPointer#`operator->`(5a2a78a048fb49a8).readConfigcxx . . $ ConfigReader#readConfig(36ac55dbb974fc0c).(settings); |
| 502 | |
| 503 | #ifdef Q_OS_MAC |
| 504 | InfoPlistDockIcon::setShowDockIcon(true); |
| 505 | #endif |
| 506 | |
| 507 | readConfigcxx . . $ frmOptions#readConfig(64b8fa5c398f1122).(defaultConfig); |
| 508 | } |