| 1 | /* |
| 2 | * File: TapeProperties.cpp |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: Aug 7, 2009 |
| 6 | * |
| 7 | * Copyright (c) 2009-2013 Jacob Dekel |
| 8 | * $Id$ |
| 9 | * |
| 10 | * This program is free software: you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by |
| 12 | * the Free Software Foundation, either version 3 of the License, or |
| 13 | * (at your option) any later version. |
| 14 | * |
| 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
| 19 | * |
| 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 22 | * |
| 23 | */ |
| 24 | |
| 25 | #include "HerculesStudio.h"cxx . . $ `<file>/HercStudio/HerculesStudio.h`/ |
| 26 | #include "TapeProperties.h"cxx . . $ `<file>/HercConfiguration/TapeProperties.h`/ |
| 27 | #include "ConfigurationEditor.h"cxx . . $ `<file>/HercConfiguration/ConfigurationEditor.h`/ |
| 28 | #include "Preferences.h"cxx . . $ `<file>/HercStudio/Preferences.h`/ |
| 29 | |
| 30 | #include <QFileDialog> |
| 31 | #include <QMessageBox> |
| 32 | |
| 33 | #include <sstream> |
| 34 | |
| 35 | const stdcxx . . $ std/::stringcxx . . $ std/string# TapePropertiescxx . . $ TapeProperties#::typescxx . . $ TapeProperties#types.[] = {"3410", "3420", "3422", "3430", "3480", "3490", "3590", "9347", "8809", ""}; |
| 36 | |
| 37 | TapePropertiescxx . . $ TapeProperties#::TapePropertiescxx . . $ TapeProperties#TapeProperties(b7c8c82eacf24532).(ConfigLinecxx . . $ ConfigLine# & line, QWidgetcxx . . $ QWidget# *parent) |
| 38 | : GenericDevicePropertiescxx . . $ GenericDeviceProperties#(line, parent) |
| 39 | { |
| 40 | uicxx . . $ TapeProperties#ui..setupUicxx . . $ Ui_TapePropertiesClass#setupUi(108f35f7aa7f3cf9).(this); |
| 41 | //standard(true);//temp |
| 42 | initializecxx . . $ TapeProperties#initialize(d220a453c8207c79).(line); |
| 43 | |
| 44 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ TapeProperties#ui..okButtoncxx . . $ Ui_TapePropertiesClass#okButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(ok())); |
| 45 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ TapeProperties#ui..cancelButtoncxx . . $ Ui_TapePropertiesClass#cancelButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(cancel())); |
| 46 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ TapeProperties#ui..fileButtoncxx . . $ Ui_TapePropertiesClass#fileButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(fileBrowse())); |
| 47 | } |
| 48 | |
| 49 | TapePropertiescxx . . $ TapeProperties#::~cxx . . $ TapeProperties#`~TapeProperties`(49f6e7a06ebc5aa8).TapePropertiescxx . . $ TapeProperties#() |
| 50 | { |
| 51 | |
| 52 | } |
| 53 | |
| 54 | void TapePropertiescxx . . $ TapeProperties#::okcxx . . $ TapeProperties#ok(49f6e7a06ebc5aa8).() |
| 55 | { |
| 56 | if (!deviceNumberValidatorcxx . . $ GenericDeviceProperties#deviceNumberValidator(5bc323e34e13a656).(uicxx . . $ TapeProperties#ui..deviceNumbercxx . . $ Ui_TapePropertiesClass#deviceNumber.)) |
| 57 | return; |
| 58 | if (uicxx . . $ TapeProperties#ui..filenamecxx . . $ Ui_TapePropertiesClass#filename.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) |
| 59 | { |
| 60 | QMessageBoxcxx . . $ QMessageBox# * p = new QMessageBoxcxx . . $ QMessageBox#(this); |
| 61 | p->setTextcxx . . $ QMessageBox#setText(3520e46b33348bf6).("Please enter file name"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 62 | p->execcxx . . $ QDialog#exec(b126dc7c1de90089).(); |
| 63 | uicxx . . $ TapeProperties#ui..filenamecxx . . $ Ui_TapePropertiesClass#filename.->setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).(); |
| 64 | return; |
| 65 | } |
| 66 | |
| 67 | stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# newLineBuffcxx . . $ std/__cxx11/basic_stringstream#basic_stringstream(49f6e7a06ebc5aa8).; |
| 68 | |
| 69 | newLineBuff <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ TapeProperties#ui..deviceNumbercxx . . $ Ui_TapePropertiesClass#deviceNumber.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).() |
| 70 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ TapeProperties#ui..tapeCombocxx . . $ Ui_TapePropertiesClass#tapeCombo.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 71 | |
| 72 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ TapeProperties#ui..filenamecxx . . $ Ui_TapePropertiesClass#filename.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 73 | |
| 74 | if (uicxx . . $ TapeProperties#ui..noAutomountCheckboxcxx . . $ Ui_TapePropertiesClass#noAutomountCheckbox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 75 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " noautomount"; |
| 76 | if (uicxx . . $ TapeProperties#ui..awsCheckboxcxx . . $ Ui_TapePropertiesClass#awsCheckbox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 77 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " awstape"; |
| 78 | if (uicxx . . $ TapeProperties#ui..readonlycheckboxcxx . . $ Ui_TapePropertiesClass#readonlycheckbox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 79 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " RO"; |
| 80 | if (uicxx . . $ TapeProperties#ui..deonirqCheckboxcxx . . $ Ui_TapePropertiesClass#deonirqCheckbox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 81 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " deonirq=1"; |
| 82 | if (uicxx . . $ TapeProperties#ui..compressionComboboxcxx . . $ Ui_TapePropertiesClass#compressionCombobox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() > 0) |
| 83 | { |
| 84 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " compress=1"; |
| 85 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " method=" <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ TapeProperties#ui..compressionComboboxcxx . . $ Ui_TapePropertiesClass#compressionCombobox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 86 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " level=" <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). uicxx . . $ TapeProperties#ui..compressionLevelSlidercxx . . $ Ui_TapePropertiesClass#compressionLevelSlider.->valuecxx . . $ QAbstractSlider#value(455f465bc33b4cdf).(); |
| 87 | } |
| 88 | if (uicxx . . $ TapeProperties#ui..chunkSizeSpinboxcxx . . $ Ui_TapePropertiesClass#chunkSizeSpinbox.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).() != 65535) |
| 89 | { |
| 90 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " chunksize=" <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). uicxx . . $ TapeProperties#ui..chunkSizeSpinboxcxx . . $ Ui_TapePropertiesClass#chunkSizeSpinbox.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).(); |
| 91 | } |
| 92 | if (uicxx . . $ TapeProperties#ui..maxsizeNumSpinboxcxx . . $ Ui_TapePropertiesClass#maxsizeNumSpinbox.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).() > 0) |
| 93 | { |
| 94 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " maxsize" ; |
| 95 | switch (uicxx . . $ TapeProperties#ui..maxsizeUnitsSpinboxcxx . . $ Ui_TapePropertiesClass#maxsizeUnitsSpinbox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).()) |
| 96 | { |
| 97 | case (1): |
| 98 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "k="; |
| 99 | break; |
| 100 | case (2): |
| 101 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "m="; |
| 102 | break; |
| 103 | default: |
| 104 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "="; |
| 105 | break; |
| 106 | } |
| 107 | newLineBuff <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). uicxx . . $ TapeProperties#ui..maxsizeNumSpinboxcxx . . $ Ui_TapePropertiesClass#maxsizeNumSpinbox.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).(); |
| 108 | } |
| 109 | if (uicxx . . $ TapeProperties#ui..eotmarginSpinboxcxx . . $ Ui_TapePropertiesClass#eotmarginSpinbox.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).() > 0) |
| 110 | { |
| 111 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " eotmargin=" <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). uicxx . . $ TapeProperties#ui..eotmarginSpinboxcxx . . $ Ui_TapePropertiesClass#eotmarginSpinbox.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).(); |
| 112 | } |
| 113 | |
| 114 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 115 | mLinecxx . . $ GenericDeviceProperties#mLine..replaceLinecxx . . $ ConfigLine#replaceLine(9c546c94e5fcce4e).(newLineBuff.strcxx . . $ std/__cxx11/basic_stringstream#str(d33e1a6fd36255f7).()); |
| 116 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateLinecxx . . $ GenericDeviceProperties#updateLine(b45ddcbc8423892c).(true); |
| 117 | this->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 118 | } |
| 119 | |
| 120 | void TapePropertiescxx . . $ TapeProperties#::cancelcxx . . $ TapeProperties#cancel(49f6e7a06ebc5aa8).() |
| 121 | { |
| 122 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateLinecxx . . $ GenericDeviceProperties#updateLine(b45ddcbc8423892c).(false); |
| 123 | this->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 124 | } |
| 125 | |
| 126 | void TapePropertiescxx . . $ TapeProperties#::standardcxx . . $ TapeProperties#standard(b45ddcbc8423892c).(bool set) |
| 127 | { |
| 128 | if (set) |
| 129 | { |
| 130 | scsicxx . . $ TapeProperties#scsi(b45ddcbc8423892c).(false); |
| 131 | uicxx . . $ TapeProperties#ui..tapeGroupBoxcxx . . $ Ui_TapePropertiesClass#tapeGroupBox.->setTitlecxx . . $ QGroupBox#setTitle(3520e46b33348bf6).("Standard Tape"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 132 | } |
| 133 | //ui.filenameLabel->setVisible(set); |
| 134 | //ui.filename->setVisible(set); |
| 135 | //ui.fileButton->setVisible(set); |
| 136 | uicxx . . $ TapeProperties#ui..awsCheckboxcxx . . $ Ui_TapePropertiesClass#awsCheckbox.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 137 | uicxx . . $ TapeProperties#ui..readonlycheckboxcxx . . $ Ui_TapePropertiesClass#readonlycheckbox.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 138 | uicxx . . $ TapeProperties#ui..deonirqCheckboxcxx . . $ Ui_TapePropertiesClass#deonirqCheckbox.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 139 | uicxx . . $ TapeProperties#ui..compressionComboboxcxx . . $ Ui_TapePropertiesClass#compressionCombobox.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 140 | uicxx . . $ TapeProperties#ui..compressionLevelSlidercxx . . $ Ui_TapePropertiesClass#compressionLevelSlider.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 141 | uicxx . . $ TapeProperties#ui..chunkSizeSpinboxcxx . . $ Ui_TapePropertiesClass#chunkSizeSpinbox.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 142 | uicxx . . $ TapeProperties#ui..chunkSizeLabelcxx . . $ Ui_TapePropertiesClass#chunkSizeLabel.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 143 | uicxx . . $ TapeProperties#ui..label_slider_1cxx . . $ Ui_TapePropertiesClass#label_slider_1.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 144 | uicxx . . $ TapeProperties#ui..label_slider_9cxx . . $ Ui_TapePropertiesClass#label_slider_9.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 145 | uicxx . . $ TapeProperties#ui..maxsizeNumSpinboxcxx . . $ Ui_TapePropertiesClass#maxsizeNumSpinbox.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 146 | uicxx . . $ TapeProperties#ui..maxsizeUnitsSpinboxcxx . . $ Ui_TapePropertiesClass#maxsizeUnitsSpinbox.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 147 | uicxx . . $ TapeProperties#ui..maxsizeLabelcxx . . $ Ui_TapePropertiesClass#maxsizeLabel.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 148 | uicxx . . $ TapeProperties#ui..eotmarginSpinboxcxx . . $ Ui_TapePropertiesClass#eotmarginSpinbox.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 149 | uicxx . . $ TapeProperties#ui..eotmarginLabelcxx . . $ Ui_TapePropertiesClass#eotmarginLabel.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 150 | } |
| 151 | |
| 152 | void TapePropertiescxx . . $ TapeProperties#::scsicxx . . $ TapeProperties#scsi(b45ddcbc8423892c).(bool set) |
| 153 | { |
| 154 | if (set) |
| 155 | { |
| 156 | standardcxx . . $ TapeProperties#standard(b45ddcbc8423892c).(false); |
| 157 | uicxx . . $ TapeProperties#ui..tapeGroupBoxcxx . . $ Ui_TapePropertiesClass#tapeGroupBox.->setTitlecxx . . $ QGroupBox#setTitle(3520e46b33348bf6).("SCSI Tape"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 158 | } |
| 159 | uicxx . . $ TapeProperties#ui..noergCheckboxcxx . . $ Ui_TapePropertiesClass#noergCheckbox.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 160 | uicxx . . $ TapeProperties#ui..blkid32Checkboxcxx . . $ Ui_TapePropertiesClass#blkid32Checkbox.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 161 | } |
| 162 | |
| 163 | void TapePropertiescxx . . $ TapeProperties#::fileBrowsecxx . . $ TapeProperties#fileBrowse(49f6e7a06ebc5aa8).() |
| 164 | { |
| 165 | stdcxx . . $ std/::stringcxx . . $ std/string# s = QFileDialogcxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f).::getOpenFileNamecxx . . $ QFileDialog#getOpenFileName(a6b29be4bec65236).(this, |
| 166 | "Browse For Tape Files"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 167 | Preferencescxx . . $ QString#QString(85c52e162fed56f9).::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().configDircxx . . $ Preferences#configDir(219584694fe2b248).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(), |
| 168 | trcxx . . $ TapeProperties#tr(75d9f1c324b4579d).("All files(*)")).toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 169 | uicxx . . $ TapeProperties#ui..filenamecxx . . $ Ui_TapePropertiesClass#filename.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(scxx . . $ QString#QString(85c52e162fed56f9)..c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 170 | |
| 171 | } |
| 172 | |
| 173 | void TapePropertiescxx . . $ TapeProperties#::initializecxx . . $ TapeProperties#initialize(d220a453c8207c79).(ConfigLinecxx . . $ ConfigLine# & line) |
| 174 | { |
| 175 | uicxx . . $ TapeProperties#ui..deviceNumbercxx . . $ Ui_TapePropertiesClass#deviceNumber.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(linecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(0).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 176 | stdcxx . . $ std/::stringcxx . . $ std/string# dev = linecxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(1); |
| 177 | int type=0; |
| 178 | while(typescxx . . $ TapeProperties#types.[type].lengthcxx . . $ std/__cxx11/basic_string#length(48278e53df7b52a5).() > 0) |
| 179 | { |
| 180 | if (dev ==cxx . . $ std/`operator==`(2965e344aacb545b). typescxx . . $ TapeProperties#types.[type]) |
| 181 | uicxx . . $ TapeProperties#ui..tapeCombocxx . . $ Ui_TapePropertiesClass#tapeCombo.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(type); |
| 182 | type++; |
| 183 | } |
| 184 | standardcxx . . $ TapeProperties#standard(b45ddcbc8423892c).(true); |
| 185 | uicxx . . $ TapeProperties#ui..filenamecxx . . $ Ui_TapePropertiesClass#filename.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(linecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(2).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 186 | |
| 187 | for (int i=3; i<line.sizecxx . . $ ConfigLine#size(455f465bc33b4cdf).(); i++) |
| 188 | { |
| 189 | QStringcxx . . $ QString# tokencxx . . $ QString#QString(e1217c004a86c950). = linecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(i).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(); |
| 190 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(3,"token=" << token.toStdString()); |
| 191 | if (token.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "--no-erg") |
| 192 | { |
| 193 | uicxx . . $ TapeProperties#ui..noergCheckboxcxx . . $ Ui_TapePropertiesClass#noergCheckbox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true); |
| 194 | } |
| 195 | else if (token.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "--blkid-32") |
| 196 | { |
| 197 | uicxx . . $ TapeProperties#ui..blkid32Checkboxcxx . . $ Ui_TapePropertiesClass#blkid32Checkbox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true); |
| 198 | } |
| 199 | else if (token.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "awstape") |
| 200 | { |
| 201 | uicxx . . $ TapeProperties#ui..awsCheckboxcxx . . $ Ui_TapePropertiesClass#awsCheckbox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true); |
| 202 | } |
| 203 | if ( (token.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "compress=1") || |
| 204 | (token.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "idrc=1") ) |
| 205 | { |
| 206 | if (uicxx . . $ TapeProperties#ui..compressionComboboxcxx . . $ Ui_TapePropertiesClass#compressionCombobox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() == 0) |
| 207 | uicxx . . $ TapeProperties#ui..compressionComboboxcxx . . $ Ui_TapePropertiesClass#compressionCombobox.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(1); |
| 208 | } |
| 209 | if (token.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(0,7) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "method=") |
| 210 | { |
| 211 | if (token.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(7,1) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "z") |
| 212 | uicxx . . $ TapeProperties#ui..compressionComboboxcxx . . $ Ui_TapePropertiesClass#compressionCombobox.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(1); |
| 213 | else |
| 214 | uicxx . . $ TapeProperties#ui..compressionComboboxcxx . . $ Ui_TapePropertiesClass#compressionCombobox.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(2); |
| 215 | } |
| 216 | if (token.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(0,6) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "level=") |
| 217 | { |
| 218 | int level = ConfigurationEditorcxx . . $ ConfigurationEditor#::parseNumcxx . . $ ConfigurationEditor#parseNum(7b1020165ab78f0a).(tokencxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(6,1).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 219 | if (level >= 1 && level <=9) |
| 220 | uicxx . . $ TapeProperties#ui..compressionLevelSlidercxx . . $ Ui_TapePropertiesClass#compressionLevelSlider.->setValuecxx . . $ QAbstractSlider#setValue(d4f767463ce0a6b3).(level); |
| 221 | } |
| 222 | if (token.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(0,10) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "chunksize=") |
| 223 | { |
| 224 | int chunksize = ConfigurationEditorcxx . . $ ConfigurationEditor#::parseNumcxx . . $ ConfigurationEditor#parseNum(7b1020165ab78f0a).(tokencxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(10).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 225 | if (chunksize >= 4096 && chunksize <=65535) |
| 226 | uicxx . . $ TapeProperties#ui..chunkSizeSpinboxcxx . . $ Ui_TapePropertiesClass#chunkSizeSpinbox.->setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).(chunksize); |
| 227 | |
| 228 | } |
| 229 | if (token.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(0,8) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "maxsize=") |
| 230 | { |
| 231 | int maxsize = ConfigurationEditorcxx . . $ ConfigurationEditor#::parseNumcxx . . $ ConfigurationEditor#parseNum(7b1020165ab78f0a).(tokencxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(8).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 232 | uicxx . . $ TapeProperties#ui..maxsizeUnitsSpinboxcxx . . $ Ui_TapePropertiesClass#maxsizeUnitsSpinbox.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 233 | uicxx . . $ TapeProperties#ui..maxsizeNumSpinboxcxx . . $ Ui_TapePropertiesClass#maxsizeNumSpinbox.->setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).(maxsize); |
| 234 | } |
| 235 | if (token.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(0,9) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "maxsizek=") |
| 236 | { |
| 237 | int maxsize = ConfigurationEditorcxx . . $ ConfigurationEditor#::parseNumcxx . . $ ConfigurationEditor#parseNum(7b1020165ab78f0a).(tokencxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(9).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 238 | uicxx . . $ TapeProperties#ui..maxsizeUnitsSpinboxcxx . . $ Ui_TapePropertiesClass#maxsizeUnitsSpinbox.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(1); |
| 239 | uicxx . . $ TapeProperties#ui..maxsizeNumSpinboxcxx . . $ Ui_TapePropertiesClass#maxsizeNumSpinbox.->setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).(maxsize); |
| 240 | } |
| 241 | if (token.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(0,9) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "maxsizem=") |
| 242 | { |
| 243 | int maxsize = ConfigurationEditorcxx . . $ ConfigurationEditor#::parseNumcxx . . $ ConfigurationEditor#parseNum(7b1020165ab78f0a).(tokencxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(9).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 244 | uicxx . . $ TapeProperties#ui..maxsizeUnitsSpinboxcxx . . $ Ui_TapePropertiesClass#maxsizeUnitsSpinbox.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(2); |
| 245 | uicxx . . $ TapeProperties#ui..maxsizeNumSpinboxcxx . . $ Ui_TapePropertiesClass#maxsizeNumSpinbox.->setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).(maxsize); |
| 246 | } |
| 247 | if (token.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(0,10) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "eotmargin=") |
| 248 | { |
| 249 | int eotmargin = ConfigurationEditorcxx . . $ ConfigurationEditor#::parseNumcxx . . $ ConfigurationEditor#parseNum(7b1020165ab78f0a).(tokencxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(10).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 250 | uicxx . . $ TapeProperties#ui..eotmarginSpinboxcxx . . $ Ui_TapePropertiesClass#eotmarginSpinbox.->setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).(eotmargin); |
| 251 | } |
| 252 | if ( (token.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "readonly=1") || |
| 253 | (token.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ro") || |
| 254 | (token.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "noring") ) |
| 255 | { |
| 256 | uicxx . . $ TapeProperties#ui..readonlycheckboxcxx . . $ Ui_TapePropertiesClass#readonlycheckbox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true); |
| 257 | } |
| 258 | if (token.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "deonirq=1") |
| 259 | { |
| 260 | uicxx . . $ TapeProperties#ui..deonirqCheckboxcxx . . $ Ui_TapePropertiesClass#deonirqCheckbox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true); |
| 261 | } |
| 262 | if (token.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "noautomount") |
| 263 | { |
| 264 | uicxx . . $ TapeProperties#ui..noAutomountCheckboxcxx . . $ Ui_TapePropertiesClass#noAutomountCheckbox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true); |
| 265 | } |
| 266 | } |
| 267 | } |