| 1 | /* ---------------------------------- modifyDialog.cpp --------------------------------------------------------------------------- |
| 2 | Display a dialog. Adds a new or modifies an existing operation |
| 3 | |
| 4 | =============================================================================================================================== |
| 5 | =============================================================================================================================== |
| 6 | This file is part of "luckyBackup" project |
| 7 | Copyright, Loukas Avgeriou |
| 8 | luckyBackup is distributed under the terms of the GNU General Public License |
| 9 | luckyBackup is free software: you can redistribute it and/or modify |
| 10 | it under the terms of the GNU General Public License as published by |
| 11 | the Free Software Foundation, either version 3 of the License, or |
| 12 | (at your option) any later version. |
| 13 | |
| 14 | luckyBackup is distributed in the hope that it will be useful, |
| 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | GNU General Public License for more details. |
| 18 | |
| 19 | You should have received a copy of the GNU General Public License |
| 20 | along with luckyBackup. If not, see <http://www.gnu.org/licenses/>. |
| 21 | |
| 22 | |
| 23 | project version : Please see "main.cpp" for project version |
| 24 | |
| 25 | developer : luckyb |
| 26 | last modified : 05 Oct 2017 |
| 27 | |
| 28 | =============================================================================================================================== |
| 29 | =============================================================================================================================== |
| 30 | */ |
| 31 | |
| 32 | #include "modifyDialog.h"cxx . . $ `<file>/src/modifyDialog.h`/ |
| 33 | |
| 34 | #include <QSignalMapper> |
| 35 | #include <QCompleter> |
| 36 | #include <QDirModel> |
| 37 | #include <QFileDialog> |
| 38 | |
| 39 | #include "global.h"cxx . . $ `<file>/src/global.h`/ |
| 40 | |
| 41 | #include "textDialog.h"cxx . . $ `<file>/src/textDialog.h`/ |
| 42 | |
| 43 | // class modifyDialog Constructor================================================================================================= |
| 44 | // modify or create an operation |
| 45 | modifyDialogcxx . . $ modifyDialog#::modifyDialogcxx . . $ modifyDialog#modifyDialog(f8943853b7fb084f). (int ItemNo, QDialogcxx . . $ QDialog# *parent) : QDialogcxx . . $ QDialog#QDialog(872e7b0c281abd8d). (parent) |
| 46 | { |
| 47 | uiMcxx . . $ modifyDialog#uiM..setupUicxx . . $ Ui_modifyDialog#setupUi(d194de0c0f68c28b).(this); |
| 48 | |
| 49 | stdWindowWidthcxx . . $ modifyDialog#stdWindowWidth. = 540; |
| 50 | minWindowHeightcxx . . $ modifyDialog#minWindowHeight. = 265; //old value=245 |
| 51 | maxWindowHeightcxx . . $ modifyDialog#maxWindowHeight. = 690; //old value=565 |
| 52 | |
| 53 | uiMcxx . . $ modifyDialog#uiM..tabWidget_advancedcxx . . $ Ui_modifyDialog#tabWidget_advanced. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 54 | uiMcxx . . $ modifyDialog#uiM..comboBox_Typecxx . . $ Ui_modifyDialog#comboBox_Type. -> setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 55 | this -> resizecxx . . $ QWidget#resize(3e454b8ccf442868).(stdWindowWidthcxx . . $ modifyDialog#stdWindowWidth.,minWindowHeightcxx . . $ modifyDialog#minWindowHeight.); |
| 56 | ArrayPositioncxx . . $ modifyDialog#ArrayPosition. = ItemNo; |
| 57 | validationcxx . . $ Global/validation. = false; |
| 58 | listItemEditModecxx . . $ modifyDialog#listItemEditMode. = false; |
| 59 | |
| 60 | alsoExecuteTooltipcxx . . $ modifyDialog#alsoExecuteTooltip. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Leave the box checked, to <b>STOP</b> the execution of running task if this command exits with an error"); |
| 61 | QStringcxx . . $ QString# comLabel= trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("use boxes to <b>STOP</b> task execution on error", "Please leave the bold tags <b></b> intact and surrounding the word STOP translated"); |
| 62 | uiMcxx . . $ modifyDialog#uiM..label_executeBeforeListcxx . . $ Ui_modifyDialog#label_executeBeforeList. -> setTextcxx . . $ QLabel#setText(3520e46b33348bf6). ("<font color=red>" +cxx . . $ operator+(c75c3ae4eb9af1a8). comLabel +cxx . . $ operator+(3d22f08efddf8107). "</font>"); |
| 63 | uiMcxx . . $ modifyDialog#uiM..label_executeAfterListcxx . . $ Ui_modifyDialog#label_executeAfterList. -> setTextcxx . . $ QLabel#setText(3520e46b33348bf6). ("<font color=red>" +cxx . . $ operator+(c75c3ae4eb9af1a8). comLabel +cxx . . $ operator+(3d22f08efddf8107). "</font>"); |
| 64 | |
| 65 | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 66 | // Various gui initialization |
| 67 | //uiM.toolBox_options ->setItemEnabled (0,false); // different backend |
| 68 | |
| 69 | //Disable some stuff when windows is NOT running |
| 70 | if (!WINrunningcxx . . $ Global/WINrunning.) |
| 71 | { |
| 72 | uiMcxx . . $ modifyDialog#uiM..checkBox_vsscxx . . $ Ui_modifyDialog#checkBox_vss. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 73 | uiMcxx . . $ modifyDialog#uiM..checkBox_restorentcxx . . $ Ui_modifyDialog#checkBox_restorent. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 74 | uiMcxx . . $ modifyDialog#uiM..lineEdit_sshPasswordStrcxx . . $ Ui_modifyDialog#lineEdit_sshPasswordStr. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 75 | uiMcxx . . $ modifyDialog#uiM..lineEdit_sshOptionscxx . . $ Ui_modifyDialog#lineEdit_sshOptions. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 76 | uiMcxx . . $ modifyDialog#uiM..label_sshPassword_2cxx . . $ Ui_modifyDialog#label_sshPassword_2. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 77 | uiMcxx . . $ modifyDialog#uiM..label_sshPassword_2cxx . . $ Ui_modifyDialog#label_sshPassword_2. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 78 | } |
| 79 | else |
| 80 | uiMcxx . . $ modifyDialog#uiM..checkBox_vsscxx . . $ Ui_modifyDialog#checkBox_vss. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); // disable VSS until a better solution is found |
| 81 | |
| 82 | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 83 | |
| 84 | //connections ---------------------------------------------------------------------------------------------------- |
| 85 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_advancedcxx . . $ Ui_modifyDialog#pushButton_advanced., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( toggled(bool) ), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(advancedPressed(bool) ) ); //advanced pushButton |
| 86 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_cancelcxx . . $ Ui_modifyDialog#pushButton_cancel., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(cancelPressed() ) ); //cancel pushButton |
| 87 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_okaycxx . . $ Ui_modifyDialog#pushButton_okay., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(okayPressed() ) ); //okay pushButton |
| 88 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_commandcxx . . $ Ui_modifyDialog#pushButton_command., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(commandPressed() ) ); //show command pushButton |
| 89 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..comboBox_Typecxx . . $ Ui_modifyDialog#comboBox_Type., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( currentIndexChanged(int) ), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(TaskTypeChanged(int) ) ); //Actions when task type combo changes (hide/show stuff) |
| 90 | |
| 91 | //Connect all include tab stuff changes with the disableExcludeTab SLOT |
| 92 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiMcxx . . $ modifyDialog#uiM..checkBox_includeFilecxx . . $ Ui_modifyDialog#checkBox_includeFile., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`! (stateChanged(int) ), this , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(disableExcludeTab())); |
| 93 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiMcxx . . $ modifyDialog#uiM..lineEdit_includeFilecxx . . $ Ui_modifyDialog#lineEdit_includeFile., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`! (textChanged(QString) ), this , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(disableExcludeTab())); |
| 94 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiMcxx . . $ modifyDialog#uiM..radioButton_includeOnlycxx . . $ Ui_modifyDialog#radioButton_includeOnly., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`! (toggled(bool)), this , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(disableExcludeTab())); |
| 95 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiMcxx . . $ modifyDialog#uiM..radioButton_includeNormalcxx . . $ Ui_modifyDialog#radioButton_includeNormal., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`! (toggled(bool)), this , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(disableExcludeTab())); |
| 96 | |
| 97 | //Connect all add list items buttons with the addListItem SLOT |
| 98 | //Map all the pushButton signals and transmit a different integer depending on the pushbutton |
| 99 | QSignalMappercxx . . $ QSignalMapper# *signalMapper2 = new QSignalMappercxx . . $ QSignalMapper#(this); |
| 100 | signalMapper2 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_excludeAddcxx . . $ Ui_modifyDialog#pushButton_excludeAdd., 0 ); |
| 101 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_excludeAddcxx . . $ Ui_modifyDialog#pushButton_excludeAdd., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper2, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); //excludAdd pushButton |
| 102 | signalMapper2 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_includeAddcxx . . $ Ui_modifyDialog#pushButton_includeAdd., 1 ); |
| 103 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_includeAddcxx . . $ Ui_modifyDialog#pushButton_includeAdd., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper2, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); //includeAdd pushButton |
| 104 | signalMapper2 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_optionsAddcxx . . $ Ui_modifyDialog#pushButton_optionsAdd., 2 ); |
| 105 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_optionsAddcxx . . $ Ui_modifyDialog#pushButton_optionsAdd., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper2, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); //optionsAdd pushButton |
| 106 | signalMapper2 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeAddcxx . . $ Ui_modifyDialog#pushButton_executeBeforeAdd., 3 ); |
| 107 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeAddcxx . . $ Ui_modifyDialog#pushButton_executeBeforeAdd., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper2, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); //executeBeforeAdd pushButton |
| 108 | signalMapper2 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterAddcxx . . $ Ui_modifyDialog#pushButton_executeAfterAdd., 4 ); |
| 109 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterAddcxx . . $ Ui_modifyDialog#pushButton_executeAfterAdd., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper2, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); //executeAftereAdd pushButton |
| 110 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(signalMapper2, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(mapped( const int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!( addListItem( const int) ) ); |
| 111 | |
| 112 | //Connect all Remove list items buttons with the RemoveListItem SLOT |
| 113 | //Map all the pushButton signals and transmit a different integer depending on the pushbutton |
| 114 | QSignalMappercxx . . $ QSignalMapper# *signalMapper3 = new QSignalMappercxx . . $ QSignalMapper#(this); |
| 115 | signalMapper3 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_excludeRemovecxx . . $ Ui_modifyDialog#pushButton_excludeRemove., 0 ); |
| 116 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_excludeRemovecxx . . $ Ui_modifyDialog#pushButton_excludeRemove., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper3, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); //excludeRemove pushButton |
| 117 | signalMapper3 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_includeRemovecxx . . $ Ui_modifyDialog#pushButton_includeRemove., 1 ); |
| 118 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_includeRemovecxx . . $ Ui_modifyDialog#pushButton_includeRemove., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper3, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); //includeRemove pushButton |
| 119 | signalMapper3 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_optionsRemovecxx . . $ Ui_modifyDialog#pushButton_optionsRemove., 2 ); |
| 120 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_optionsRemovecxx . . $ Ui_modifyDialog#pushButton_optionsRemove., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper3, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); //optionsRemove pushButton |
| 121 | signalMapper3 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeRemovecxx . . $ Ui_modifyDialog#pushButton_executeBeforeRemove., 3 ); |
| 122 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeRemovecxx . . $ Ui_modifyDialog#pushButton_executeBeforeRemove., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper3, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); //executeBeforeRemove pushButton |
| 123 | signalMapper3 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterRemovecxx . . $ Ui_modifyDialog#pushButton_executeAfterRemove., 4 ); |
| 124 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterRemovecxx . . $ Ui_modifyDialog#pushButton_executeAfterRemove., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper3, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); //executeAfterRemove pushButton |
| 125 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(signalMapper3, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(mapped( const int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!( removeListItem( const int) ) ); |
| 126 | |
| 127 | //Connect all edit list items buttons with the editListItem SLOT |
| 128 | //Map all the pushButton signals and transmit a different integer depending on the pushbutton |
| 129 | QSignalMappercxx . . $ QSignalMapper# *signalMapper5 = new QSignalMappercxx . . $ QSignalMapper#(this); |
| 130 | signalMapper5 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_editExcludecxx . . $ Ui_modifyDialog#pushButton_editExclude., 0 ); |
| 131 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_editExcludecxx . . $ Ui_modifyDialog#pushButton_editExclude., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper5, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); //EditExclude pushButton |
| 132 | signalMapper5 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_editIncludecxx . . $ Ui_modifyDialog#pushButton_editInclude., 1 ); |
| 133 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_editIncludecxx . . $ Ui_modifyDialog#pushButton_editInclude., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper5, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); //EditInclude pushButton |
| 134 | signalMapper5 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_editOptionscxx . . $ Ui_modifyDialog#pushButton_editOptions., 2 ); |
| 135 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_editOptionscxx . . $ Ui_modifyDialog#pushButton_editOptions., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper5, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); //EditOptiions pushButton |
| 136 | signalMapper5 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_editExecuteBeforecxx . . $ Ui_modifyDialog#pushButton_editExecuteBefore., 3 ); |
| 137 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_editExecuteBeforecxx . . $ Ui_modifyDialog#pushButton_editExecuteBefore., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper5, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); //EditExecuteBefore pushButton |
| 138 | signalMapper5 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_editExecuteAftercxx . . $ Ui_modifyDialog#pushButton_editExecuteAfter., 4 ); |
| 139 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_editExecuteAftercxx . . $ Ui_modifyDialog#pushButton_editExecuteAfter., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper5, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); //EditExecuteAfter pushButton |
| 140 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(signalMapper5, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(mapped( const int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!( editListItem( const int) ) ); |
| 141 | |
| 142 | //Connect all "move up" list items buttons with the editListItem SLOT |
| 143 | //Map all the pushButton signals and transmit a different integer depending on the pushbutton |
| 144 | QSignalMappercxx . . $ QSignalMapper# *signalMapper6 = new QSignalMappercxx . . $ QSignalMapper#(this); |
| 145 | signalMapper6 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpExcludecxx . . $ Ui_modifyDialog#pushButton_moveUpExclude., 0 ); |
| 146 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpExcludecxx . . $ Ui_modifyDialog#pushButton_moveUpExclude., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper6, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); |
| 147 | signalMapper6 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpIncludecxx . . $ Ui_modifyDialog#pushButton_moveUpInclude., 1 ); |
| 148 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpIncludecxx . . $ Ui_modifyDialog#pushButton_moveUpInclude., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper6, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); |
| 149 | signalMapper6 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpOptionscxx . . $ Ui_modifyDialog#pushButton_moveUpOptions., 2 ); |
| 150 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpOptionscxx . . $ Ui_modifyDialog#pushButton_moveUpOptions., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper6, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); |
| 151 | signalMapper6 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpExecuteBeforecxx . . $ Ui_modifyDialog#pushButton_moveUpExecuteBefore., 3 ); |
| 152 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpExecuteBeforecxx . . $ Ui_modifyDialog#pushButton_moveUpExecuteBefore., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper6, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); |
| 153 | signalMapper6 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpExecuteAftercxx . . $ Ui_modifyDialog#pushButton_moveUpExecuteAfter., 4 ); |
| 154 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpExecuteAftercxx . . $ Ui_modifyDialog#pushButton_moveUpExecuteAfter., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper6, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); |
| 155 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(signalMapper6, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(mapped( const int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!( moveListItemUp( const int) ) ); |
| 156 | |
| 157 | //Connect all "move down" list items buttons with the editListItem SLOT |
| 158 | //Map all the pushButton signals and transmit a different integer depending on the pushbutton |
| 159 | QSignalMappercxx . . $ QSignalMapper# *signalMapper7 = new QSignalMappercxx . . $ QSignalMapper#(this); |
| 160 | signalMapper7 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownExcludecxx . . $ Ui_modifyDialog#pushButton_moveDownExclude., 0 ); |
| 161 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownExcludecxx . . $ Ui_modifyDialog#pushButton_moveDownExclude., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper7, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); |
| 162 | signalMapper7 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownIncludecxx . . $ Ui_modifyDialog#pushButton_moveDownInclude., 1 ); |
| 163 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownIncludecxx . . $ Ui_modifyDialog#pushButton_moveDownInclude., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper7, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); |
| 164 | signalMapper7 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownOptionscxx . . $ Ui_modifyDialog#pushButton_moveDownOptions., 2 ); |
| 165 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownOptionscxx . . $ Ui_modifyDialog#pushButton_moveDownOptions., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper7, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); |
| 166 | signalMapper7 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownExecuteBeforecxx . . $ Ui_modifyDialog#pushButton_moveDownExecuteBefore., 3 ); |
| 167 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownExecuteBeforecxx . . $ Ui_modifyDialog#pushButton_moveDownExecuteBefore., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper7, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); |
| 168 | signalMapper7 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownExecuteAftercxx . . $ Ui_modifyDialog#pushButton_moveDownExecuteAfter., 4 ); |
| 169 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownExecuteAftercxx . . $ Ui_modifyDialog#pushButton_moveDownExecuteAfter., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( pressed() ), signalMapper7, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(map() ) ); |
| 170 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(signalMapper7, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(mapped( const int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!( moveListItemDown( const int) ) ); |
| 171 | |
| 172 | //Connect all toolButtons with the browse SLOT |
| 173 | //Map all the toolButton signals and transmit a different integer depending on the toolbutton |
| 174 | QSignalMappercxx . . $ QSignalMapper# *signalMapper = new QSignalMappercxx . . $ QSignalMapper#(this); |
| 175 | signalMapper -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..toolButton_sourceBrowsecxx . . $ Ui_modifyDialog#toolButton_sourceBrowse., 0 ); |
| 176 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiMcxx . . $ modifyDialog#uiM..toolButton_sourceBrowsecxx . . $ Ui_modifyDialog#toolButton_sourceBrowse., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`! (clicked() ), signalMapper , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`! (map())); |
| 177 | signalMapper -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..toolButton_destinationBrowsecxx . . $ Ui_modifyDialog#toolButton_destinationBrowse., 1 ); |
| 178 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiMcxx . . $ modifyDialog#uiM..toolButton_destinationBrowsecxx . . $ Ui_modifyDialog#toolButton_destinationBrowse., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`! (clicked() ), signalMapper , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`! (map())); |
| 179 | signalMapper -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..toolButton_rsyncPasswordcxx . . $ Ui_modifyDialog#toolButton_rsyncPassword., 4 ); |
| 180 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiMcxx . . $ modifyDialog#uiM..toolButton_rsyncPasswordcxx . . $ Ui_modifyDialog#toolButton_rsyncPassword., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`! (clicked() ), signalMapper , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`! (map())); |
| 181 | signalMapper -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..toolButton_sshPasswordcxx . . $ Ui_modifyDialog#toolButton_sshPassword., 5 ); |
| 182 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiMcxx . . $ modifyDialog#uiM..toolButton_sshPasswordcxx . . $ Ui_modifyDialog#toolButton_sshPassword., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`! (clicked() ), signalMapper , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`! (map())); |
| 183 | signalMapper -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..toolButton_executeBeforeBrowsecxx . . $ Ui_modifyDialog#toolButton_executeBeforeBrowse., 6 ); |
| 184 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiMcxx . . $ modifyDialog#uiM..toolButton_executeBeforeBrowsecxx . . $ Ui_modifyDialog#toolButton_executeBeforeBrowse., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`! (clicked() ), signalMapper , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`! (map())); |
| 185 | signalMapper -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..toolButton_executeAfterBrowsecxx . . $ Ui_modifyDialog#toolButton_executeAfterBrowse., 7 ); |
| 186 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiMcxx . . $ modifyDialog#uiM..toolButton_executeAfterBrowsecxx . . $ Ui_modifyDialog#toolButton_executeAfterBrowse., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`! (clicked() ), signalMapper , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`! (map())); |
| 187 | signalMapper -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..toolButton_includeFilecxx . . $ Ui_modifyDialog#toolButton_includeFile., 8 ); |
| 188 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiMcxx . . $ modifyDialog#uiM..toolButton_includeFilecxx . . $ Ui_modifyDialog#toolButton_includeFile., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`! (clicked() ), signalMapper , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`! (map())); |
| 189 | signalMapper -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..toolButton_excludeFilecxx . . $ Ui_modifyDialog#toolButton_excludeFile., 9 ); |
| 190 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiMcxx . . $ modifyDialog#uiM..toolButton_excludeFilecxx . . $ Ui_modifyDialog#toolButton_excludeFile., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`! (clicked() ), signalMapper , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`! (map())); |
| 191 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(signalMapper, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(mapped( const int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!( browse( const int) ) ); |
| 192 | |
| 193 | //Connect all pattern toolButtons with the getPattern SLOT |
| 194 | //Map all the toolButton signals and transmit a different integer depending on the toolbutton |
| 195 | QSignalMappercxx . . $ QSignalMapper# *signalMapper4 = new QSignalMappercxx . . $ QSignalMapper#(this); |
| 196 | signalMapper4 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..toolButton_excludeAddPatterncxx . . $ Ui_modifyDialog#toolButton_excludeAddPattern., 0 ); |
| 197 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiMcxx . . $ modifyDialog#uiM..toolButton_excludeAddPatterncxx . . $ Ui_modifyDialog#toolButton_excludeAddPattern., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`! (clicked() ), signalMapper4 , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`! (map())); |
| 198 | signalMapper4 -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiMcxx . . $ modifyDialog#uiM..toolButton_includeAddPatterncxx . . $ Ui_modifyDialog#toolButton_includeAddPattern., 1 ); |
| 199 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiMcxx . . $ modifyDialog#uiM..toolButton_includeAddPatterncxx . . $ Ui_modifyDialog#toolButton_includeAddPattern., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`! (clicked() ), signalMapper4 , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`! (map())); |
| 200 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(signalMapper4, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(mapped( const int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!( getPattern( const int) ) ); |
| 201 | |
| 202 | // ssh password file default value |
| 203 | // I do not consider this a good idea, because the default option should be a blank field (no ssh key file) |
| 204 | // If the user clicks the browse button , he/she will be transfered to the ~/.ssh dir as default |
| 205 | /* |
| 206 | if ( (uiM.lineEdit_sshPassword -> text() == "" ) && (!WINrunning) ) |
| 207 | { |
| 208 | if (!WINrunning) |
| 209 | uiM.lineEdit_sshPassword -> setText( myHome + SLASH +".ssh" + SLASH +"id_rsa"); |
| 210 | else |
| 211 | uiM.lineEdit_sshPassword -> setText(luckyBackupDir+"id_rsa"); |
| 212 | } |
| 213 | */ |
| 214 | |
| 215 | if (ArrayPositioncxx . . $ modifyDialog#ArrayPosition. < TotalOperationscxx . . $ Global/TotalOperations.) //if modify is pressed fill the fields first with existing operation data |
| 216 | fillModifyWindowcxx . . $ modifyDialog#fillModifyWindow(b4c25c12f379bf65).(Operationcxx . . $ Global/Operation.[ArrayPositioncxx . . $ modifyDialog#ArrayPosition.]); |
| 217 | |
| 218 | disableExcludeTabcxx . . $ modifyDialog#disableExcludeTab(49f6e7a06ebc5aa8).(); // disable the exclude tab or nothing |
| 219 | |
| 220 | StdArgumentscxx . . $ modifyDialog#StdArguments. <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "-h"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "--progress"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "--stats"cxx . . $ QString#QString(85c52e162fed56f9).; //These are the standard arguments used by rsync |
| 221 | |
| 222 | //initialize a completer for the lineEdits |
| 223 | QCompletercxx . . $ QCompleter# *completer = new QCompletercxx . . $ QCompleter#QCompleter(749de1b6ae65bddd).(this); |
| 224 | completer -> setModelcxx . . $ QCompleter#setModel(c6e1f1e42522b780).(new QDirModelcxx . . $ QDirModel#(completer)); |
| 225 | uiMcxx . . $ modifyDialog#uiM..lineEdit_sourcecxx . . $ Ui_modifyDialog#lineEdit_source. -> setCompletercxx . . $ QLineEdit#setCompleter(638321c80ff6aea).(completer); |
| 226 | uiMcxx . . $ modifyDialog#uiM..lineEdit_destinationcxx . . $ Ui_modifyDialog#lineEdit_destination. -> setCompletercxx . . $ QLineEdit#setCompleter(638321c80ff6aea).(completer); |
| 227 | uiMcxx . . $ modifyDialog#uiM..lineEdit_excludeAddcxx . . $ Ui_modifyDialog#lineEdit_excludeAdd. -> setCompletercxx . . $ QLineEdit#setCompleter(638321c80ff6aea).(completer); |
| 228 | uiMcxx . . $ modifyDialog#uiM..lineEdit_rsyncPasswordcxx . . $ Ui_modifyDialog#lineEdit_rsyncPassword. -> setCompletercxx . . $ QLineEdit#setCompleter(638321c80ff6aea).(completer); |
| 229 | uiMcxx . . $ modifyDialog#uiM..lineEdit_sshPasswordcxx . . $ Ui_modifyDialog#lineEdit_sshPassword. -> setCompletercxx . . $ QLineEdit#setCompleter(638321c80ff6aea).(completer); |
| 230 | uiMcxx . . $ modifyDialog#uiM..lineEdit_executeBeforeAddcxx . . $ Ui_modifyDialog#lineEdit_executeBeforeAdd. -> setCompletercxx . . $ QLineEdit#setCompleter(638321c80ff6aea).(completer); |
| 231 | uiMcxx . . $ modifyDialog#uiM..lineEdit_executeAfterAddcxx . . $ Ui_modifyDialog#lineEdit_executeAfterAdd. -> setCompletercxx . . $ QLineEdit#setCompleter(638321c80ff6aea).(completer); |
| 232 | uiMcxx . . $ modifyDialog#uiM..lineEdit_excludeFilecxx . . $ Ui_modifyDialog#lineEdit_excludeFile. -> setCompletercxx . . $ QLineEdit#setCompleter(638321c80ff6aea).(completer); |
| 233 | uiMcxx . . $ modifyDialog#uiM..lineEdit_includeFilecxx . . $ Ui_modifyDialog#lineEdit_includeFile. -> setCompletercxx . . $ QLineEdit#setCompleter(638321c80ff6aea).(completer); |
| 234 | } |
| 235 | //=================================================================================================================================================== |
| 236 | //------------------------------------------------------------------SLOTS---------------------------------------------------------------------------- |
| 237 | //=================================================================================================================================================== |
| 238 | |
| 239 | // advanced button pressed===================================================================================================== |
| 240 | // hides or shows part of the widget |
| 241 | void modifyDialogcxx . . $ modifyDialog#::advancedPressedcxx . . $ modifyDialog#advancedPressed(b45ddcbc8423892c).(bool advanced) |
| 242 | { |
| 243 | int windowWidth = (this -> sizecxx . . $ QWidget#size(4b3b776e5ee2b367).()).widthcxx . . $ QSize#width(ea6fe5115c70a13f).(); |
| 244 | if (advanced) |
| 245 | { |
| 246 | uiMcxx . . $ modifyDialog#uiM..tabWidget_advancedcxx . . $ Ui_modifyDialog#tabWidget_advanced. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(true); |
| 247 | uiMcxx . . $ modifyDialog#uiM..pushButton_advancedcxx . . $ Ui_modifyDialog#pushButton_advanced. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("simple")); |
| 248 | this -> resizecxx . . $ QWidget#resize(3e454b8ccf442868).(windowWidth,maxWindowHeightcxx . . $ modifyDialog#maxWindowHeight.); |
| 249 | } |
| 250 | else |
| 251 | { |
| 252 | uiMcxx . . $ modifyDialog#uiM..tabWidget_advancedcxx . . $ Ui_modifyDialog#tabWidget_advanced. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 253 | uiMcxx . . $ modifyDialog#uiM..pushButton_advancedcxx . . $ Ui_modifyDialog#pushButton_advanced. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("advanced")); |
| 254 | this -> resizecxx . . $ QWidget#resize(3e454b8ccf442868).(windowWidth,minWindowHeightcxx . . $ modifyDialog#minWindowHeight.); |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | // cancel button pressed===================================================================================================== |
| 259 | void modifyDialogcxx . . $ modifyDialog#::cancelPressedcxx . . $ modifyDialog#cancelPressed(49f6e7a06ebc5aa8).() |
| 260 | { |
| 261 | modifyOKcxx . . $ Global/modifyOK. = false; |
| 262 | modifyConnectedcxx . . $ Global/modifyConnected. = false; |
| 263 | closecxx . . $ QWidget#close(c9857a73d68e59ba).(); //emmit a QcloseEvent |
| 264 | } |
| 265 | |
| 266 | //window closebutton pressed or QcloseEvent emitted========================================================================== |
| 267 | void modifyDialogcxx . . $ modifyDialog#::closeEventcxx . . $ modifyDialog#closeEvent(642e80679aeb34f8).(QCloseEventcxx . . $ QCloseEvent# *event) |
| 268 | { |
| 269 | event->acceptcxx . . $ QEvent#accept(49f6e7a06ebc5aa8).(); |
| 270 | } |
| 271 | |
| 272 | // browse button pressed===================================================================================================== |
| 273 | //opens a QFileDialog to browse for files/folders locally |
| 274 | void modifyDialogcxx . . $ modifyDialog#::browsecxx . . $ modifyDialog#browse(d4f767463ce0a6b3).(const int type) |
| 275 | { |
| 276 | QStringcxx . . $ QString# newLineEditcxx . . $ QString#QString(ced63f7c635d850d).; |
| 277 | switch (type) |
| 278 | { |
| 279 | //source browse button |
| 280 | case 0: newLineEdit =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QFileDialogcxx . . $ QFileDialog#::getExistingDirectorycxx . . $ QFileDialog#getExistingDirectory(a1339ef2a1b3555a). (this, trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Select source directory", |
| 281 | "file selection dialog title"),uiMcxx . . $ modifyDialog#uiM..lineEdit_sourcecxx . . $ Ui_modifyDialog#lineEdit_source. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()); |
| 282 | if (newLineEdit !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") //if something is selected indeed |
| 283 | uiMcxx . . $ modifyDialog#uiM..lineEdit_sourcecxx . . $ Ui_modifyDialog#lineEdit_source. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(modifyOS2Slashescxx . . $ modifyDialog#modifyOS2Slashes(f7f320d754b8fd09).(newLineEditcxx . . $ QString#QString(132dd6869045752b).)); |
| 284 | break; |
| 285 | //destination browse button |
| 286 | case 1: newLineEdit =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QFileDialogcxx . . $ QFileDialog#::getExistingDirectorycxx . . $ QFileDialog#getExistingDirectory(a1339ef2a1b3555a). (this, trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Select destination directory", |
| 287 | "file selection dialog title"),uiMcxx . . $ modifyDialog#uiM..lineEdit_destinationcxx . . $ Ui_modifyDialog#lineEdit_destination. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()); |
| 288 | if (newLineEdit !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") //if something is selected indeed |
| 289 | uiMcxx . . $ modifyDialog#uiM..lineEdit_destinationcxx . . $ Ui_modifyDialog#lineEdit_destination. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(modifyOS2Slashescxx . . $ modifyDialog#modifyOS2Slashes(f7f320d754b8fd09).(newLineEditcxx . . $ QString#QString(132dd6869045752b).)); |
| 290 | break; |
| 291 | //rsync password file browse button |
| 292 | case 4: newLineEdit =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QFileDialogcxx . . $ QFileDialog#::getOpenFileNamecxx . . $ QFileDialog#getOpenFileName(a6b29be4bec65236). (this, trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Select rsync password file", |
| 293 | "file selection dialog title"), myHomecxx . . $ Global/myHome.); |
| 294 | if (newLineEdit !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") //if something is selected indeed |
| 295 | uiMcxx . . $ modifyDialog#uiM..lineEdit_rsyncPasswordcxx . . $ Ui_modifyDialog#lineEdit_rsyncPassword. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(modifyOS2Slashescxx . . $ modifyDialog#modifyOS2Slashes(f7f320d754b8fd09).(newLineEditcxx . . $ QString#QString(132dd6869045752b).)); |
| 296 | break; |
| 297 | //ssh password file browse button |
| 298 | case 5: if (!WINrunningcxx . . $ Global/WINrunning.) |
| 299 | newLineEdit =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QFileDialogcxx . . $ QFileDialog#::getOpenFileNamecxx . . $ QFileDialog#getOpenFileName(a6b29be4bec65236). (this, trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Select ssh keyfile", "file selection dialog title"), myHomecxx . . $ Global/myHome. +cxx . . $ operator+(fab9b4f80031f353). SLASHcxx . . $ Global/SLASH. +cxx . . $ operator+(3d22f08efddf8107).".ssh"); |
| 300 | else |
| 301 | newLineEdit =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QFileDialogcxx . . $ QFileDialog#::getOpenFileNamecxx . . $ QFileDialog#getOpenFileName(a6b29be4bec65236). (this, trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Select ssh keyfile", "file selection dialog title"), luckyBackupDircxx . . $ Global/luckyBackupDir.); |
| 302 | if (newLineEdit !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") //if something is selected indeed |
| 303 | uiMcxx . . $ modifyDialog#uiM..lineEdit_sshPasswordcxx . . $ Ui_modifyDialog#lineEdit_sshPassword. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(modifyOS2Slashescxx . . $ modifyDialog#modifyOS2Slashes(f7f320d754b8fd09).(newLineEditcxx . . $ QString#QString(132dd6869045752b).)); |
| 304 | break; |
| 305 | //execute before browse button |
| 306 | case 6: newLineEdit =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QFileDialogcxx . . $ QFileDialog#::getOpenFileNamecxx . . $ QFileDialog#getOpenFileName(a6b29be4bec65236). (this, trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Select command to be executed", |
| 307 | "file selection dialog title"),SLASHcxx . . $ Global/SLASH.); |
| 308 | if (newLineEdit !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") //if something is selected indeed |
| 309 | uiMcxx . . $ modifyDialog#uiM..lineEdit_executeBeforeAddcxx . . $ Ui_modifyDialog#lineEdit_executeBeforeAdd. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(modifyOS2Slashescxx . . $ modifyDialog#modifyOS2Slashes(f7f320d754b8fd09).(newLineEditcxx . . $ QString#QString(132dd6869045752b).)); |
| 310 | break; |
| 311 | //execute after browse button |
| 312 | case 7: newLineEdit =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QFileDialogcxx . . $ QFileDialog#::getOpenFileNamecxx . . $ QFileDialog#getOpenFileName(a6b29be4bec65236). (this, trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Select command to be executed", |
| 313 | "file selection dialog title"),SLASHcxx . . $ Global/SLASH.); |
| 314 | if (newLineEdit !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") //if something is selected indeed |
| 315 | uiMcxx . . $ modifyDialog#uiM..lineEdit_executeAfterAddcxx . . $ Ui_modifyDialog#lineEdit_executeAfterAdd. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(modifyOS2Slashescxx . . $ modifyDialog#modifyOS2Slashes(f7f320d754b8fd09).(newLineEditcxx . . $ QString#QString(132dd6869045752b).)); |
| 316 | break; |
| 317 | //include from file browse button |
| 318 | case 8: newLineEdit =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QFileDialogcxx . . $ QFileDialog#::getOpenFileNamecxx . . $ QFileDialog#getOpenFileName(a6b29be4bec65236). (this, trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Select file to read include patterns", |
| 319 | "file selection dialog title"),myHomecxx . . $ Global/myHome.); |
| 320 | if (newLineEdit !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") //if something is selected indeed |
| 321 | uiMcxx . . $ modifyDialog#uiM..lineEdit_includeFilecxx . . $ Ui_modifyDialog#lineEdit_includeFile. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(modifyOS2Slashescxx . . $ modifyDialog#modifyOS2Slashes(f7f320d754b8fd09).(newLineEditcxx . . $ QString#QString(132dd6869045752b).)); |
| 322 | break; |
| 323 | //exclude from file browse button |
| 324 | case 9: newLineEdit =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QFileDialogcxx . . $ QFileDialog#::getOpenFileNamecxx . . $ QFileDialog#getOpenFileName(a6b29be4bec65236). (this, trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Select file to read exclude patterns", |
| 325 | "file selection dialog title"),myHomecxx . . $ Global/myHome.); |
| 326 | if (newLineEdit !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") //if something is selected indeed |
| 327 | uiMcxx . . $ modifyDialog#uiM..lineEdit_excludeFilecxx . . $ Ui_modifyDialog#lineEdit_excludeFile. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(modifyOS2Slashescxx . . $ modifyDialog#modifyOS2Slashes(f7f320d754b8fd09).(newLineEditcxx . . $ QString#QString(132dd6869045752b).)); |
| 328 | break; |
| 329 | } |
| 330 | |
| 331 | } |
| 332 | |
| 333 | // pattern button pressed===================================================================================================== |
| 334 | //launches the pattern editor |
| 335 | void modifyDialogcxx . . $ modifyDialog#::getPatterncxx . . $ modifyDialog#getPattern(d4f767463ce0a6b3).(const int type) |
| 336 | { |
| 337 | if (uiMcxx . . $ modifyDialog#uiM..lineEdit_sourcecxx . . $ Ui_modifyDialog#lineEdit_source. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "") //if the source isn't defined yet |
| 338 | { |
| 339 | textDialogcxx . . $ textDialog# textdialogWcxx . . $ textDialog#textDialog(9c8c077708043c75). ("QtWarning"cxx . . $ QString#QString(85c52e162fed56f9)., trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Please define the source before launching the pattern editor","message box, message")+cxx . . $ operator+(3d22f08efddf8107)." !!", this); |
| 340 | textdialogW.execcxx . . $ QDialog#exec(b126dc7c1de90089).(); |
| 341 | return; |
| 342 | } |
| 343 | |
| 344 | modifyTrailingcxx . . $ modifyDialog#modifyTrailing(49f6e7a06ebc5aa8).(); // first modify the trailing of the source & destination directories |
| 345 | |
| 346 | QStringcxx . . $ QString# NewPattern = ""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 347 | |
| 348 | patternEditorcxx . . $ patternEditor# patterneditorcxx . . $ patternEditor#patternEditor(c2ce7417dc68f8ba).(uiMcxx . . $ modifyDialog#uiM..lineEdit_sourcecxx . . $ Ui_modifyDialog#lineEdit_source. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(), this); |
| 349 | patterneditor.execcxx . . $ QDialog#exec(b126dc7c1de90089).(); |
| 350 | |
| 351 | NewPattern =cxx . . $ QString#`operator=`(4f35bf974e7f8568). patterneditor.getPatterncxx . . $ patternEditor#getPattern(4365c3963150523e).(); |
| 352 | if (NewPattern ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "no pattern defined yet") // cancel pressed at the pattern editor |
| 353 | return; |
| 354 | switch (type) |
| 355 | { |
| 356 | // insert the pattern to the exclude lineEdit |
| 357 | case 0: uiMcxx . . $ modifyDialog#uiM..lineEdit_excludeAddcxx . . $ Ui_modifyDialog#lineEdit_excludeAdd. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(NewPattern); |
| 358 | break; |
| 359 | // insert the pattern to the incude lineEdit |
| 360 | case 1: uiMcxx . . $ modifyDialog#uiM..lineEdit_includeAddcxx . . $ Ui_modifyDialog#lineEdit_includeAdd. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(NewPattern); |
| 361 | break; |
| 362 | } |
| 363 | } |
| 364 | // okay button pressed======================================================================================================= |
| 365 | // Read all fields of modify operation dialog and fill appropriate variables |
| 366 | // ...after performing some checks & changes !! |
| 367 | void modifyDialogcxx . . $ modifyDialog#::okayPressedcxx . . $ modifyDialog#okayPressed(49f6e7a06ebc5aa8).() |
| 368 | { |
| 369 | modifyOKcxx . . $ Global/modifyOK. = true; |
| 370 | messagecxx . . $ Global/message. =cxx . . $ QString#`operator=`(d02845eef0c33901). ""; |
| 371 | |
| 372 | // Strip off invalid characters from task name |
| 373 | uiMcxx . . $ modifyDialog#uiM..lineEdit_namecxx . . $ Ui_modifyDialog#lineEdit_name. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(stripInvalidCharacterscxx . . $ modifyDialog#stripInvalidCharacters(f7f320d754b8fd09).(uiMcxx . . $ modifyDialog#uiM..lineEdit_namecxx . . $ Ui_modifyDialog#lineEdit_name. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).())); |
| 374 | |
| 375 | //if name or source or destination is missing do not proceed ----------------------------------------------------------- |
| 376 | if ( (uiMcxx . . $ modifyDialog#uiM..lineEdit_namecxx . . $ Ui_modifyDialog#lineEdit_name. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "") || (uiMcxx . . $ modifyDialog#uiM..lineEdit_destinationcxx . . $ Ui_modifyDialog#lineEdit_destination. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "") || (uiMcxx . . $ modifyDialog#uiM..lineEdit_sourcecxx . . $ Ui_modifyDialog#lineEdit_source. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "") ) |
| 377 | { |
| 378 | modifyOKcxx . . $ Global/modifyOK. = false; |
| 379 | messagecxx . . $ Global/message..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(/*"<b>"+tr("ERROR","message box message")+":</b> "+*/ |
| 380 | trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Please specify the following before proceeding:","message box, message")); |
| 381 | if (uiMcxx . . $ modifyDialog#uiM..lineEdit_namecxx . . $ Ui_modifyDialog#lineEdit_name. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "") |
| 382 | messagecxx . . $ Global/message..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("<br>"+cxx . . $ operator+(c75c3ae4eb9af1a8).trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Task name")); |
| 383 | if (uiMcxx . . $ modifyDialog#uiM..lineEdit_destinationcxx . . $ Ui_modifyDialog#lineEdit_destination. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "") |
| 384 | messagecxx . . $ Global/message..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("<br>"+cxx . . $ operator+(c75c3ae4eb9af1a8).trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Destination")); |
| 385 | if (uiMcxx . . $ modifyDialog#uiM..lineEdit_sourcecxx . . $ Ui_modifyDialog#lineEdit_source. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "") |
| 386 | messagecxx . . $ Global/message..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("<br>"+cxx . . $ operator+(c75c3ae4eb9af1a8).trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Source")); |
| 387 | messagecxx . . $ Global/message..appendcxx . . $ QString#append(d02845eef0c33901).("<br><br>"); |
| 388 | } |
| 389 | |
| 390 | //check if / is declared as source and backup dir by name as operation type ------------------------------------------------ |
| 391 | if ((uiMcxx . . $ modifyDialog#uiM..lineEdit_sourcecxx . . $ Ui_modifyDialog#lineEdit_source. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "/") && (uiMcxx . . $ modifyDialog#uiM..comboBox_Typecxx . . $ Ui_modifyDialog#comboBox_Type. -> currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).()==0) && (!uiMcxx . . $ modifyDialog#uiM..checkBox_backupContentscxx . . $ Ui_modifyDialog#checkBox_backupContents. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).())) |
| 392 | { |
| 393 | modifyOKcxx . . $ Global/modifyOK. = false; |
| 394 | messagecxx . . $ Global/message..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(/*"<b>"+tr("ERROR","message box message - line1")+":</b> "+*/ |
| 395 | trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("You have declared the '/' (root) directory as source and have NOT checked the 'Do NOT create extra directory' box","message box message - line1")+cxx . . $ operator+(3d22f08efddf8107)."<br>"+cxx . . $ operator+(fab9b4f80031f353). |
| 396 | trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("That is not allowed because '/' does not have an actual name","message box message - line2")+cxx . . $ operator+(3d22f08efddf8107)." !!<br>" |
| 397 | "..."+cxx . . $ operator+(fab9b4f80031f353).trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Please check the relevant box before proceeding","message box message - line3")+cxx . . $ operator+(3d22f08efddf8107)."<br><br>"); |
| 398 | } |
| 399 | //same for OS2 or win |
| 400 | if (((uiMcxx . . $ modifyDialog#uiM..lineEdit_sourcecxx . . $ Ui_modifyDialog#lineEdit_source. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()).endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(":\\"cxx . . $ QString#QString(85c52e162fed56f9).)) && (uiMcxx . . $ modifyDialog#uiM..comboBox_Typecxx . . $ Ui_modifyDialog#comboBox_Type. -> currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).()==0) && (!uiMcxx . . $ modifyDialog#uiM..checkBox_backupContentscxx . . $ Ui_modifyDialog#checkBox_backupContents. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 401 | && (notXnixRunningcxx . . $ Global/notXnixRunning.) ) |
| 402 | { |
| 403 | modifyOKcxx . . $ Global/modifyOK. = false; |
| 404 | messagecxx . . $ Global/message..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(/*"<b>"+tr("ERROR","message box message - line1")+":</b> "+*/ |
| 405 | trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("You have declared the root directory of an entire partition as source and have NOT checked the 'Do NOT create extra directory' box","message box message - line1")+cxx . . $ operator+(3d22f08efddf8107)."<br>"+cxx . . $ operator+(fab9b4f80031f353). |
| 406 | trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("That is not allowed because the root partition does not have an actual name","message box message - line2")+cxx . . $ operator+(3d22f08efddf8107)." !!<br>" |
| 407 | "..."+cxx . . $ operator+(fab9b4f80031f353).trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Please check the relevant box before proceeding","message box message - line3")+cxx . . $ operator+(3d22f08efddf8107)."<br><br>"); |
| 408 | } |
| 409 | |
| 410 | //check if the operation name already exists to proceed -------------------------------------------------------------------- |
| 411 | countcxx . . $ modifyDialog#count.=0; |
| 412 | while (countcxx . . $ modifyDialog#count. < TotalOperationscxx . . $ Global/TotalOperations.) |
| 413 | { |
| 414 | if ( ((uiMcxx . . $ modifyDialog#uiM..lineEdit_namecxx . . $ Ui_modifyDialog#lineEdit_name. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()) ==cxx . . $ `operator==`(5bc2975d2d751687). (Operationcxx . . $ Global/Operation.[countcxx . . $ modifyDialog#count.] -> GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).()) ) && (countcxx . . $ modifyDialog#count. != ArrayPositioncxx . . $ modifyDialog#ArrayPosition.) ) |
| 415 | { |
| 416 | modifyOKcxx . . $ Global/modifyOK. = false; |
| 417 | messagecxx . . $ Global/message..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(/*"<b>"+tr("ERROR","message box message - line1")+":</b> "+*/ |
| 418 | trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("The name of the task you requested already exists","message box message - line1")+cxx . . $ operator+(3d22f08efddf8107)." !!<br>" |
| 419 | "..."+cxx . . $ operator+(fab9b4f80031f353).trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Please specify a different name before proceeding","message box message - line2")+cxx . . $ operator+(3d22f08efddf8107)."<br><br>"); |
| 420 | break; |
| 421 | } |
| 422 | countcxx . . $ modifyDialog#count.++; |
| 423 | } |
| 424 | |
| 425 | modifyTrailingcxx . . $ modifyDialog#modifyTrailing(49f6e7a06ebc5aa8).(); //do some changes according to radio button "operation type" |
| 426 | |
| 427 | //perform this if both source & destination are not empty |
| 428 | if ( ((uiMcxx . . $ modifyDialog#uiM..lineEdit_sourcecxx . . $ Ui_modifyDialog#lineEdit_source. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()) !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") && ((uiMcxx . . $ modifyDialog#uiM..lineEdit_destinationcxx . . $ Ui_modifyDialog#lineEdit_destination. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()) !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "" ) ) |
| 429 | { |
| 430 | //check if source & destination are the same to proceed ------------------------------------------------------------------ |
| 431 | if ((( (uiMcxx . . $ modifyDialog#uiM..lineEdit_sourcecxx . . $ Ui_modifyDialog#lineEdit_source. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()) ==cxx . . $ `operator==`(5bc2975d2d751687). (uiMcxx . . $ modifyDialog#uiM..lineEdit_destinationcxx . . $ Ui_modifyDialog#lineEdit_destination. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()) ) |
| 432 | || ( (uiMcxx . . $ modifyDialog#uiM..lineEdit_sourcecxx . . $ Ui_modifyDialog#lineEdit_source. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() +cxx . . $ operator+(fab9b4f80031f353). SLASHcxx . . $ Global/SLASH.) ==cxx . . $ `operator==`(5bc2975d2d751687). (uiMcxx . . $ modifyDialog#uiM..lineEdit_destinationcxx . . $ Ui_modifyDialog#lineEdit_destination. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()) ) ) && (!uiMcxx . . $ modifyDialog#uiM..groupBox_remotecxx . . $ Ui_modifyDialog#groupBox_remote. -> isCheckedcxx . . $ QGroupBox#isChecked(50ce9a9e25b4a850).()) ) |
| 433 | { |
| 434 | modifyOKcxx . . $ Global/modifyOK. = false; |
| 435 | messagecxx . . $ Global/message..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(/*"<b>"+tr("ERROR","message box message - line1")+":</b> "+*/ |
| 436 | trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("The source you have declared is identical to the destination","message box message - line1")+cxx . . $ operator+(3d22f08efddf8107)." !!<br>" |
| 437 | "..."+cxx . . $ operator+(fab9b4f80031f353).trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Please modify at least one of them","message box message - line2")+cxx . . $ operator+(3d22f08efddf8107)."<br><br>"); |
| 438 | } |
| 439 | else //check if the destination is part of the source directory structure ------------------------------------------------ |
| 440 | if ( ((uiMcxx . . $ modifyDialog#uiM..lineEdit_destinationcxx . . $ Ui_modifyDialog#lineEdit_destination. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()).containscxx . . $ QString#contains(8cce4688c16f48f3).(uiMcxx . . $ modifyDialog#uiM..lineEdit_sourcecxx . . $ Ui_modifyDialog#lineEdit_source. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(), Qtcxx . . $ Qt/::CaseSensitivecxx . . $ Qt/CaseSensitive.) ) |
| 441 | || ((uiMcxx . . $ modifyDialog#uiM..lineEdit_destinationcxx . . $ Ui_modifyDialog#lineEdit_destination. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()).containscxx . . $ QString#contains(8cce4688c16f48f3).(uiMcxx . . $ modifyDialog#uiM..lineEdit_sourcecxx . . $ Ui_modifyDialog#lineEdit_source. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() +cxx . . $ operator+(fab9b4f80031f353). SLASHcxx . . $ Global/SLASH., Qtcxx . . $ Qt/::CaseSensitivecxx . . $ Qt/CaseSensitive.)) ) |
| 442 | messagecxx . . $ Global/message..prependcxx . . $ QString#prepend(6a89d0b7f4d2681c).(/*"<b>"+tr("WARNING","message box message - line1")+":</b> "+*/ |
| 443 | trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("You have declared a destination that is part of the source directory structure", |
| 444 | "message box message - line1")+cxx . . $ operator+(3d22f08efddf8107)."<br>" |
| 445 | +cxx . . $ operator+(fab9b4f80031f353).trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("<b>Do not forget</b> to define a directory at the 'exclude' groupbox that will contain the destination", |
| 446 | "message box message - line2. Please leave tag <b>,</b> intact and surrounding 'do not forget' translated")+cxx . . $ operator+(3d22f08efddf8107)."<br><br>"); |
| 447 | } |
| 448 | |
| 449 | //"recursive" has to be checked for --delete-after to operate ------------------------------------------------------------- |
| 450 | if ( (uiMcxx . . $ modifyDialog#uiM..checkBox_deleteAftercxx . . $ Ui_modifyDialog#checkBox_deleteAfter. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) && !(uiMcxx . . $ modifyDialog#uiM..checkBox_recursecxx . . $ Ui_modifyDialog#checkBox_recurse. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) ) |
| 451 | { |
| 452 | modifyOKcxx . . $ Global/modifyOK. = false; |
| 453 | messagecxx . . $ Global/message..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(/*"<b>"+tr("ERROR","message box message - line1")+":</b> "+*/ |
| 454 | trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("You have checked the 'delete files on the destination' option","message box message - line2") +cxx . . $ operator+(3d22f08efddf8107). "<br>" +cxx . . $ operator+(fab9b4f80031f353). |
| 455 | trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("without having checked 'Recurse into directories' which is required","message box message - line3")+cxx . . $ operator+(3d22f08efddf8107)."<br><br>"); |
| 456 | } |
| 457 | |
| 458 | //check if "remote" is checked and no hostname is declared ----------------------------------------------------------------- |
| 459 | if ( (uiMcxx . . $ modifyDialog#uiM..groupBox_remotecxx . . $ Ui_modifyDialog#groupBox_remote. -> isCheckedcxx . . $ QGroupBox#isChecked(50ce9a9e25b4a850).()) && (uiMcxx . . $ modifyDialog#uiM..lineEdit_remoteHostcxx . . $ Ui_modifyDialog#lineEdit_remoteHost. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "") ) |
| 460 | { |
| 461 | modifyOKcxx . . $ Global/modifyOK. = false; |
| 462 | messagecxx . . $ Global/message..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(/*"<b>"+tr("ERROR","message box message - line1")+":</b>"+*/ |
| 463 | trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("'Remote Host' is checked, but no remote host name is declared","message box message - line2")+cxx . . $ operator+(3d22f08efddf8107)."<br>"+cxx . . $ operator+(fab9b4f80031f353). |
| 464 | trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Please specify a remote host name","message box message - line3")+cxx . . $ operator+(3d22f08efddf8107)."<br>"+cxx . . $ operator+(fab9b4f80031f353). |
| 465 | trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Otherwise uncheck 'Remote Host' to operate locally","message box message - line4")+cxx . . $ operator+(3d22f08efddf8107)."<br><br>"); |
| 466 | } |
| 467 | |
| 468 | bool tempCloneWarning = true; |
| 469 | //use this cause the next command will set CloneWARNING to true by creating a new operation |
| 470 | // only perform this if "modify is pressed, not "new/duplicate/restore" task |
| 471 | if (!newTaskThisIscxx . . $ Global/newTaskThisIs.) |
| 472 | tempCloneWarning = Operationcxx . . $ Global/Operation.[ArrayPositioncxx . . $ modifyDialog#ArrayPosition.] -> GetCloneWARNINGcxx . . $ operation#GetCloneWARNING(50ce9a9e25b4a850). (); |
| 473 | |
| 474 | Operationcxx . . $ Global/Operation.[ArrayPositioncxx . . $ modifyDialog#ArrayPosition.] = fillOperationArraycxx . . $ modifyDialog#fillOperationArray(9d9f74a14a8c897).(); //fill the operation array item with data from the modify dialog |
| 475 | Operationcxx . . $ Global/Operation.[ArrayPositioncxx . . $ modifyDialog#ArrayPosition.] -> SetCloneWARNINGcxx . . $ operation#SetCloneWARNING(b45ddcbc8423892c). (tempCloneWarning); |
| 476 | |
| 477 | if (!validationcxx . . $ Global/validation.) //if "done" pressed and not "validation check" |
| 478 | { |
| 479 | if (modifyOKcxx . . $ Global/modifyOK.) //if all "data filling" went ok |
| 480 | { |
| 481 | //check if the user has selected "delete files on the destination" & "backup the contents of a source directory" and WARN |
| 482 | if ( (uiMcxx . . $ modifyDialog#uiM..comboBox_Typecxx . . $ Ui_modifyDialog#comboBox_Type. -> currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).()==0) && (uiMcxx . . $ modifyDialog#uiM..checkBox_deleteAftercxx . . $ Ui_modifyDialog#checkBox_deleteAfter. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) && |
| 483 | (Operationcxx . . $ Global/Operation.[ArrayPositioncxx . . $ modifyDialog#ArrayPosition.] -> GetCloneWARNINGcxx . . $ operation#GetCloneWARNING(50ce9a9e25b4a850).()) && (uiMcxx . . $ modifyDialog#uiM..checkBox_backupContentscxx . . $ Ui_modifyDialog#checkBox_backupContents. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) ) |
| 484 | { |
| 485 | textDialogcxx . . $ textDialog# textdialogcxx . . $ textDialog#textDialog(9c8c077708043c75). ("CloneWarning"cxx . . $ QString#QString(85c52e162fed56f9)., ""cxx . . $ QString#QString(85c52e162fed56f9)., this); |
| 486 | textdialog.execcxx . . $ QDialog#exec(b126dc7c1de90089).(); |
| 487 | if (textdialog.getGoOncxx . . $ textDialog#getGoOn(b126dc7c1de90089).() == 4) //okay with "Do not show this again" checked |
| 488 | { |
| 489 | Operationcxx . . $ Global/Operation.[ArrayPositioncxx . . $ modifyDialog#ArrayPosition.] -> SetCloneWARNINGcxx . . $ operation#SetCloneWARNING(b45ddcbc8423892c). (false); |
| 490 | closecxx . . $ QWidget#close(c9857a73d68e59ba).(); |
| 491 | } |
| 492 | if (textdialog.getGoOncxx . . $ textDialog#getGoOn(b126dc7c1de90089).() == 2) //okay with "Do not show this again" NOT checked |
| 493 | closecxx . . $ QWidget#close(c9857a73d68e59ba).(); //emmit a QcloseEvent |
| 494 | } |
| 495 | else |
| 496 | closecxx . . $ QWidget#close(c9857a73d68e59ba).(); //emmit a QcloseEvent |
| 497 | } |
| 498 | else //display a warning message |
| 499 | { |
| 500 | textDialogcxx . . $ textDialog# textdialogWcxx . . $ textDialog#textDialog(9c8c077708043c75). ("QtWarning"cxx . . $ QString#QString(85c52e162fed56f9)., messagecxx . . $ QString#QString(132dd6869045752b)., this); |
| 501 | textdialogW.execcxx . . $ QDialog#exec(b126dc7c1de90089).(); |
| 502 | } |
| 503 | } |
| 504 | } |
| 505 | |
| 506 | // validate button pressed======================================================================================================= |
| 507 | // Pops up a dialog with the rsync command & arguments, also displays error messages |
| 508 | void modifyDialogcxx . . $ modifyDialog#::commandPressedcxx . . $ modifyDialog#commandPressed(49f6e7a06ebc5aa8).() |
| 509 | { |
| 510 | validationcxx . . $ Global/validation. = true; |
| 511 | |
| 512 | okayPressedcxx . . $ modifyDialog#okayPressed(49f6e7a06ebc5aa8).(); |
| 513 | |
| 514 | QStringListcxx . . $ QStringList# arguments = Operationcxx . . $ Global/Operation.[ArrayPositioncxx . . $ modifyDialog#ArrayPosition.] -> GetArgscxx . . $ operation#GetArgs(e1dbd5c4feadc8f5).(); QStringcxx . . $ QString# tempArgs = ""cxx . . $ QString#QString(85c52e162fed56f9).; countcxx . . $ modifyDialog#count.=0; QStringcxx . . $ QString# sourcecxx . . $ QString#QString(ced63f7c635d850d)., destcxx . . $ QString#QString(ced63f7c635d850d).; |
| 515 | source=cxx . . $ QString#`operator=`(b79fde0b0ce9b948).arguments[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).arguments.sizecxx . . $ QList#size(ea6fe5115c70a13f).()-2]; |
| 516 | dest=cxx . . $ QString#`operator=`(b79fde0b0ce9b948).arguments[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).arguments.sizecxx . . $ QList#size(ea6fe5115c70a13f).()-1]; |
| 517 | while (countcxx . . $ modifyDialog#count. < arguments.sizecxx . . $ QList#size(ea6fe5115c70a13f).()-2) |
| 518 | { |
| 519 | if (arguments[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).countcxx . . $ modifyDialog#count.].containscxx . . $ QString#contains(8cce4688c16f48f3).("-e "+cxx . . $ operator+(c75c3ae4eb9af1a8).sshCommandPathcxx . . $ Global/sshCommandPath.+cxx . . $ operator+(3d22f08efddf8107)." ")) |
| 520 | { |
| 521 | tempArgs.appendcxx . . $ QString#append(6a89d0b7f4d2681c).("-e \"" +cxx . . $ operator+(c75c3ae4eb9af1a8). arguments[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).countcxx . . $ modifyDialog#count.].removecxx . . $ QString#remove(6483560ce2afa901).(0,3) +cxx . . $ operator+(3d22f08efddf8107). "\" "); |
| 522 | } |
| 523 | else |
| 524 | tempArgs.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(arguments[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).countcxx . . $ modifyDialog#count.]+cxx . . $ operator+(3d22f08efddf8107)." "); |
| 525 | countcxx . . $ modifyDialog#count.++; |
| 526 | } |
| 527 | |
| 528 | if (modifyOKcxx . . $ Global/modifyOK.) |
| 529 | messagecxx . . $ Global/message..prependcxx . . $ QString#prepend(6a89d0b7f4d2681c).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("All declared fields of the task properties window seem to be ok","message box message first line")+cxx . . $ operator+(3d22f08efddf8107)."<br><br>"); |
| 530 | else |
| 531 | messagecxx . . $ Global/message..prependcxx . . $ QString#prepend(6a89d0b7f4d2681c).("<b>"+cxx . . $ operator+(c75c3ae4eb9af1a8).trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("Errors have been found","message box message first line")+cxx . . $ operator+(3d22f08efddf8107)."...</b><br><br>"); |
| 532 | |
| 533 | messagecxx . . $ Global/message..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("<b>"+cxx . . $ operator+(c75c3ae4eb9af1a8).trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("command to be executed","full phrase: command to be executed: <COMMAND>")+cxx . . $ operator+(3d22f08efddf8107).":</b><br>"); |
| 534 | |
| 535 | textDialogcxx . . $ textDialog# textdialogcxx . . $ textDialog#textDialog(9c8c077708043c75). ("ValidateDialog"cxx . . $ QString#QString(85c52e162fed56f9)., messagecxx . . $ Global/message. +cxx . . $ operator+(3d22f08efddf8107). "<font color=red>rsync </font><font color=blue>" +cxx . . $ operator+(fab9b4f80031f353). tempArgs +cxx . . $ operator+(3d22f08efddf8107). |
| 536 | "</font><br><font color=magenta>"+cxx . . $ operator+(fab9b4f80031f353). source +cxx . . $ operator+(3d22f08efddf8107). " </font><br><font color=magenta>" +cxx . . $ operator+(fab9b4f80031f353). dest +cxx . . $ operator+(3d22f08efddf8107). "</font><br>", this); |
| 537 | textdialog.execcxx . . $ QDialog#exec(b126dc7c1de90089).(); |
| 538 | |
| 539 | validationcxx . . $ Global/validation. = false; |
| 540 | //========================================================================================================================== |
| 541 | } |
| 542 | |
| 543 | // List item Add button pressed===================================================================================================== |
| 544 | // adds an item in the excluded,included,options list |
| 545 | void modifyDialogcxx . . $ modifyDialog#::addListItemcxx . . $ modifyDialog#addListItem(d4f767463ce0a6b3).(const int type) |
| 546 | { |
| 547 | QStringcxx . . $ QString# text=""cxx . . $ QString#QString(85c52e162fed56f9)., selectedText=""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 548 | QListcxx . . $ QList#<QListWidgetItemcxx . . $ QListWidgetItem#*> tempcxx . . $ QList#QList(ced63f7c635d850d).; |
| 549 | temp.clearcxx . . $ QList#clear(49f6e7a06ebc5aa8).(); |
| 550 | |
| 551 | switch (type) |
| 552 | { |
| 553 | //exclude list add button |
| 554 | case 0: |
| 555 | text =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..lineEdit_excludeAddcxx . . $ Ui_modifyDialog#lineEdit_excludeAdd. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); // This is the text in the lineEdit |
| 556 | if (text ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "") // if there is nothing typed just return |
| 557 | return; |
| 558 | |
| 559 | if (uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> countcxx . . $ QListWidget#count(455f465bc33b4cdf).() == 0) // if this is the first entry, just add it (to avoid segfault) |
| 560 | { |
| 561 | uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> addItemcxx . . $ QListWidget#addItem(3520e46b33348bf6).(text); |
| 562 | uiMcxx . . $ modifyDialog#uiM..lineEdit_excludeAddcxx . . $ Ui_modifyDialog#lineEdit_excludeAdd. -> clearcxx . . $ QLineEdit#clear(49f6e7a06ebc5aa8).(); |
| 563 | return; |
| 564 | } |
| 565 | |
| 566 | if (listItemEditModecxx . . $ modifyDialog#listItemEditMode.) |
| 567 | selectedText =cxx . . $ QString#`operator=`(4f35bf974e7f8568). (uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).()) -> textcxx . . $ QListWidgetItem#text(6ef7b6c27b00b43d).(); // The selected list item text (used for listItemEdit) |
| 568 | temp =cxx . . $ QList#`operator=`(fb6690361a2f6b44). uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> findItemscxx . . $ QListWidget#findItems(35b4441363156d2). (text, Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::MatchExactlycxx . . $ Qt/MatchExactly.) ; // list with all other items that are the same with the lineedit |
| 569 | |
| 570 | // If the text in the lineedit already exists |
| 571 | if ((temp.sizecxx . . $ QList#size(ea6fe5115c70a13f).() > 0) && (text !=cxx . . $ `operator!=`(5bc2975d2d751687). selectedText)) |
| 572 | { |
| 573 | textDialogcxx . . $ textDialog# textdialogwcxx . . $ textDialog#textDialog(9c8c077708043c75). ("QtWarning"cxx . . $ QString#QString(85c52e162fed56f9)., trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("You have already added this exclude item","message box message")+cxx . . $ operator+(3d22f08efddf8107)." !!<br>" , this); |
| 574 | textdialogw.execcxx . . $ QDialog#exec(b126dc7c1de90089).(); |
| 575 | return; |
| 576 | } |
| 577 | |
| 578 | if (listItemEditModecxx . . $ modifyDialog#listItemEditMode.) |
| 579 | { |
| 580 | //change the value of the selected list item |
| 581 | int selectedItem = uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); |
| 582 | uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selectedItem); //take out the selected item from the list |
| 583 | uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> insertItemcxx . . $ QListWidget#insertItem(4b11a7293b4ed91c).(selectedItem, text); //insert a new one at the same position with the new text |
| 584 | uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3).(selectedItem); //highlight this row |
| 585 | |
| 586 | // set the gui back to its original form |
| 587 | uiMcxx . . $ modifyDialog#uiM..pushButton_excludeAddcxx . . $ Ui_modifyDialog#pushButton_excludeAdd. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origAddTextcxx . . $ modifyDialog#origAddText.); |
| 588 | uiMcxx . . $ modifyDialog#uiM..pushButton_excludeAddcxx . . $ Ui_modifyDialog#pushButton_excludeAdd. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origAddToolTipcxx . . $ modifyDialog#origAddToolTip.); |
| 589 | uiMcxx . . $ modifyDialog#uiM..pushButton_excludeAddcxx . . $ Ui_modifyDialog#pushButton_excludeAdd. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/add.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 590 | uiMcxx . . $ modifyDialog#uiM..pushButton_excludeRemovecxx . . $ Ui_modifyDialog#pushButton_excludeRemove. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origRemoveTextcxx . . $ modifyDialog#origRemoveText.); |
| 591 | uiMcxx . . $ modifyDialog#uiM..pushButton_excludeRemovecxx . . $ Ui_modifyDialog#pushButton_excludeRemove. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origRemoveToolTipcxx . . $ modifyDialog#origRemoveToolTip.); |
| 592 | uiMcxx . . $ modifyDialog#uiM..pushButton_excludeRemovecxx . . $ Ui_modifyDialog#pushButton_excludeRemove. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/remove.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 593 | |
| 594 | uiMcxx . . $ modifyDialog#uiM..pushButton_editExcludecxx . . $ Ui_modifyDialog#pushButton_editExclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 595 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpExcludecxx . . $ Ui_modifyDialog#pushButton_moveUpExclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 596 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownExcludecxx . . $ Ui_modifyDialog#pushButton_moveDownExclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 597 | |
| 598 | // set this bool var to false - end of list edit mode |
| 599 | listItemEditModecxx . . $ modifyDialog#listItemEditMode. = false; |
| 600 | } |
| 601 | else |
| 602 | uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> addItemcxx . . $ QListWidget#addItem(3520e46b33348bf6).(text); |
| 603 | uiMcxx . . $ modifyDialog#uiM..lineEdit_excludeAddcxx . . $ Ui_modifyDialog#lineEdit_excludeAdd. -> clearcxx . . $ QLineEdit#clear(49f6e7a06ebc5aa8).(); |
| 604 | |
| 605 | break; |
| 606 | |
| 607 | //include list add button |
| 608 | case 1: |
| 609 | text =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..lineEdit_includeAddcxx . . $ Ui_modifyDialog#lineEdit_includeAdd. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); |
| 610 | if (text ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "") // if there is nothing typed just return |
| 611 | return; |
| 612 | |
| 613 | if (uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> countcxx . . $ QListWidget#count(455f465bc33b4cdf).() == 0) // if this is the first entry, just add it (to avoid segfault) |
| 614 | { |
| 615 | uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> addItemcxx . . $ QListWidget#addItem(3520e46b33348bf6).(text); |
| 616 | uiMcxx . . $ modifyDialog#uiM..lineEdit_includeAddcxx . . $ Ui_modifyDialog#lineEdit_includeAdd. -> clearcxx . . $ QLineEdit#clear(49f6e7a06ebc5aa8).(); |
| 617 | disableExcludeTabcxx . . $ modifyDialog#disableExcludeTab(49f6e7a06ebc5aa8).(); // disable the exclude tab or not |
| 618 | return; |
| 619 | } |
| 620 | |
| 621 | if (listItemEditModecxx . . $ modifyDialog#listItemEditMode.) |
| 622 | selectedText =cxx . . $ QString#`operator=`(4f35bf974e7f8568). (uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).()) -> textcxx . . $ QListWidgetItem#text(6ef7b6c27b00b43d).(); // The selected list item text (used for listItemEdit) |
| 623 | temp =cxx . . $ QList#`operator=`(fb6690361a2f6b44). uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> findItemscxx . . $ QListWidget#findItems(35b4441363156d2). (text, Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::MatchExactlycxx . . $ Qt/MatchExactly.) ; // list with all other items that are the same with the lineedit |
| 624 | |
| 625 | // If the text in the lineedit already exists |
| 626 | if ((temp.sizecxx . . $ QList#size(ea6fe5115c70a13f).() > 0) && (text !=cxx . . $ `operator!=`(5bc2975d2d751687). selectedText)) |
| 627 | { |
| 628 | textDialogcxx . . $ textDialog# textdialogwcxx . . $ textDialog#textDialog(9c8c077708043c75). ("QtWarning"cxx . . $ QString#QString(85c52e162fed56f9)., trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("You have already added this include item","message box message")+cxx . . $ operator+(3d22f08efddf8107)." !!<br>" , this); |
| 629 | textdialogw.execcxx . . $ QDialog#exec(b126dc7c1de90089).(); |
| 630 | return; |
| 631 | } |
| 632 | |
| 633 | if (listItemEditModecxx . . $ modifyDialog#listItemEditMode.) |
| 634 | { |
| 635 | //change the value of the selected list item |
| 636 | int selectedItem = uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); |
| 637 | uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selectedItem); //take out the selected item from the list |
| 638 | uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> insertItemcxx . . $ QListWidget#insertItem(4b11a7293b4ed91c).(selectedItem, text); //insert a new one at the same position with the new text |
| 639 | uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3).(selectedItem); //highlight this row |
| 640 | |
| 641 | // set the gui back to its original form |
| 642 | uiMcxx . . $ modifyDialog#uiM..pushButton_includeAddcxx . . $ Ui_modifyDialog#pushButton_includeAdd. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origAddTextcxx . . $ modifyDialog#origAddText.); |
| 643 | uiMcxx . . $ modifyDialog#uiM..pushButton_includeAddcxx . . $ Ui_modifyDialog#pushButton_includeAdd. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origAddToolTipcxx . . $ modifyDialog#origAddToolTip.); |
| 644 | uiMcxx . . $ modifyDialog#uiM..pushButton_includeAddcxx . . $ Ui_modifyDialog#pushButton_includeAdd. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/add.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 645 | uiMcxx . . $ modifyDialog#uiM..pushButton_includeRemovecxx . . $ Ui_modifyDialog#pushButton_includeRemove. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origRemoveTextcxx . . $ modifyDialog#origRemoveText.); |
| 646 | uiMcxx . . $ modifyDialog#uiM..pushButton_includeRemovecxx . . $ Ui_modifyDialog#pushButton_includeRemove. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origRemoveToolTipcxx . . $ modifyDialog#origRemoveToolTip.); |
| 647 | uiMcxx . . $ modifyDialog#uiM..pushButton_includeRemovecxx . . $ Ui_modifyDialog#pushButton_includeRemove. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/remove.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 648 | |
| 649 | uiMcxx . . $ modifyDialog#uiM..pushButton_editIncludecxx . . $ Ui_modifyDialog#pushButton_editInclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 650 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpIncludecxx . . $ Ui_modifyDialog#pushButton_moveUpInclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 651 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownIncludecxx . . $ Ui_modifyDialog#pushButton_moveDownInclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 652 | |
| 653 | // set this bool var to false - end of list edit mode |
| 654 | listItemEditModecxx . . $ modifyDialog#listItemEditMode. = false; |
| 655 | } |
| 656 | else |
| 657 | uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> addItemcxx . . $ QListWidget#addItem(3520e46b33348bf6).(text); |
| 658 | uiMcxx . . $ modifyDialog#uiM..lineEdit_includeAddcxx . . $ Ui_modifyDialog#lineEdit_includeAdd. -> clearcxx . . $ QLineEdit#clear(49f6e7a06ebc5aa8).(); |
| 659 | disableExcludeTabcxx . . $ modifyDialog#disableExcludeTab(49f6e7a06ebc5aa8).(); // disable the exclude tab or not |
| 660 | break; |
| 661 | |
| 662 | //options list add button |
| 663 | case 2: |
| 664 | text =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..lineEdit_optionsAddcxx . . $ Ui_modifyDialog#lineEdit_optionsAdd. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); |
| 665 | if (text ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "") // if there is nothing typed just return |
| 666 | return; |
| 667 | if (uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> countcxx . . $ QListWidget#count(455f465bc33b4cdf).() == 0) // if this is the first entry, just add it (to avoid segfault) |
| 668 | { |
| 669 | uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> addItemcxx . . $ QListWidget#addItem(3520e46b33348bf6).(text); |
| 670 | uiMcxx . . $ modifyDialog#uiM..lineEdit_optionsAddcxx . . $ Ui_modifyDialog#lineEdit_optionsAdd. -> clearcxx . . $ QLineEdit#clear(49f6e7a06ebc5aa8).(); |
| 671 | return; |
| 672 | } |
| 673 | |
| 674 | if (listItemEditModecxx . . $ modifyDialog#listItemEditMode.) |
| 675 | selectedText =cxx . . $ QString#`operator=`(4f35bf974e7f8568). (uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).()) -> textcxx . . $ QListWidgetItem#text(6ef7b6c27b00b43d).(); // The selected list item text (used for listItemEdit) |
| 676 | temp =cxx . . $ QList#`operator=`(fb6690361a2f6b44). uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> findItemscxx . . $ QListWidget#findItems(35b4441363156d2). (text, Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::MatchExactlycxx . . $ Qt/MatchExactly.) ; // list with all other items that are the same with the lineedit |
| 677 | |
| 678 | // If the text in the lineedit already exist |
| 679 | if ((temp.sizecxx . . $ QList#size(ea6fe5115c70a13f).() > 0) && (text !=cxx . . $ `operator!=`(5bc2975d2d751687). selectedText)) |
| 680 | { |
| 681 | textDialogcxx . . $ textDialog# textdialogWcxx . . $ textDialog#textDialog(9c8c077708043c75). ("QtWarning"cxx . . $ QString#QString(85c52e162fed56f9)., trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("You have already added this option","message box message")+cxx . . $ operator+(3d22f08efddf8107)." !!<br>", this); |
| 682 | textdialogW.execcxx . . $ QDialog#exec(b126dc7c1de90089).(); |
| 683 | return; |
| 684 | } |
| 685 | |
| 686 | if (listItemEditModecxx . . $ modifyDialog#listItemEditMode.) |
| 687 | { |
| 688 | //change the value of the selected list item |
| 689 | int selectedItem = uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); |
| 690 | uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selectedItem); //take out the selected item from the list |
| 691 | uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> insertItemcxx . . $ QListWidget#insertItem(4b11a7293b4ed91c).(selectedItem, text); //insert a new one at the same position with the new text |
| 692 | uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3).(selectedItem); //highlight this row |
| 693 | |
| 694 | // set the gui back to its original form |
| 695 | uiMcxx . . $ modifyDialog#uiM..pushButton_optionsAddcxx . . $ Ui_modifyDialog#pushButton_optionsAdd. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origAddTextcxx . . $ modifyDialog#origAddText.); |
| 696 | uiMcxx . . $ modifyDialog#uiM..pushButton_optionsAddcxx . . $ Ui_modifyDialog#pushButton_optionsAdd. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origAddToolTipcxx . . $ modifyDialog#origAddToolTip.); |
| 697 | uiMcxx . . $ modifyDialog#uiM..pushButton_optionsAddcxx . . $ Ui_modifyDialog#pushButton_optionsAdd. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/add.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 698 | uiMcxx . . $ modifyDialog#uiM..pushButton_optionsRemovecxx . . $ Ui_modifyDialog#pushButton_optionsRemove. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origRemoveTextcxx . . $ modifyDialog#origRemoveText.); |
| 699 | uiMcxx . . $ modifyDialog#uiM..pushButton_optionsRemovecxx . . $ Ui_modifyDialog#pushButton_optionsRemove. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origRemoveToolTipcxx . . $ modifyDialog#origRemoveToolTip.); |
| 700 | uiMcxx . . $ modifyDialog#uiM..pushButton_optionsRemovecxx . . $ Ui_modifyDialog#pushButton_optionsRemove. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/remove.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 701 | |
| 702 | uiMcxx . . $ modifyDialog#uiM..pushButton_editOptionscxx . . $ Ui_modifyDialog#pushButton_editOptions. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 703 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpOptionscxx . . $ Ui_modifyDialog#pushButton_moveUpOptions. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 704 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownOptionscxx . . $ Ui_modifyDialog#pushButton_moveDownOptions. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 705 | |
| 706 | // set this bool var to false - end of list edit mode |
| 707 | listItemEditModecxx . . $ modifyDialog#listItemEditMode. = false; |
| 708 | } |
| 709 | else |
| 710 | uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> addItemcxx . . $ QListWidget#addItem(3520e46b33348bf6).(text); |
| 711 | |
| 712 | uiMcxx . . $ modifyDialog#uiM..lineEdit_optionsAddcxx . . $ Ui_modifyDialog#lineEdit_optionsAdd. -> clearcxx . . $ QLineEdit#clear(49f6e7a06ebc5aa8).(); |
| 713 | |
| 714 | break; |
| 715 | |
| 716 | //Execute before list add button |
| 717 | case 3: |
| 718 | text =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..lineEdit_executeBeforeAddcxx . . $ Ui_modifyDialog#lineEdit_executeBeforeAdd. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); |
| 719 | if (text !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") |
| 720 | { |
| 721 | if (listItemEditModecxx . . $ modifyDialog#listItemEditMode.) |
| 722 | { |
| 723 | //change the value of the selected list item |
| 724 | int selectedItem = uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); |
| 725 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selectedItem); //take out the selected item from the list |
| 726 | //insert a new one at the same position with the new text |
| 727 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> insertItemcxx . . $ QListWidget#insertItem(4b11a7293b4ed91c).(selectedItem, text); |
| 728 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3).(selectedItem); //highlight this row |
| 729 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).() -> setCheckStatecxx . . $ QListWidgetItem#setCheckState(537692883700039).(alsoExecuteStatecxx . . $ modifyDialog#alsoExecuteState.); // set its state to what it was |
| 730 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).() -> setToolTipcxx . . $ QListWidgetItem#setToolTip(3520e46b33348bf6). (alsoExecuteTooltipcxx . . $ modifyDialog#alsoExecuteTooltip.); // set the tooltip |
| 731 | |
| 732 | // set the gui back to its original form |
| 733 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeAddcxx . . $ Ui_modifyDialog#pushButton_executeBeforeAdd. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origAddTextcxx . . $ modifyDialog#origAddText.); |
| 734 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeAddcxx . . $ Ui_modifyDialog#pushButton_executeBeforeAdd. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origAddToolTipcxx . . $ modifyDialog#origAddToolTip.); |
| 735 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeAddcxx . . $ Ui_modifyDialog#pushButton_executeBeforeAdd. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/add.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 736 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeRemovecxx . . $ Ui_modifyDialog#pushButton_executeBeforeRemove. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origRemoveTextcxx . . $ modifyDialog#origRemoveText.); |
| 737 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeRemovecxx . . $ Ui_modifyDialog#pushButton_executeBeforeRemove. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origRemoveToolTipcxx . . $ modifyDialog#origRemoveToolTip.); |
| 738 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeRemovecxx . . $ Ui_modifyDialog#pushButton_executeBeforeRemove. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/remove.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 739 | |
| 740 | uiMcxx . . $ modifyDialog#uiM..pushButton_editExecuteBeforecxx . . $ Ui_modifyDialog#pushButton_editExecuteBefore. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 741 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpExecuteBeforecxx . . $ Ui_modifyDialog#pushButton_moveUpExecuteBefore. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 742 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownExecuteBeforecxx . . $ Ui_modifyDialog#pushButton_moveDownExecuteBefore. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 743 | |
| 744 | // set this bool var to false - end of list edit mode |
| 745 | listItemEditModecxx . . $ modifyDialog#listItemEditMode. = false; |
| 746 | } |
| 747 | else |
| 748 | { |
| 749 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> addItemcxx . . $ QListWidget#addItem(3520e46b33348bf6).(text); |
| 750 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3).(uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> countcxx . . $ QListWidget#count(455f465bc33b4cdf).()-1); |
| 751 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).() -> setCheckStatecxx . . $ QListWidgetItem#setCheckState(537692883700039).(Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked.); |
| 752 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).() -> setToolTipcxx . . $ QListWidgetItem#setToolTip(3520e46b33348bf6). (alsoExecuteTooltipcxx . . $ modifyDialog#alsoExecuteTooltip.); |
| 753 | } |
| 754 | |
| 755 | uiMcxx . . $ modifyDialog#uiM..lineEdit_executeBeforeAddcxx . . $ Ui_modifyDialog#lineEdit_executeBeforeAdd. -> clearcxx . . $ QLineEdit#clear(49f6e7a06ebc5aa8).(); |
| 756 | } |
| 757 | break; |
| 758 | //Execute after list add button |
| 759 | case 4: |
| 760 | text =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..lineEdit_executeAfterAddcxx . . $ Ui_modifyDialog#lineEdit_executeAfterAdd. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); |
| 761 | if (text !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") |
| 762 | { |
| 763 | if (listItemEditModecxx . . $ modifyDialog#listItemEditMode.) |
| 764 | { |
| 765 | //change the value of the selected list item |
| 766 | int selectedItem = uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); |
| 767 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selectedItem); //take out the selected item from the list |
| 768 | //insert a new one at the same position with the new text |
| 769 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> insertItemcxx . . $ QListWidget#insertItem(4b11a7293b4ed91c).(selectedItem, text); |
| 770 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3).(selectedItem); //highlight this row |
| 771 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).() -> setCheckStatecxx . . $ QListWidgetItem#setCheckState(537692883700039).(alsoExecuteStatecxx . . $ modifyDialog#alsoExecuteState.); // set its state to what it was |
| 772 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).() -> setToolTipcxx . . $ QListWidgetItem#setToolTip(3520e46b33348bf6). (alsoExecuteTooltipcxx . . $ modifyDialog#alsoExecuteTooltip.); |
| 773 | |
| 774 | // set the gui back to its original form |
| 775 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterAddcxx . . $ Ui_modifyDialog#pushButton_executeAfterAdd. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origAddTextcxx . . $ modifyDialog#origAddText.); |
| 776 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterAddcxx . . $ Ui_modifyDialog#pushButton_executeAfterAdd. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origAddToolTipcxx . . $ modifyDialog#origAddToolTip.); |
| 777 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterAddcxx . . $ Ui_modifyDialog#pushButton_executeAfterAdd. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/add.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 778 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterRemovecxx . . $ Ui_modifyDialog#pushButton_executeAfterRemove. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origRemoveTextcxx . . $ modifyDialog#origRemoveText.); |
| 779 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterRemovecxx . . $ Ui_modifyDialog#pushButton_executeAfterRemove. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origRemoveToolTipcxx . . $ modifyDialog#origRemoveToolTip.); |
| 780 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterRemovecxx . . $ Ui_modifyDialog#pushButton_executeAfterRemove. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/remove.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 781 | |
| 782 | uiMcxx . . $ modifyDialog#uiM..pushButton_editExecuteAftercxx . . $ Ui_modifyDialog#pushButton_editExecuteAfter. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 783 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpExecuteAftercxx . . $ Ui_modifyDialog#pushButton_moveUpExecuteAfter. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 784 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownExecuteAftercxx . . $ Ui_modifyDialog#pushButton_moveDownExecuteAfter. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 785 | |
| 786 | // set this bool var to false - end of list edit mode |
| 787 | listItemEditModecxx . . $ modifyDialog#listItemEditMode. = false; |
| 788 | } |
| 789 | else |
| 790 | { |
| 791 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> addItemcxx . . $ QListWidget#addItem(3520e46b33348bf6).(text); |
| 792 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3).(uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> countcxx . . $ QListWidget#count(455f465bc33b4cdf).()-1); |
| 793 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).() -> setCheckStatecxx . . $ QListWidgetItem#setCheckState(537692883700039).(Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked.); |
| 794 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).() -> setToolTipcxx . . $ QListWidgetItem#setToolTip(3520e46b33348bf6). (alsoExecuteTooltipcxx . . $ modifyDialog#alsoExecuteTooltip.); |
| 795 | } |
| 796 | |
| 797 | uiMcxx . . $ modifyDialog#uiM..lineEdit_executeAfterAddcxx . . $ Ui_modifyDialog#lineEdit_executeAfterAdd. -> clearcxx . . $ QLineEdit#clear(49f6e7a06ebc5aa8).(); |
| 798 | } |
| 799 | break; |
| 800 | } |
| 801 | } |
| 802 | |
| 803 | // List item Remove button pressed===================================================================================================== |
| 804 | // Removes an item from the excluded,included,options list |
| 805 | void modifyDialogcxx . . $ modifyDialog#::removeListItemcxx . . $ modifyDialog#removeListItem(d4f767463ce0a6b3).(const int type) |
| 806 | { |
| 807 | int selected; |
| 808 | switch (type) |
| 809 | { |
| 810 | //exclude list remove button |
| 811 | case 0: |
| 812 | if (listItemEditModecxx . . $ modifyDialog#listItemEditMode.) // do not proceed further if this is just a cancel from list item edit mode |
| 813 | { |
| 814 | // set the gui back to its original form |
| 815 | uiMcxx . . $ modifyDialog#uiM..pushButton_excludeAddcxx . . $ Ui_modifyDialog#pushButton_excludeAdd. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origAddTextcxx . . $ modifyDialog#origAddText.); |
| 816 | uiMcxx . . $ modifyDialog#uiM..pushButton_excludeAddcxx . . $ Ui_modifyDialog#pushButton_excludeAdd. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origAddToolTipcxx . . $ modifyDialog#origAddToolTip.); |
| 817 | uiMcxx . . $ modifyDialog#uiM..pushButton_excludeAddcxx . . $ Ui_modifyDialog#pushButton_excludeAdd. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/add.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 818 | uiMcxx . . $ modifyDialog#uiM..pushButton_excludeRemovecxx . . $ Ui_modifyDialog#pushButton_excludeRemove. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origRemoveTextcxx . . $ modifyDialog#origRemoveText.); |
| 819 | uiMcxx . . $ modifyDialog#uiM..pushButton_excludeRemovecxx . . $ Ui_modifyDialog#pushButton_excludeRemove. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origRemoveToolTipcxx . . $ modifyDialog#origRemoveToolTip.); |
| 820 | uiMcxx . . $ modifyDialog#uiM..pushButton_excludeRemovecxx . . $ Ui_modifyDialog#pushButton_excludeRemove. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/remove.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 821 | uiMcxx . . $ modifyDialog#uiM..pushButton_editExcludecxx . . $ Ui_modifyDialog#pushButton_editExclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 822 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpExcludecxx . . $ Ui_modifyDialog#pushButton_moveUpExclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 823 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownExcludecxx . . $ Ui_modifyDialog#pushButton_moveDownExclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 824 | listItemEditModecxx . . $ modifyDialog#listItemEditMode. = false; // set this bool var to false - end of list edit mode |
| 825 | return; |
| 826 | } |
| 827 | |
| 828 | selected = uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 829 | if (selected < 0) //if nothing is selected do nothing |
| 830 | return; |
| 831 | uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude.-> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selected); |
| 832 | break; |
| 833 | //include list remove button |
| 834 | case 1: |
| 835 | if (listItemEditModecxx . . $ modifyDialog#listItemEditMode.) // do not proceed further if this is just a cancel from list item edit mode |
| 836 | { |
| 837 | // set the gui back to its original form |
| 838 | uiMcxx . . $ modifyDialog#uiM..pushButton_includeAddcxx . . $ Ui_modifyDialog#pushButton_includeAdd. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origAddTextcxx . . $ modifyDialog#origAddText.); |
| 839 | uiMcxx . . $ modifyDialog#uiM..pushButton_includeAddcxx . . $ Ui_modifyDialog#pushButton_includeAdd. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origAddToolTipcxx . . $ modifyDialog#origAddToolTip.); |
| 840 | uiMcxx . . $ modifyDialog#uiM..pushButton_includeAddcxx . . $ Ui_modifyDialog#pushButton_includeAdd. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/add.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 841 | uiMcxx . . $ modifyDialog#uiM..pushButton_includeRemovecxx . . $ Ui_modifyDialog#pushButton_includeRemove. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origRemoveTextcxx . . $ modifyDialog#origRemoveText.); |
| 842 | uiMcxx . . $ modifyDialog#uiM..pushButton_includeRemovecxx . . $ Ui_modifyDialog#pushButton_includeRemove. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origRemoveToolTipcxx . . $ modifyDialog#origRemoveToolTip.); |
| 843 | uiMcxx . . $ modifyDialog#uiM..pushButton_includeRemovecxx . . $ Ui_modifyDialog#pushButton_includeRemove. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/remove.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 844 | uiMcxx . . $ modifyDialog#uiM..pushButton_editIncludecxx . . $ Ui_modifyDialog#pushButton_editInclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 845 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpIncludecxx . . $ Ui_modifyDialog#pushButton_moveUpInclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 846 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownIncludecxx . . $ Ui_modifyDialog#pushButton_moveDownInclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 847 | listItemEditModecxx . . $ modifyDialog#listItemEditMode. = false; // set this bool var to false - end of list edit mode |
| 848 | return; |
| 849 | } |
| 850 | |
| 851 | selected = uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 852 | if (selected < 0) //if nothing is selected do nothing |
| 853 | return; |
| 854 | uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include.-> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selected); |
| 855 | disableExcludeTabcxx . . $ modifyDialog#disableExcludeTab(49f6e7a06ebc5aa8).(); // disable the exclude tab or not |
| 856 | break; |
| 857 | //options list remove button |
| 858 | case 2: |
| 859 | if (listItemEditModecxx . . $ modifyDialog#listItemEditMode.) // do not proceed further if this is just a cancel from list item edit mode |
| 860 | { |
| 861 | // set the gui back to its original form |
| 862 | uiMcxx . . $ modifyDialog#uiM..pushButton_optionsAddcxx . . $ Ui_modifyDialog#pushButton_optionsAdd. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origAddTextcxx . . $ modifyDialog#origAddText.); |
| 863 | uiMcxx . . $ modifyDialog#uiM..pushButton_optionsAddcxx . . $ Ui_modifyDialog#pushButton_optionsAdd. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origAddToolTipcxx . . $ modifyDialog#origAddToolTip.); |
| 864 | uiMcxx . . $ modifyDialog#uiM..pushButton_optionsAddcxx . . $ Ui_modifyDialog#pushButton_optionsAdd. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/add.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 865 | uiMcxx . . $ modifyDialog#uiM..pushButton_optionsRemovecxx . . $ Ui_modifyDialog#pushButton_optionsRemove. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origRemoveTextcxx . . $ modifyDialog#origRemoveText.); |
| 866 | uiMcxx . . $ modifyDialog#uiM..pushButton_optionsRemovecxx . . $ Ui_modifyDialog#pushButton_optionsRemove. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origRemoveToolTipcxx . . $ modifyDialog#origRemoveToolTip.); |
| 867 | uiMcxx . . $ modifyDialog#uiM..pushButton_optionsRemovecxx . . $ Ui_modifyDialog#pushButton_optionsRemove. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/remove.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 868 | uiMcxx . . $ modifyDialog#uiM..pushButton_editOptionscxx . . $ Ui_modifyDialog#pushButton_editOptions. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 869 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpOptionscxx . . $ Ui_modifyDialog#pushButton_moveUpOptions. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 870 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownOptionscxx . . $ Ui_modifyDialog#pushButton_moveDownOptions. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 871 | listItemEditModecxx . . $ modifyDialog#listItemEditMode. = false; // set this bool var to false - end of list edit mode |
| 872 | return; |
| 873 | } |
| 874 | |
| 875 | selected = uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 876 | if (selected < 0) //if nothing is selected do nothing |
| 877 | return; |
| 878 | uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options.-> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selected); |
| 879 | break; |
| 880 | //execute before list remove button |
| 881 | case 3: |
| 882 | if (listItemEditModecxx . . $ modifyDialog#listItemEditMode.) // do not proceed further if this is just a cancel from list item edit mode |
| 883 | { |
| 884 | // set the gui back to its original form |
| 885 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeAddcxx . . $ Ui_modifyDialog#pushButton_executeBeforeAdd. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origAddTextcxx . . $ modifyDialog#origAddText.); |
| 886 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeAddcxx . . $ Ui_modifyDialog#pushButton_executeBeforeAdd. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origAddToolTipcxx . . $ modifyDialog#origAddToolTip.); |
| 887 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeAddcxx . . $ Ui_modifyDialog#pushButton_executeBeforeAdd. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/add.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 888 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeRemovecxx . . $ Ui_modifyDialog#pushButton_executeBeforeRemove. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origRemoveTextcxx . . $ modifyDialog#origRemoveText.); |
| 889 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeRemovecxx . . $ Ui_modifyDialog#pushButton_executeBeforeRemove. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origRemoveToolTipcxx . . $ modifyDialog#origRemoveToolTip.); |
| 890 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeRemovecxx . . $ Ui_modifyDialog#pushButton_executeBeforeRemove. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/remove.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 891 | uiMcxx . . $ modifyDialog#uiM..pushButton_editExecuteBeforecxx . . $ Ui_modifyDialog#pushButton_editExecuteBefore. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 892 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpExecuteBeforecxx . . $ Ui_modifyDialog#pushButton_moveUpExecuteBefore. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 893 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownExecuteBeforecxx . . $ Ui_modifyDialog#pushButton_moveDownExecuteBefore. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 894 | listItemEditModecxx . . $ modifyDialog#listItemEditMode. = false; // set this bool var to false - end of list edit mode |
| 895 | return; |
| 896 | } |
| 897 | |
| 898 | selected = uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 899 | if (selected < 0) //if nothing is selected do nothing |
| 900 | return; |
| 901 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selected); |
| 902 | break; |
| 903 | //execute after list remove button |
| 904 | case 4: |
| 905 | if (listItemEditModecxx . . $ modifyDialog#listItemEditMode.) // do not proceed further if this is just a cancel from list item edit mode |
| 906 | { |
| 907 | // set the gui back to its original form |
| 908 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterAddcxx . . $ Ui_modifyDialog#pushButton_executeAfterAdd. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origAddTextcxx . . $ modifyDialog#origAddText.); |
| 909 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterAddcxx . . $ Ui_modifyDialog#pushButton_executeAfterAdd. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origAddToolTipcxx . . $ modifyDialog#origAddToolTip.); |
| 910 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterAddcxx . . $ Ui_modifyDialog#pushButton_executeAfterAdd. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/add.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 911 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterRemovecxx . . $ Ui_modifyDialog#pushButton_executeAfterRemove. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(origRemoveTextcxx . . $ modifyDialog#origRemoveText.); |
| 912 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterRemovecxx . . $ Ui_modifyDialog#pushButton_executeAfterRemove. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(origRemoveToolTipcxx . . $ modifyDialog#origRemoveToolTip.); |
| 913 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterRemovecxx . . $ Ui_modifyDialog#pushButton_executeAfterRemove. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/remove.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 914 | uiMcxx . . $ modifyDialog#uiM..pushButton_editExecuteAftercxx . . $ Ui_modifyDialog#pushButton_editExecuteAfter. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 915 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpExecuteAftercxx . . $ Ui_modifyDialog#pushButton_moveUpExecuteAfter. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 916 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownExecuteAftercxx . . $ Ui_modifyDialog#pushButton_moveDownExecuteAfter. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 917 | listItemEditModecxx . . $ modifyDialog#listItemEditMode. = false; // set this bool var to false - end of list edit mode |
| 918 | return; |
| 919 | } |
| 920 | |
| 921 | selected = uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 922 | if (selected < 0) //if nothing is selected do nothing |
| 923 | return; |
| 924 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selected); |
| 925 | break; |
| 926 | } |
| 927 | |
| 928 | } |
| 929 | |
| 930 | // List item edit button pressed===================================================================================================== |
| 931 | // Edits an item from the excluded,included,options or "also execute" list |
| 932 | void modifyDialogcxx . . $ modifyDialog#::editListItemcxx . . $ modifyDialog#editListItem(d4f767463ce0a6b3).(const int type) |
| 933 | { |
| 934 | int selected; |
| 935 | QStringcxx . . $ QString# selectedText = ""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 936 | switch (type) |
| 937 | { |
| 938 | //exclude list |
| 939 | case 0: selected = uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 940 | if (selected < 0) //if nothing is selected do nothing |
| 941 | return; |
| 942 | listItemEditModecxx . . $ modifyDialog#listItemEditMode. = true; |
| 943 | origAddTextcxx . . $ modifyDialog#origAddText. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_excludeAddcxx . . $ Ui_modifyDialog#pushButton_excludeAdd. -> textcxx . . $ QAbstractButton#text(6ef7b6c27b00b43d).(); |
| 944 | origAddToolTipcxx . . $ modifyDialog#origAddToolTip. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_excludeAddcxx . . $ Ui_modifyDialog#pushButton_excludeAdd. -> toolTipcxx . . $ QWidget#toolTip(6ef7b6c27b00b43d).(); |
| 945 | origRemoveTextcxx . . $ modifyDialog#origRemoveText. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_excludeRemovecxx . . $ Ui_modifyDialog#pushButton_excludeRemove. -> textcxx . . $ QAbstractButton#text(6ef7b6c27b00b43d).(); |
| 946 | origRemoveToolTipcxx . . $ modifyDialog#origRemoveToolTip. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_excludeRemovecxx . . $ Ui_modifyDialog#pushButton_excludeRemove. -> toolTipcxx . . $ QWidget#toolTip(6ef7b6c27b00b43d).(); |
| 947 | uiMcxx . . $ modifyDialog#uiM..pushButton_excludeAddcxx . . $ Ui_modifyDialog#pushButton_excludeAdd. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("done")); |
| 948 | uiMcxx . . $ modifyDialog#uiM..pushButton_excludeAddcxx . . $ Ui_modifyDialog#pushButton_excludeAdd. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("done editing")); |
| 949 | uiMcxx . . $ modifyDialog#uiM..pushButton_excludeAddcxx . . $ Ui_modifyDialog#pushButton_excludeAdd. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/okay.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 950 | uiMcxx . . $ modifyDialog#uiM..pushButton_excludeRemovecxx . . $ Ui_modifyDialog#pushButton_excludeRemove. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("cancel")); |
| 951 | uiMcxx . . $ modifyDialog#uiM..pushButton_excludeRemovecxx . . $ Ui_modifyDialog#pushButton_excludeRemove. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("cancel editing")); |
| 952 | uiMcxx . . $ modifyDialog#uiM..pushButton_excludeRemovecxx . . $ Ui_modifyDialog#pushButton_excludeRemove. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/cancel.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 953 | |
| 954 | uiMcxx . . $ modifyDialog#uiM..pushButton_editExcludecxx . . $ Ui_modifyDialog#pushButton_editExclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 955 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpExcludecxx . . $ Ui_modifyDialog#pushButton_moveUpExclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 956 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownExcludecxx . . $ Ui_modifyDialog#pushButton_moveDownExclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 957 | |
| 958 | selectedText =cxx . . $ QString#`operator=`(4f35bf974e7f8568). (uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).()) -> textcxx . . $ QListWidgetItem#text(6ef7b6c27b00b43d).(); //current list item text |
| 959 | uiMcxx . . $ modifyDialog#uiM..lineEdit_excludeAddcxx . . $ Ui_modifyDialog#lineEdit_excludeAdd. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6). (selectedText); |
| 960 | uiMcxx . . $ modifyDialog#uiM..lineEdit_excludeAddcxx . . $ Ui_modifyDialog#lineEdit_excludeAdd. -> setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).(); |
| 961 | uiMcxx . . $ modifyDialog#uiM..lineEdit_excludeAddcxx . . $ Ui_modifyDialog#lineEdit_excludeAdd. -> selectAllcxx . . $ QLineEdit#selectAll(49f6e7a06ebc5aa8).(); |
| 962 | break; |
| 963 | //include list |
| 964 | case 1: selected = uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 965 | if (selected < 0) //if nothing is selected do nothing |
| 966 | return; |
| 967 | listItemEditModecxx . . $ modifyDialog#listItemEditMode. = true; |
| 968 | origAddTextcxx . . $ modifyDialog#origAddText. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_includeAddcxx . . $ Ui_modifyDialog#pushButton_includeAdd. -> textcxx . . $ QAbstractButton#text(6ef7b6c27b00b43d).(); |
| 969 | origAddToolTipcxx . . $ modifyDialog#origAddToolTip. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_includeAddcxx . . $ Ui_modifyDialog#pushButton_includeAdd. -> toolTipcxx . . $ QWidget#toolTip(6ef7b6c27b00b43d).(); |
| 970 | origRemoveTextcxx . . $ modifyDialog#origRemoveText. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_includeRemovecxx . . $ Ui_modifyDialog#pushButton_includeRemove. -> textcxx . . $ QAbstractButton#text(6ef7b6c27b00b43d).(); |
| 971 | origRemoveToolTipcxx . . $ modifyDialog#origRemoveToolTip. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_includeRemovecxx . . $ Ui_modifyDialog#pushButton_includeRemove. -> toolTipcxx . . $ QWidget#toolTip(6ef7b6c27b00b43d).(); |
| 972 | uiMcxx . . $ modifyDialog#uiM..pushButton_includeAddcxx . . $ Ui_modifyDialog#pushButton_includeAdd. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("done")); |
| 973 | uiMcxx . . $ modifyDialog#uiM..pushButton_includeAddcxx . . $ Ui_modifyDialog#pushButton_includeAdd. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("done editing")); |
| 974 | uiMcxx . . $ modifyDialog#uiM..pushButton_includeAddcxx . . $ Ui_modifyDialog#pushButton_includeAdd. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/okay.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 975 | uiMcxx . . $ modifyDialog#uiM..pushButton_includeRemovecxx . . $ Ui_modifyDialog#pushButton_includeRemove. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("cancel")); |
| 976 | uiMcxx . . $ modifyDialog#uiM..pushButton_includeRemovecxx . . $ Ui_modifyDialog#pushButton_includeRemove. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("cancel editing")); |
| 977 | uiMcxx . . $ modifyDialog#uiM..pushButton_includeRemovecxx . . $ Ui_modifyDialog#pushButton_includeRemove. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/cancel.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 978 | |
| 979 | uiMcxx . . $ modifyDialog#uiM..pushButton_editIncludecxx . . $ Ui_modifyDialog#pushButton_editInclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 980 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpIncludecxx . . $ Ui_modifyDialog#pushButton_moveUpInclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 981 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownIncludecxx . . $ Ui_modifyDialog#pushButton_moveDownInclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 982 | |
| 983 | selectedText =cxx . . $ QString#`operator=`(4f35bf974e7f8568). (uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).()) -> textcxx . . $ QListWidgetItem#text(6ef7b6c27b00b43d).(); //current list item text |
| 984 | uiMcxx . . $ modifyDialog#uiM..lineEdit_includeAddcxx . . $ Ui_modifyDialog#lineEdit_includeAdd. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6). (selectedText); |
| 985 | uiMcxx . . $ modifyDialog#uiM..lineEdit_includeAddcxx . . $ Ui_modifyDialog#lineEdit_includeAdd. -> setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).(); |
| 986 | uiMcxx . . $ modifyDialog#uiM..lineEdit_includeAddcxx . . $ Ui_modifyDialog#lineEdit_includeAdd. -> selectAllcxx . . $ QLineEdit#selectAll(49f6e7a06ebc5aa8).(); |
| 987 | break; |
| 988 | //options list |
| 989 | case 2: selected = uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 990 | if (selected < 0) //if nothing is selected do nothing |
| 991 | return; |
| 992 | listItemEditModecxx . . $ modifyDialog#listItemEditMode. = true; |
| 993 | origAddTextcxx . . $ modifyDialog#origAddText. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_optionsAddcxx . . $ Ui_modifyDialog#pushButton_optionsAdd. -> textcxx . . $ QAbstractButton#text(6ef7b6c27b00b43d).(); |
| 994 | origAddToolTipcxx . . $ modifyDialog#origAddToolTip. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_optionsAddcxx . . $ Ui_modifyDialog#pushButton_optionsAdd. -> toolTipcxx . . $ QWidget#toolTip(6ef7b6c27b00b43d).(); |
| 995 | origRemoveTextcxx . . $ modifyDialog#origRemoveText. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_optionsRemovecxx . . $ Ui_modifyDialog#pushButton_optionsRemove. -> textcxx . . $ QAbstractButton#text(6ef7b6c27b00b43d).(); |
| 996 | origRemoveToolTipcxx . . $ modifyDialog#origRemoveToolTip. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_optionsRemovecxx . . $ Ui_modifyDialog#pushButton_optionsRemove. -> toolTipcxx . . $ QWidget#toolTip(6ef7b6c27b00b43d).(); |
| 997 | uiMcxx . . $ modifyDialog#uiM..pushButton_optionsAddcxx . . $ Ui_modifyDialog#pushButton_optionsAdd. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("done")); |
| 998 | uiMcxx . . $ modifyDialog#uiM..pushButton_optionsAddcxx . . $ Ui_modifyDialog#pushButton_optionsAdd. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("done editing")); |
| 999 | uiMcxx . . $ modifyDialog#uiM..pushButton_optionsAddcxx . . $ Ui_modifyDialog#pushButton_optionsAdd. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/okay.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 1000 | uiMcxx . . $ modifyDialog#uiM..pushButton_optionsRemovecxx . . $ Ui_modifyDialog#pushButton_optionsRemove. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("cancel")); |
| 1001 | uiMcxx . . $ modifyDialog#uiM..pushButton_optionsRemovecxx . . $ Ui_modifyDialog#pushButton_optionsRemove. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("cancel editing")); |
| 1002 | uiMcxx . . $ modifyDialog#uiM..pushButton_optionsRemovecxx . . $ Ui_modifyDialog#pushButton_optionsRemove. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/cancel.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 1003 | |
| 1004 | uiMcxx . . $ modifyDialog#uiM..pushButton_editOptionscxx . . $ Ui_modifyDialog#pushButton_editOptions. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 1005 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpOptionscxx . . $ Ui_modifyDialog#pushButton_moveUpOptions. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 1006 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownOptionscxx . . $ Ui_modifyDialog#pushButton_moveDownOptions. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 1007 | |
| 1008 | selectedText =cxx . . $ QString#`operator=`(4f35bf974e7f8568). (uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).()) -> textcxx . . $ QListWidgetItem#text(6ef7b6c27b00b43d).(); //current list item text |
| 1009 | uiMcxx . . $ modifyDialog#uiM..lineEdit_optionsAddcxx . . $ Ui_modifyDialog#lineEdit_optionsAdd. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6). (selectedText); |
| 1010 | uiMcxx . . $ modifyDialog#uiM..lineEdit_optionsAddcxx . . $ Ui_modifyDialog#lineEdit_optionsAdd. -> setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).(); |
| 1011 | uiMcxx . . $ modifyDialog#uiM..lineEdit_optionsAddcxx . . $ Ui_modifyDialog#lineEdit_optionsAdd. -> selectAllcxx . . $ QLineEdit#selectAll(49f6e7a06ebc5aa8).(); |
| 1012 | break; |
| 1013 | //execute before list |
| 1014 | case 3: selected = uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 1015 | if (selected < 0) //if nothing is selected do nothing |
| 1016 | return; |
| 1017 | listItemEditModecxx . . $ modifyDialog#listItemEditMode. = true; |
| 1018 | origAddTextcxx . . $ modifyDialog#origAddText. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeAddcxx . . $ Ui_modifyDialog#pushButton_executeBeforeAdd. -> textcxx . . $ QAbstractButton#text(6ef7b6c27b00b43d).(); |
| 1019 | origAddToolTipcxx . . $ modifyDialog#origAddToolTip. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeAddcxx . . $ Ui_modifyDialog#pushButton_executeBeforeAdd. -> toolTipcxx . . $ QWidget#toolTip(6ef7b6c27b00b43d).(); |
| 1020 | origRemoveTextcxx . . $ modifyDialog#origRemoveText. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeRemovecxx . . $ Ui_modifyDialog#pushButton_executeBeforeRemove. -> textcxx . . $ QAbstractButton#text(6ef7b6c27b00b43d).(); |
| 1021 | origRemoveToolTipcxx . . $ modifyDialog#origRemoveToolTip. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeRemovecxx . . $ Ui_modifyDialog#pushButton_executeBeforeRemove. -> toolTipcxx . . $ QWidget#toolTip(6ef7b6c27b00b43d).(); |
| 1022 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeAddcxx . . $ Ui_modifyDialog#pushButton_executeBeforeAdd. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("done")); |
| 1023 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeAddcxx . . $ Ui_modifyDialog#pushButton_executeBeforeAdd. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("done editing")); |
| 1024 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeAddcxx . . $ Ui_modifyDialog#pushButton_executeBeforeAdd. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/okay.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 1025 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeRemovecxx . . $ Ui_modifyDialog#pushButton_executeBeforeRemove. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("cancel")); |
| 1026 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeRemovecxx . . $ Ui_modifyDialog#pushButton_executeBeforeRemove. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("cancel editing")); |
| 1027 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeBeforeRemovecxx . . $ Ui_modifyDialog#pushButton_executeBeforeRemove. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/cancel.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 1028 | |
| 1029 | uiMcxx . . $ modifyDialog#uiM..pushButton_editExecuteBeforecxx . . $ Ui_modifyDialog#pushButton_editExecuteBefore. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 1030 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpExecuteBeforecxx . . $ Ui_modifyDialog#pushButton_moveUpExecuteBefore. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 1031 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownExecuteBeforecxx . . $ Ui_modifyDialog#pushButton_moveDownExecuteBefore. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 1032 | |
| 1033 | selectedText =cxx . . $ QString#`operator=`(4f35bf974e7f8568). (uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).()) -> textcxx . . $ QListWidgetItem#text(6ef7b6c27b00b43d).(); //current list item text |
| 1034 | alsoExecuteStatecxx . . $ modifyDialog#alsoExecuteState. = uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).() -> checkStatecxx . . $ QListWidgetItem#checkState(94511a6609c7e4a7).(); // current list item check state |
| 1035 | uiMcxx . . $ modifyDialog#uiM..lineEdit_executeBeforeAddcxx . . $ Ui_modifyDialog#lineEdit_executeBeforeAdd. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6). (selectedText); |
| 1036 | uiMcxx . . $ modifyDialog#uiM..lineEdit_executeBeforeAddcxx . . $ Ui_modifyDialog#lineEdit_executeBeforeAdd. -> setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).(); |
| 1037 | uiMcxx . . $ modifyDialog#uiM..lineEdit_executeBeforeAddcxx . . $ Ui_modifyDialog#lineEdit_executeBeforeAdd. -> selectAllcxx . . $ QLineEdit#selectAll(49f6e7a06ebc5aa8).(); |
| 1038 | break; |
| 1039 | //execute after |
| 1040 | case 4: selected = uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 1041 | if (selected < 0) //if nothing is selected do nothing |
| 1042 | return; |
| 1043 | listItemEditModecxx . . $ modifyDialog#listItemEditMode. = true; |
| 1044 | origAddTextcxx . . $ modifyDialog#origAddText. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterAddcxx . . $ Ui_modifyDialog#pushButton_executeAfterAdd. -> textcxx . . $ QAbstractButton#text(6ef7b6c27b00b43d).(); |
| 1045 | origAddToolTipcxx . . $ modifyDialog#origAddToolTip. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterAddcxx . . $ Ui_modifyDialog#pushButton_executeAfterAdd. -> toolTipcxx . . $ QWidget#toolTip(6ef7b6c27b00b43d).(); |
| 1046 | origRemoveTextcxx . . $ modifyDialog#origRemoveText. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterRemovecxx . . $ Ui_modifyDialog#pushButton_executeAfterRemove. -> textcxx . . $ QAbstractButton#text(6ef7b6c27b00b43d).(); |
| 1047 | origRemoveToolTipcxx . . $ modifyDialog#origRemoveToolTip. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterRemovecxx . . $ Ui_modifyDialog#pushButton_executeAfterRemove. -> toolTipcxx . . $ QWidget#toolTip(6ef7b6c27b00b43d).(); |
| 1048 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterAddcxx . . $ Ui_modifyDialog#pushButton_executeAfterAdd. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("done")); |
| 1049 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterAddcxx . . $ Ui_modifyDialog#pushButton_executeAfterAdd. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("done editing")); |
| 1050 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterAddcxx . . $ Ui_modifyDialog#pushButton_executeAfterAdd. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/okay.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 1051 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterRemovecxx . . $ Ui_modifyDialog#pushButton_executeAfterRemove. -> setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("cancel")); |
| 1052 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterRemovecxx . . $ Ui_modifyDialog#pushButton_executeAfterRemove. -> setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(trcxx . . $ modifyDialog#tr(75d9f1c324b4579d).("cancel editing")); |
| 1053 | uiMcxx . . $ modifyDialog#uiM..pushButton_executeAfterRemovecxx . . $ Ui_modifyDialog#pushButton_executeAfterRemove. -> setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/luckyPrefix/cancel.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 1054 | |
| 1055 | uiMcxx . . $ modifyDialog#uiM..pushButton_editExecuteAftercxx . . $ Ui_modifyDialog#pushButton_editExecuteAfter. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 1056 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveUpExecuteAftercxx . . $ Ui_modifyDialog#pushButton_moveUpExecuteAfter. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 1057 | uiMcxx . . $ modifyDialog#uiM..pushButton_moveDownExecuteAftercxx . . $ Ui_modifyDialog#pushButton_moveDownExecuteAfter. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 1058 | |
| 1059 | selectedText =cxx . . $ QString#`operator=`(4f35bf974e7f8568). (uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).()) -> textcxx . . $ QListWidgetItem#text(6ef7b6c27b00b43d).(); //current list item text |
| 1060 | alsoExecuteStatecxx . . $ modifyDialog#alsoExecuteState. = uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).() -> checkStatecxx . . $ QListWidgetItem#checkState(94511a6609c7e4a7).(); // current list item check state |
| 1061 | uiMcxx . . $ modifyDialog#uiM..lineEdit_executeAfterAddcxx . . $ Ui_modifyDialog#lineEdit_executeAfterAdd. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6). (selectedText); |
| 1062 | uiMcxx . . $ modifyDialog#uiM..lineEdit_executeAfterAddcxx . . $ Ui_modifyDialog#lineEdit_executeAfterAdd. -> setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).(); |
| 1063 | uiMcxx . . $ modifyDialog#uiM..lineEdit_executeAfterAddcxx . . $ Ui_modifyDialog#lineEdit_executeAfterAdd. -> selectAllcxx . . $ QLineEdit#selectAll(49f6e7a06ebc5aa8).(); |
| 1064 | break; |
| 1065 | } |
| 1066 | } |
| 1067 | |
| 1068 | // List item move up button pressed===================================================================================================== |
| 1069 | // Moves an item within list, up one position |
| 1070 | void modifyDialogcxx . . $ modifyDialog#::moveListItemUpcxx . . $ modifyDialog#moveListItemUp(d4f767463ce0a6b3).(const int type) |
| 1071 | { |
| 1072 | int selected; |
| 1073 | QListWidgetItemcxx . . $ QListWidgetItem# *tempItem; |
| 1074 | switch (type) |
| 1075 | { |
| 1076 | //exclude list |
| 1077 | case 0: selected = uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 1078 | if (selected < 0) //if nothing is selected do nothing |
| 1079 | return; |
| 1080 | if (selected > 0) //if this is not the first row proceed with swapping items |
| 1081 | { |
| 1082 | tempItem = uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selected); |
| 1083 | uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> insertItemcxx . . $ QListWidget#insertItem(a4bbc2a5333b312d). (selected-1, tempItem); |
| 1084 | uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3). (selected-1); |
| 1085 | } |
| 1086 | break; |
| 1087 | //include list |
| 1088 | case 1: selected = uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 1089 | if (selected < 0) //if nothing is selected do nothing |
| 1090 | return; |
| 1091 | if (selected > 0) //if this is not the first row proceed with swapping items |
| 1092 | { |
| 1093 | tempItem = uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selected); |
| 1094 | uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> insertItemcxx . . $ QListWidget#insertItem(a4bbc2a5333b312d). (selected-1, tempItem); |
| 1095 | uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3). (selected-1); |
| 1096 | } |
| 1097 | break; |
| 1098 | //options list |
| 1099 | case 2: selected = uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 1100 | if (selected < 0) //if nothing is selected do nothing |
| 1101 | return; |
| 1102 | if (selected > 0) //if this is not the first row proceed with swapping items |
| 1103 | { |
| 1104 | tempItem = uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selected); |
| 1105 | uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> insertItemcxx . . $ QListWidget#insertItem(a4bbc2a5333b312d). (selected-1, tempItem); |
| 1106 | uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3). (selected-1); |
| 1107 | } |
| 1108 | break; |
| 1109 | //execute before |
| 1110 | case 3: selected = uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 1111 | if (selected < 0) //if nothing is selected do nothing |
| 1112 | return; |
| 1113 | if (selected > 0) //if this is not the first row proceed with swapping items |
| 1114 | { |
| 1115 | tempItem = uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selected); |
| 1116 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> insertItemcxx . . $ QListWidget#insertItem(a4bbc2a5333b312d). (selected-1, tempItem); |
| 1117 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3). (selected-1); |
| 1118 | } |
| 1119 | break; |
| 1120 | //execute after |
| 1121 | case 4: selected = uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 1122 | if (selected < 0) //if nothing is selected do nothing |
| 1123 | return; |
| 1124 | if (selected > 0) //if this is not the first row proceed with swapping items |
| 1125 | { |
| 1126 | tempItem = uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selected); |
| 1127 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> insertItemcxx . . $ QListWidget#insertItem(a4bbc2a5333b312d). (selected-1, tempItem); |
| 1128 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3). (selected-1); |
| 1129 | } |
| 1130 | break; |
| 1131 | } |
| 1132 | |
| 1133 | } |
| 1134 | |
| 1135 | // List item move down button pressed===================================================================================================== |
| 1136 | // Moves an item within list, down one position |
| 1137 | void modifyDialogcxx . . $ modifyDialog#::moveListItemDowncxx . . $ modifyDialog#moveListItemDown(d4f767463ce0a6b3).(const int type) |
| 1138 | { |
| 1139 | int selected, totalListItems; |
| 1140 | QListWidgetItemcxx . . $ QListWidgetItem# *tempItem; |
| 1141 | switch (type) |
| 1142 | { |
| 1143 | //exclude list |
| 1144 | case 0: selected = uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 1145 | totalListItems = uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> countcxx . . $ QListWidget#count(455f465bc33b4cdf).(); //total no of list items |
| 1146 | if (selected < 0) //if nothing is selected do nothing |
| 1147 | return; |
| 1148 | if (selected < totalListItems-1) //if this is not the last row proceed with swapping items |
| 1149 | { |
| 1150 | tempItem = uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selected); |
| 1151 | uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> insertItemcxx . . $ QListWidget#insertItem(a4bbc2a5333b312d). (selected+1, tempItem); |
| 1152 | uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3). (selected+1); |
| 1153 | } |
| 1154 | break; |
| 1155 | //include list |
| 1156 | case 1: selected = uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 1157 | totalListItems = uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> countcxx . . $ QListWidget#count(455f465bc33b4cdf).(); //total no of list items |
| 1158 | if (selected < 0) //if nothing is selected do nothing |
| 1159 | return; |
| 1160 | if (selected < totalListItems-1) //if this is not the last row proceed with swapping items |
| 1161 | { |
| 1162 | tempItem = uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selected); |
| 1163 | uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> insertItemcxx . . $ QListWidget#insertItem(a4bbc2a5333b312d). (selected+1, tempItem); |
| 1164 | uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3). (selected+1); |
| 1165 | } |
| 1166 | break; |
| 1167 | //options list |
| 1168 | case 2: selected = uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 1169 | totalListItems = uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> countcxx . . $ QListWidget#count(455f465bc33b4cdf).(); //total no of list items |
| 1170 | if (selected < 0) //if nothing is selected do nothing |
| 1171 | return; |
| 1172 | if (selected < totalListItems-1) //if this is not the last row proceed with swapping items |
| 1173 | { |
| 1174 | tempItem = uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selected); |
| 1175 | uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> insertItemcxx . . $ QListWidget#insertItem(a4bbc2a5333b312d). (selected+1, tempItem); |
| 1176 | uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3). (selected+1); |
| 1177 | } |
| 1178 | break; |
| 1179 | //execute before |
| 1180 | case 3: selected = uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 1181 | totalListItems = uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> countcxx . . $ QListWidget#count(455f465bc33b4cdf).(); //total no of list items |
| 1182 | if (selected < 0) //if nothing is selected do nothing |
| 1183 | return; |
| 1184 | if (selected < totalListItems-1) //if this is not the last row proceed with swapping items |
| 1185 | { |
| 1186 | tempItem = uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selected); |
| 1187 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> insertItemcxx . . $ QListWidget#insertItem(a4bbc2a5333b312d). (selected+1, tempItem); |
| 1188 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3). (selected+1); |
| 1189 | } |
| 1190 | break; |
| 1191 | //execute after |
| 1192 | case 4: selected = uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> currentRowcxx . . $ QListWidget#currentRow(455f465bc33b4cdf).(); //current list row number |
| 1193 | totalListItems = uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> countcxx . . $ QListWidget#count(455f465bc33b4cdf).(); //total no of list items |
| 1194 | if (selected < 0) //if nothing is selected do nothing |
| 1195 | return; |
| 1196 | if (selected < totalListItems-1) //if this is not the last row proceed with swapping items |
| 1197 | { |
| 1198 | tempItem = uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> takeItemcxx . . $ QListWidget#takeItem(ffbac97cfc278ea8).(selected); |
| 1199 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> insertItemcxx . . $ QListWidget#insertItem(a4bbc2a5333b312d). (selected+1, tempItem); |
| 1200 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3). (selected+1); |
| 1201 | } |
| 1202 | break; |
| 1203 | } |
| 1204 | |
| 1205 | } |
| 1206 | |
| 1207 | // Task type combobox changed===================================================================================================== |
| 1208 | // Enable/disable the "keep snapshots" spinbox |
| 1209 | void modifyDialogcxx . . $ modifyDialog#::TaskTypeChangedcxx . . $ modifyDialog#TaskTypeChanged(d4f767463ce0a6b3).(int type) |
| 1210 | { |
| 1211 | if (type == 1) |
| 1212 | { |
| 1213 | uiMcxx . . $ modifyDialog#uiM..label_snapshotsKeepcxx . . $ Ui_modifyDialog#label_snapshotsKeep. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 1214 | uiMcxx . . $ modifyDialog#uiM..spinBox_snapshotsKeepcxx . . $ Ui_modifyDialog#spinBox_snapshotsKeep. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 1215 | uiMcxx . . $ modifyDialog#uiM..checkBox_backupContentscxx . . $ Ui_modifyDialog#checkBox_backupContents. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 1216 | uiMcxx . . $ modifyDialog#uiM..checkBox_deleteAftercxx . . $ Ui_modifyDialog#checkBox_deleteAfter. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 1217 | } |
| 1218 | else |
| 1219 | { |
| 1220 | uiMcxx . . $ modifyDialog#uiM..label_snapshotsKeepcxx . . $ Ui_modifyDialog#label_snapshotsKeep. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(true); |
| 1221 | uiMcxx . . $ modifyDialog#uiM..spinBox_snapshotsKeepcxx . . $ Ui_modifyDialog#spinBox_snapshotsKeep. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(true); |
| 1222 | uiMcxx . . $ modifyDialog#uiM..checkBox_backupContentscxx . . $ Ui_modifyDialog#checkBox_backupContents. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(true); |
| 1223 | uiMcxx . . $ modifyDialog#uiM..checkBox_deleteAftercxx . . $ Ui_modifyDialog#checkBox_deleteAfter. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 1224 | } |
| 1225 | } |
| 1226 | // Include tab stuff changed===================================================================================================== |
| 1227 | // Enable/disable the "exclude" tab |
| 1228 | void modifyDialogcxx . . $ modifyDialog#::disableExcludeTabcxx . . $ modifyDialog#disableExcludeTab(49f6e7a06ebc5aa8).() |
| 1229 | { |
| 1230 | bool enableIt = true; |
| 1231 | |
| 1232 | // conditions to disable the exclude tab |
| 1233 | if ( ( (uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> countcxx . . $ QListWidget#count(455f465bc33b4cdf).() > 0) || |
| 1234 | ((uiMcxx . . $ modifyDialog#uiM..checkBox_includeFilecxx . . $ Ui_modifyDialog#checkBox_includeFile.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) && ((uiMcxx . . $ modifyDialog#uiM..lineEdit_includeFilecxx . . $ Ui_modifyDialog#lineEdit_includeFile.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()).sizecxx . . $ QString#size(455f465bc33b4cdf).() >0)) ) && |
| 1235 | (uiMcxx . . $ modifyDialog#uiM..radioButton_includeOnlycxx . . $ Ui_modifyDialog#radioButton_includeOnly. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) ) |
| 1236 | |
| 1237 | enableIt = false; |
| 1238 | |
| 1239 | uiMcxx . . $ modifyDialog#uiM..toolBox_excludecxx . . $ Ui_modifyDialog#toolBox_exclude. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (enableIt); |
| 1240 | } |
| 1241 | |
| 1242 | //=================================================================================================================================================== |
| 1243 | //------------------------------------------------------------------FUNCTIONS------------------------------------------------------------------------ |
| 1244 | //=================================================================================================================================================== |
| 1245 | |
| 1246 | // fillOperationArray ===================================================================================================== |
| 1247 | //function to fill the data of an operation array item from the window fields |
| 1248 | operationcxx . . $ operation# *modifyDialogcxx . . $ modifyDialog#::fillOperationArraycxx . . $ modifyDialog#fillOperationArray(9d9f74a14a8c897).() |
| 1249 | { |
| 1250 | operationcxx . . $ operation# *pTask = new operationcxx . . $ operation#; |
| 1251 | |
| 1252 | //Before doing any changes, inherit last execution time & error as well as snapshots list from the existing task |
| 1253 | //if this is not a new task (modify task. NOT new/duplicate/restore task) |
| 1254 | if (!newTaskThisIscxx . . $ Global/newTaskThisIs.) |
| 1255 | { |
| 1256 | pTask -> SetLastExecutionTimecxx . . $ operation#SetLastExecutionTime(738e092a5192a79). (Operationcxx . . $ Global/Operation.[ArrayPositioncxx . . $ modifyDialog#ArrayPosition.] -> GetLastExecutionTimecxx . . $ operation#GetLastExecutionTime(4e062b5c490497ac).()); |
| 1257 | pTask -> SetLastExecutionErrorscxx . . $ operation#SetLastExecutionErrors(d4f767463ce0a6b3). (Operationcxx . . $ Global/Operation.[ArrayPositioncxx . . $ modifyDialog#ArrayPosition.] -> GetLastExecutionErrorscxx . . $ operation#GetLastExecutionErrors(455f465bc33b4cdf).()); |
| 1258 | pTask -> SetSnapshotsListcxx . . $ operation#SetSnapshotsList(fc47db3ea09604d9). (Operationcxx . . $ Global/Operation.[ArrayPositioncxx . . $ modifyDialog#ArrayPosition.] -> GetSnapshotsListcxx . . $ operation#GetSnapshotsList(e1dbd5c4feadc8f5).()); |
| 1259 | } |
| 1260 | |
| 1261 | //set operation name -------------------------------------------------------------------------------------------------------- |
| 1262 | pTask -> SetNamecxx . . $ operation#SetName(7df51288a9ebd664). ( uiMcxx . . $ modifyDialog#uiM..lineEdit_namecxx . . $ Ui_modifyDialog#lineEdit_name. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ); |
| 1263 | |
| 1264 | // set connection ---------------------------------------------------------------------------- |
| 1265 | pTask -> SetConnectRestorecxx . . $ operation#SetConnectRestore(7df51288a9ebd664). (""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1266 | |
| 1267 | //set task description -------------------------------------------------------------------------------------------------------- |
| 1268 | pTask -> SetDescriptioncxx . . $ operation#SetDescription(7df51288a9ebd664). ( uiMcxx . . $ modifyDialog#uiM..textEdit_Descriptioncxx . . $ Ui_modifyDialog#textEdit_Description. -> toPlainTextcxx . . $ QPlainTextEdit#toPlainText(6ef7b6c27b00b43d).() ); |
| 1269 | |
| 1270 | // set operation type ------------------------------------------------------------------------------ |
| 1271 | if (uiMcxx . . $ modifyDialog#uiM..comboBox_Typecxx . . $ Ui_modifyDialog#comboBox_Type. -> currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).()==0) |
| 1272 | { |
| 1273 | if (uiMcxx . . $ modifyDialog#uiM..checkBox_backupContentscxx . . $ Ui_modifyDialog#checkBox_backupContents. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 1274 | { |
| 1275 | pTask -> SetTypeDirContentscxx . . $ operation#SetTypeDirContents(b45ddcbc8423892c). ( true ); |
| 1276 | pTask -> SetTypeDirNamecxx . . $ operation#SetTypeDirName(b45ddcbc8423892c). ( false ); |
| 1277 | pTask -> SetTypeSynccxx . . $ operation#SetTypeSync(b45ddcbc8423892c). ( false ); |
| 1278 | } |
| 1279 | else |
| 1280 | { |
| 1281 | pTask -> SetTypeDirContentscxx . . $ operation#SetTypeDirContents(b45ddcbc8423892c). ( false ); |
| 1282 | pTask -> SetTypeDirNamecxx . . $ operation#SetTypeDirName(b45ddcbc8423892c). ( true ); |
| 1283 | pTask -> SetTypeSynccxx . . $ operation#SetTypeSync(b45ddcbc8423892c). ( false ); |
| 1284 | } |
| 1285 | } |
| 1286 | if (uiMcxx . . $ modifyDialog#uiM..comboBox_Typecxx . . $ Ui_modifyDialog#comboBox_Type. -> currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).()==1) |
| 1287 | { |
| 1288 | pTask -> SetTypeDirContentscxx . . $ operation#SetTypeDirContents(b45ddcbc8423892c). ( false ); |
| 1289 | pTask -> SetTypeDirNamecxx . . $ operation#SetTypeDirName(b45ddcbc8423892c). ( false ); |
| 1290 | pTask -> SetTypeSynccxx . . $ operation#SetTypeSync(b45ddcbc8423892c). ( true ); |
| 1291 | uiMcxx . . $ modifyDialog#uiM..spinBox_snapshotsKeepcxx . . $ Ui_modifyDialog#spinBox_snapshotsKeep. -> setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3). (1); // also set the keep snapshots spinbox to "1" if it is a sync task |
| 1292 | } |
| 1293 | |
| 1294 | // also set the keep snapshots spinbox to "1" if remote destination is used |
| 1295 | // Commended bacause remote snapshots are now supported - safely delete this |
| 1296 | //if ( (uiM.groupBox_remote -> isChecked()) && (uiM.radioButton_remoteDestination -> isChecked()) ) |
| 1297 | // uiM.spinBox_snapshotsKeep -> setValue (1); |
| 1298 | |
| 1299 | //set source & destination ------------------------------------------------------------------------------------------------ |
| 1300 | pTask -> SetSourcecxx . . $ operation#SetSource(7df51288a9ebd664). ( uiMcxx . . $ modifyDialog#uiM..lineEdit_sourcecxx . . $ Ui_modifyDialog#lineEdit_source. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ); |
| 1301 | pTask -> SetDestinationcxx . . $ operation#SetDestination(7df51288a9ebd664). ( uiMcxx . . $ modifyDialog#uiM..lineEdit_destinationcxx . . $ Ui_modifyDialog#lineEdit_destination. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ); |
| 1302 | |
| 1303 | //set number of snapshots ------------------------------------------------------------------------------------------------ |
| 1304 | pTask -> SetKeepSnapshotscxx . . $ operation#SetKeepSnapshots(d4f767463ce0a6b3). ( uiMcxx . . $ modifyDialog#uiM..spinBox_snapshotsKeepcxx . . $ Ui_modifyDialog#spinBox_snapshotsKeep. -> valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).() ); |
| 1305 | |
| 1306 | //set exclude groupbox & all the info in there ----------------------------------------------------------------------------- |
| 1307 | pTask -> SetExcludeTempcxx . . $ operation#SetExcludeTemp(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_excludeTempcxx . . $ Ui_modifyDialog#checkBox_excludeTemp. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1308 | pTask -> SetExcludeFromFilecxx . . $ operation#SetExcludeFromFile(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_excludeFilecxx . . $ Ui_modifyDialog#checkBox_excludeFile. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1309 | pTask -> SetExcludeFilecxx . . $ operation#SetExcludeFile(7df51288a9ebd664). ( uiMcxx . . $ modifyDialog#uiM..lineEdit_excludeFilecxx . . $ Ui_modifyDialog#lineEdit_excludeFile. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ); |
| 1310 | pTask -> SetExcludeCachecxx . . $ operation#SetExcludeCache(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_excludeCachecxx . . $ Ui_modifyDialog#checkBox_excludeCache. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1311 | pTask -> SetExcludeBackupcxx . . $ operation#SetExcludeBackup(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_excludeBackupcxx . . $ Ui_modifyDialog#checkBox_excludeBackup. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1312 | pTask -> SetExcludeMountcxx . . $ operation#SetExcludeMount(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_excludeMountcxx . . $ Ui_modifyDialog#checkBox_excludeMount. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1313 | pTask -> SetExcludeLostFoundcxx . . $ operation#SetExcludeLostFound(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_excludeLostFoundcxx . . $ Ui_modifyDialog#checkBox_excludeLostFound. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1314 | pTask -> SetExcludeSystemcxx . . $ operation#SetExcludeSystem(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_excludeSystemcxx . . $ Ui_modifyDialog#checkBox_excludeSystem. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1315 | pTask -> SetExcludeTrashcxx . . $ operation#SetExcludeTrash(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_excludeTrashcxx . . $ Ui_modifyDialog#checkBox_excludeTrash. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1316 | pTask -> SetExcludeGVFScxx . . $ operation#SetExcludeGVFS(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_excludeGVFScxx . . $ Ui_modifyDialog#checkBox_excludeGVFS. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1317 | |
| 1318 | countcxx . . $ modifyDialog#count. = 0; //read exclude list one by one |
| 1319 | while ( countcxx . . $ modifyDialog#count. < (uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> countcxx . . $ QListWidget#count(455f465bc33b4cdf).()) ) |
| 1320 | { |
| 1321 | uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3).(countcxx . . $ modifyDialog#count.); |
| 1322 | pTask -> AddExcludeListItemcxx . . $ operation#AddExcludeListItem(7df51288a9ebd664).((uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).()) -> textcxx . . $ QListWidgetItem#text(6ef7b6c27b00b43d).()); |
| 1323 | countcxx . . $ modifyDialog#count.++; |
| 1324 | } |
| 1325 | pTask -> SetExcludecxx . . $ operation#SetExclude(49f6e7a06ebc5aa8). (); |
| 1326 | |
| 1327 | //set include groupbox & all the info in there ----------------------------------------------------------------------------- |
| 1328 | pTask -> SetIncludeFromFilecxx . . $ operation#SetIncludeFromFile(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_includeFilecxx . . $ Ui_modifyDialog#checkBox_includeFile. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1329 | pTask -> SetIncludeFilecxx . . $ operation#SetIncludeFile(7df51288a9ebd664). ( uiMcxx . . $ modifyDialog#uiM..lineEdit_includeFilecxx . . $ Ui_modifyDialog#lineEdit_includeFile. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ); |
| 1330 | pTask -> SetIncludeModeNormalcxx . . $ operation#SetIncludeModeNormal(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..radioButton_includeNormalcxx . . $ Ui_modifyDialog#radioButton_includeNormal. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1331 | countcxx . . $ modifyDialog#count. = 0; //read include list one by one |
| 1332 | while ( countcxx . . $ modifyDialog#count. < (uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> countcxx . . $ QListWidget#count(455f465bc33b4cdf).()) ) |
| 1333 | { |
| 1334 | uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3).(countcxx . . $ modifyDialog#count.); |
| 1335 | pTask -> AddIncludeListItemcxx . . $ operation#AddIncludeListItem(7df51288a9ebd664).((uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).()) -> textcxx . . $ QListWidgetItem#text(6ef7b6c27b00b43d).()); |
| 1336 | countcxx . . $ modifyDialog#count.++; |
| 1337 | } |
| 1338 | pTask -> SetIncludecxx . . $ operation#SetInclude(49f6e7a06ebc5aa8).(); |
| 1339 | |
| 1340 | //set remote groupbox & all the info in there ----------------------------------------------------------------------------- |
| 1341 | pTask -> SetRemotecxx . . $ operation#SetRemote(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..groupBox_remotecxx . . $ Ui_modifyDialog#groupBox_remote. -> isCheckedcxx . . $ QGroupBox#isChecked(50ce9a9e25b4a850).() ); |
| 1342 | pTask -> SetRemoteModulecxx . . $ operation#SetRemoteModule(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_remoteModulecxx . . $ Ui_modifyDialog#checkBox_remoteModule. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1343 | pTask -> SetRemoteDestinationcxx . . $ operation#SetRemoteDestination(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..radioButton_remoteDestinationcxx . . $ Ui_modifyDialog#radioButton_remoteDestination. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1344 | pTask -> SetRemoteSourcecxx . . $ operation#SetRemoteSource(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..radioButton_remoteSourcecxx . . $ Ui_modifyDialog#radioButton_remoteSource. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1345 | pTask -> SetRemoteHostcxx . . $ operation#SetRemoteHost(7df51288a9ebd664). ( uiMcxx . . $ modifyDialog#uiM..lineEdit_remoteHostcxx . . $ Ui_modifyDialog#lineEdit_remoteHost. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ); |
| 1346 | pTask -> SetRemoteUsercxx . . $ operation#SetRemoteUser(7df51288a9ebd664). ( uiMcxx . . $ modifyDialog#uiM..lineEdit_remoteUsercxx . . $ Ui_modifyDialog#lineEdit_remoteUser. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ); |
| 1347 | pTask -> SetRemotePasswordcxx . . $ operation#SetRemotePassword(7df51288a9ebd664). ( uiMcxx . . $ modifyDialog#uiM..lineEdit_rsyncPasswordcxx . . $ Ui_modifyDialog#lineEdit_rsyncPassword. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ); |
| 1348 | pTask -> SetRemoteSSHcxx . . $ operation#SetRemoteSSH(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_sshcxx . . $ Ui_modifyDialog#checkBox_ssh. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1349 | pTask -> SetRemoteSSHPasswordcxx . . $ operation#SetRemoteSSHPassword(7df51288a9ebd664). ( uiMcxx . . $ modifyDialog#uiM..lineEdit_sshPasswordcxx . . $ Ui_modifyDialog#lineEdit_sshPassword. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ); |
| 1350 | pTask -> SetRemoteSSHPortcxx . . $ operation#SetRemoteSSHPort(d4f767463ce0a6b3). ( (uiMcxx . . $ modifyDialog#uiM..lineEdit_sshPortcxx . . $ Ui_modifyDialog#lineEdit_sshPort. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()).toIntcxx . . $ QString#toInt(d7972accae11ee1f).() ); |
| 1351 | pTask -> SetRemoteSSHPasswordStrcxx . . $ operation#SetRemoteSSHPasswordStr(7df51288a9ebd664).( uiMcxx . . $ modifyDialog#uiM..lineEdit_sshPasswordStrcxx . . $ Ui_modifyDialog#lineEdit_sshPasswordStr. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()); |
| 1352 | pTask -> SetRemoteSSHOptionscxx . . $ operation#SetRemoteSSHOptions(7df51288a9ebd664). ( uiMcxx . . $ modifyDialog#uiM..lineEdit_sshOptionscxx . . $ Ui_modifyDialog#lineEdit_sshOptions. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()); |
| 1353 | |
| 1354 | //set rsync options checkboxes ----------------------------------------------------------------------------------------------- |
| 1355 | pTask -> SetOptionsUpdatecxx . . $ operation#SetOptionsUpdate(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_updatecxx . . $ Ui_modifyDialog#checkBox_update. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1356 | pTask -> SetOptionsOwnershipcxx . . $ operation#SetOptionsOwnership(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_ownershipcxx . . $ Ui_modifyDialog#checkBox_ownership. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1357 | pTask -> SetOptionsSymlinkscxx . . $ operation#SetOptionsSymlinks(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_symlinkscxx . . $ Ui_modifyDialog#checkBox_symlinks. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1358 | pTask -> SetOptionsPermissionscxx . . $ operation#SetOptionsPermissions(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_permissionscxx . . $ Ui_modifyDialog#checkBox_permissions. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1359 | pTask -> SetOptionsDevicescxx . . $ operation#SetOptionsDevices(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_devicescxx . . $ Ui_modifyDialog#checkBox_devices. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1360 | pTask -> SetOptionsCVScxx . . $ operation#SetOptionsCVS(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_cvscxx . . $ Ui_modifyDialog#checkBox_cvs. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1361 | pTask -> SetOptionsHardLinkscxx . . $ operation#SetOptionsHardLinks(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_hardLinkscxx . . $ Ui_modifyDialog#checkBox_hardLinks. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1362 | pTask -> SetOptionsFATntfscxx . . $ operation#SetOptionsFATntfs(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_FATntfscxx . . $ Ui_modifyDialog#checkBox_FATntfs. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1363 | pTask -> SetOptionsDeletecxx . . $ operation#SetOptionsDelete(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_deleteAftercxx . . $ Ui_modifyDialog#checkBox_deleteAfter. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1364 | pTask -> SetOptionsRecursecxx . . $ operation#SetOptionsRecurse(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_recursecxx . . $ Ui_modifyDialog#checkBox_recurse. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1365 | pTask -> SetOptionsSupercxx . . $ operation#SetOptionsSuper(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_supercxx . . $ Ui_modifyDialog#checkBox_super. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1366 | pTask -> SetOptionsNumericIDscxx . . $ operation#SetOptionsNumericIDs(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_numericIDscxx . . $ Ui_modifyDialog#checkBox_numericIDs. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1367 | // windows related rsync options |
| 1368 | pTask -> SetOptionsRestorentcxx . . $ operation#SetOptionsRestorent(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_restorentcxx . . $ Ui_modifyDialog#checkBox_restorent. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1369 | pTask -> SetOptionsVsscxx . . $ operation#SetOptionsVss(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_vsscxx . . $ Ui_modifyDialog#checkBox_vss. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1370 | pTask -> SetTempPathcxx . . $ operation#SetTempPath(7df51288a9ebd664).(tempDirPathcxx . . $ QString#QString(132dd6869045752b).); |
| 1371 | pTask -> SetLuckyBackupDircxx . . $ operation#SetLuckyBackupDir(7df51288a9ebd664). (luckyBackupDircxx . . $ QString#QString(132dd6869045752b).); |
| 1372 | pTask -> SetVshadowDircxx . . $ operation#SetVshadowDir(7df51288a9ebd664). (vshadowDircxx . . $ QString#QString(132dd6869045752b).); |
| 1373 | pTask -> SetDosdevCommandcxx . . $ operation#SetDosdevCommand(7df51288a9ebd664). (dosdevCommandcxx . . $ QString#QString(132dd6869045752b).); |
| 1374 | pTask -> SetCygpathCommandcxx . . $ operation#SetCygpathCommand(7df51288a9ebd664). (cygpathCommandcxx . . $ QString#QString(132dd6869045752b).); |
| 1375 | pTask -> SetRsyncCommandcxx . . $ operation#SetRsyncCommand(7df51288a9ebd664). (rsyncCommandPathcxx . . $ QString#QString(132dd6869045752b).); |
| 1376 | pTask -> SetSshCommandcxx . . $ operation#SetSshCommand(7df51288a9ebd664). (sshCommandPathcxx . . $ QString#QString(132dd6869045752b).); |
| 1377 | |
| 1378 | countcxx . . $ modifyDialog#count. = 0; //read options list one by one |
| 1379 | while ( countcxx . . $ modifyDialog#count. < (uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> countcxx . . $ QListWidget#count(455f465bc33b4cdf).()) ) |
| 1380 | { |
| 1381 | uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3).(countcxx . . $ modifyDialog#count.); |
| 1382 | pTask -> AddOptionsListItemcxx . . $ operation#AddOptionsListItem(7df51288a9ebd664).((uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).()) -> textcxx . . $ QListWidgetItem#text(6ef7b6c27b00b43d).()); |
| 1383 | countcxx . . $ modifyDialog#count.++; |
| 1384 | } |
| 1385 | countcxx . . $ modifyDialog#count. = 0; //read execute before list one by one |
| 1386 | bool tempState; |
| 1387 | while ( countcxx . . $ modifyDialog#count. < (uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> countcxx . . $ QListWidget#count(455f465bc33b4cdf).()) ) |
| 1388 | { |
| 1389 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3).(countcxx . . $ modifyDialog#count.); |
| 1390 | pTask -> AddExecuteBeforeListItemcxx . . $ operation#AddExecuteBeforeListItem(7df51288a9ebd664).((uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).()) -> textcxx . . $ QListWidgetItem#text(6ef7b6c27b00b43d).()); |
| 1391 | if ((uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).()) -> checkStatecxx . . $ QListWidgetItem#checkState(94511a6609c7e4a7).() == Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked.) |
| 1392 | tempState = true; else tempState = false; |
| 1393 | pTask -> AddExecuteBeforeListItemStatecxx . . $ operation#AddExecuteBeforeListItemState(b45ddcbc8423892c).(tempState); |
| 1394 | countcxx . . $ modifyDialog#count.++; |
| 1395 | } |
| 1396 | countcxx . . $ modifyDialog#count. = 0; //read execute after list one by one |
| 1397 | while ( countcxx . . $ modifyDialog#count. < (uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> countcxx . . $ QListWidget#count(455f465bc33b4cdf).()) ) |
| 1398 | { |
| 1399 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3).(countcxx . . $ modifyDialog#count.); |
| 1400 | pTask -> AddExecuteAfterListItemcxx . . $ operation#AddExecuteAfterListItem(7df51288a9ebd664).((uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).()) -> textcxx . . $ QListWidgetItem#text(6ef7b6c27b00b43d).()); |
| 1401 | if ((uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).()) -> checkStatecxx . . $ QListWidgetItem#checkState(94511a6609c7e4a7).() == Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked.) |
| 1402 | tempState = true; else tempState = false; |
| 1403 | pTask -> AddExecuteAfterListItemStatecxx . . $ operation#AddExecuteAfterListItemState(b45ddcbc8423892c).(tempState); |
| 1404 | countcxx . . $ modifyDialog#count.++; |
| 1405 | } |
| 1406 | pTask -> SetByPassWARNINGcxx . . $ operation#SetByPassWARNING(b45ddcbc8423892c). ( uiMcxx . . $ modifyDialog#uiM..checkBox_byPassWarningcxx . . $ Ui_modifyDialog#checkBox_byPassWarning. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() ); |
| 1407 | pTask -> SetRepeatOnFailcxx . . $ operation#SetRepeatOnFail(d4f767463ce0a6b3). ( uiMcxx . . $ modifyDialog#uiM..spinBox_repeatOnFailcxx . . $ Ui_modifyDialog#spinBox_repeatOnFail. -> valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).() ); |
| 1408 | |
| 1409 | //append aguments ----------------------------------------------------------------------------------------------------------- |
| 1410 | pTask -> SetArgscxx . . $ operation#SetArgs(fc47db3ea09604d9). ( AppendArgumentscxx . . $ Global/AppendArguments(20f639a182fdbea2).(pTask) ); |
| 1411 | |
| 1412 | return pTask; |
| 1413 | } |
| 1414 | |
| 1415 | // fillModifyWindow ======================================================================================================= |
| 1416 | //function to fill the window fields from the data of an operation array item |
| 1417 | void modifyDialogcxx . . $ modifyDialog#::fillModifyWindowcxx . . $ modifyDialog#fillModifyWindow(b4c25c12f379bf65).(operationcxx . . $ operation# *pTask) |
| 1418 | { |
| 1419 | uiMcxx . . $ modifyDialog#uiM..lineEdit_namecxx . . $ Ui_modifyDialog#lineEdit_name. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6). (pTask -> GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).() ); |
| 1420 | |
| 1421 | uiMcxx . . $ modifyDialog#uiM..textEdit_Descriptioncxx . . $ Ui_modifyDialog#textEdit_Description. -> setPlainTextcxx . . $ QPlainTextEdit#setPlainText(3520e46b33348bf6). (pTask -> GetDescriptioncxx . . $ operation#GetDescription(6ef7b6c27b00b43d).() ); |
| 1422 | |
| 1423 | if (pTask -> GetTypeDirContentscxx . . $ operation#GetTypeDirContents(50ce9a9e25b4a850).()) |
| 1424 | { |
| 1425 | uiMcxx . . $ modifyDialog#uiM..comboBox_Typecxx . . $ Ui_modifyDialog#comboBox_Type. -> setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 1426 | uiMcxx . . $ modifyDialog#uiM..checkBox_backupContentscxx . . $ Ui_modifyDialog#checkBox_backupContents. -> setCheckStatecxx . . $ QCheckBox#setCheckState(537692883700039).(Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked.); |
| 1427 | uiMcxx . . $ modifyDialog#uiM..checkBox_deleteAftercxx . . $ Ui_modifyDialog#checkBox_deleteAfter. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 1428 | } |
| 1429 | if (pTask -> GetTypeDirNamecxx . . $ operation#GetTypeDirName(50ce9a9e25b4a850).()) |
| 1430 | { |
| 1431 | uiMcxx . . $ modifyDialog#uiM..comboBox_Typecxx . . $ Ui_modifyDialog#comboBox_Type. -> setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 1432 | uiMcxx . . $ modifyDialog#uiM..checkBox_backupContentscxx . . $ Ui_modifyDialog#checkBox_backupContents. -> setCheckStatecxx . . $ QCheckBox#setCheckState(537692883700039).(Qtcxx . . $ Qt/::Uncheckedcxx . . $ Qt/Unchecked.); |
| 1433 | uiMcxx . . $ modifyDialog#uiM..checkBox_deleteAftercxx . . $ Ui_modifyDialog#checkBox_deleteAfter. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 1434 | } |
| 1435 | if (pTask -> GetTypeSynccxx . . $ operation#GetTypeSync(50ce9a9e25b4a850).()) |
| 1436 | { |
| 1437 | uiMcxx . . $ modifyDialog#uiM..comboBox_Typecxx . . $ Ui_modifyDialog#comboBox_Type. -> setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(1); |
| 1438 | uiMcxx . . $ modifyDialog#uiM..checkBox_deleteAftercxx . . $ Ui_modifyDialog#checkBox_deleteAfter. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 1439 | } |
| 1440 | |
| 1441 | uiMcxx . . $ modifyDialog#uiM..lineEdit_sourcecxx . . $ Ui_modifyDialog#lineEdit_source. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6). (pTask -> GetSourcecxx . . $ operation#GetSource(6ef7b6c27b00b43d).() ); |
| 1442 | uiMcxx . . $ modifyDialog#uiM..lineEdit_destinationcxx . . $ Ui_modifyDialog#lineEdit_destination. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6). (pTask -> GetDestinationcxx . . $ operation#GetDestination(6ef7b6c27b00b43d).() ); |
| 1443 | |
| 1444 | uiMcxx . . $ modifyDialog#uiM..spinBox_snapshotsKeepcxx . . $ Ui_modifyDialog#spinBox_snapshotsKeep. -> setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3). (pTask -> GetKeepSnapshotscxx . . $ operation#GetKeepSnapshots(455f465bc33b4cdf).()); |
| 1445 | |
| 1446 | uiMcxx . . $ modifyDialog#uiM..checkBox_excludeFilecxx . . $ Ui_modifyDialog#checkBox_excludeFile. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetExcludeFromFilecxx . . $ operation#GetExcludeFromFile(50ce9a9e25b4a850).() ); |
| 1447 | uiMcxx . . $ modifyDialog#uiM..lineEdit_excludeFilecxx . . $ Ui_modifyDialog#lineEdit_excludeFile. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6). (pTask -> GetExcludeFilecxx . . $ operation#GetExcludeFile(6ef7b6c27b00b43d).() ); |
| 1448 | uiMcxx . . $ modifyDialog#uiM..checkBox_excludeTempcxx . . $ Ui_modifyDialog#checkBox_excludeTemp. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetExcludeTempcxx . . $ operation#GetExcludeTemp(50ce9a9e25b4a850).() ); |
| 1449 | uiMcxx . . $ modifyDialog#uiM..checkBox_excludeCachecxx . . $ Ui_modifyDialog#checkBox_excludeCache. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetExcludeCachecxx . . $ operation#GetExcludeCache(50ce9a9e25b4a850).() ); |
| 1450 | uiMcxx . . $ modifyDialog#uiM..checkBox_excludeBackupcxx . . $ Ui_modifyDialog#checkBox_excludeBackup. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetExcludeBackupcxx . . $ operation#GetExcludeBackup(50ce9a9e25b4a850).() ); |
| 1451 | uiMcxx . . $ modifyDialog#uiM..checkBox_excludeMountcxx . . $ Ui_modifyDialog#checkBox_excludeMount. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetExcludeMountcxx . . $ operation#GetExcludeMount(50ce9a9e25b4a850).() ); |
| 1452 | uiMcxx . . $ modifyDialog#uiM..checkBox_excludeLostFoundcxx . . $ Ui_modifyDialog#checkBox_excludeLostFound. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetExcludeLostFoundcxx . . $ operation#GetExcludeLostFound(50ce9a9e25b4a850).() ); |
| 1453 | uiMcxx . . $ modifyDialog#uiM..checkBox_excludeSystemcxx . . $ Ui_modifyDialog#checkBox_excludeSystem. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetExcludeSystemcxx . . $ operation#GetExcludeSystem(50ce9a9e25b4a850).() ); |
| 1454 | uiMcxx . . $ modifyDialog#uiM..checkBox_excludeTrashcxx . . $ Ui_modifyDialog#checkBox_excludeTrash. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetExcludeTrashcxx . . $ operation#GetExcludeTrash(50ce9a9e25b4a850).() ); |
| 1455 | uiMcxx . . $ modifyDialog#uiM..checkBox_excludeGVFScxx . . $ Ui_modifyDialog#checkBox_excludeGVFS. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetExcludeGVFScxx . . $ operation#GetExcludeGVFS(50ce9a9e25b4a850).() ); |
| 1456 | countcxx . . $ modifyDialog#count.=0; |
| 1457 | while ( countcxx . . $ modifyDialog#count. < (pTask -> GetExcludeListSizecxx . . $ operation#GetExcludeListSize(455f465bc33b4cdf).()) ) |
| 1458 | { |
| 1459 | uiMcxx . . $ modifyDialog#uiM..listWidget_excludecxx . . $ Ui_modifyDialog#listWidget_exclude. -> addItemcxx . . $ QListWidget#addItem(3520e46b33348bf6). (pTask -> GetExcludeListItemcxx . . $ operation#GetExcludeListItem(3f3c3d0e9c0eb37f).(countcxx . . $ modifyDialog#count.)); |
| 1460 | countcxx . . $ modifyDialog#count.++; |
| 1461 | } |
| 1462 | |
| 1463 | uiMcxx . . $ modifyDialog#uiM..checkBox_includeFilecxx . . $ Ui_modifyDialog#checkBox_includeFile. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetIncludeFromFilecxx . . $ operation#GetIncludeFromFile(50ce9a9e25b4a850).() ); |
| 1464 | uiMcxx . . $ modifyDialog#uiM..radioButton_includeNormalcxx . . $ Ui_modifyDialog#radioButton_includeNormal. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetIncludeModeNormalcxx . . $ operation#GetIncludeModeNormal(50ce9a9e25b4a850).() ); |
| 1465 | uiMcxx . . $ modifyDialog#uiM..radioButton_includeOnlycxx . . $ Ui_modifyDialog#radioButton_includeOnly. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (!pTask -> GetIncludeModeNormalcxx . . $ operation#GetIncludeModeNormal(50ce9a9e25b4a850).() ); |
| 1466 | uiMcxx . . $ modifyDialog#uiM..lineEdit_includeFilecxx . . $ Ui_modifyDialog#lineEdit_includeFile. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6). (pTask -> GetIncludeFilecxx . . $ operation#GetIncludeFile(6ef7b6c27b00b43d).() ); |
| 1467 | countcxx . . $ modifyDialog#count.=0; |
| 1468 | while ( countcxx . . $ modifyDialog#count. < (pTask -> GetIncludeListSizecxx . . $ operation#GetIncludeListSize(455f465bc33b4cdf).()) ) |
| 1469 | { |
| 1470 | uiMcxx . . $ modifyDialog#uiM..listWidget_includecxx . . $ Ui_modifyDialog#listWidget_include. -> addItemcxx . . $ QListWidget#addItem(3520e46b33348bf6). (pTask -> GetIncludeListItemcxx . . $ operation#GetIncludeListItem(3f3c3d0e9c0eb37f).(countcxx . . $ modifyDialog#count.)); |
| 1471 | countcxx . . $ modifyDialog#count.++; |
| 1472 | } |
| 1473 | |
| 1474 | uiMcxx . . $ modifyDialog#uiM..groupBox_remotecxx . . $ Ui_modifyDialog#groupBox_remote. -> setCheckedcxx . . $ QGroupBox#setChecked(b45ddcbc8423892c). (pTask -> GetRemotecxx . . $ operation#GetRemote(50ce9a9e25b4a850).() ); |
| 1475 | uiMcxx . . $ modifyDialog#uiM..checkBox_remoteModulecxx . . $ Ui_modifyDialog#checkBox_remoteModule. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetRemoteModulecxx . . $ operation#GetRemoteModule(50ce9a9e25b4a850).() ); |
| 1476 | uiMcxx . . $ modifyDialog#uiM..radioButton_remoteDestinationcxx . . $ Ui_modifyDialog#radioButton_remoteDestination.-> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetRemoteDestinationcxx . . $ operation#GetRemoteDestination(50ce9a9e25b4a850).() ); |
| 1477 | uiMcxx . . $ modifyDialog#uiM..radioButton_remoteSourcecxx . . $ Ui_modifyDialog#radioButton_remoteSource. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetRemoteSourcecxx . . $ operation#GetRemoteSource(50ce9a9e25b4a850).() ); |
| 1478 | uiMcxx . . $ modifyDialog#uiM..lineEdit_remoteHostcxx . . $ Ui_modifyDialog#lineEdit_remoteHost. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6). (pTask -> GetRemoteHostcxx . . $ operation#GetRemoteHost(6ef7b6c27b00b43d).() ); |
| 1479 | uiMcxx . . $ modifyDialog#uiM..lineEdit_remoteUsercxx . . $ Ui_modifyDialog#lineEdit_remoteUser. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6). (pTask -> GetRemoteUsercxx . . $ operation#GetRemoteUser(6ef7b6c27b00b43d).() ); |
| 1480 | uiMcxx . . $ modifyDialog#uiM..lineEdit_rsyncPasswordcxx . . $ Ui_modifyDialog#lineEdit_rsyncPassword. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6). (pTask -> GetRemotePasswordcxx . . $ operation#GetRemotePassword(6ef7b6c27b00b43d).() ); |
| 1481 | uiMcxx . . $ modifyDialog#uiM..checkBox_sshcxx . . $ Ui_modifyDialog#checkBox_ssh. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetRemoteSSHcxx . . $ operation#GetRemoteSSH(50ce9a9e25b4a850).() ); |
| 1482 | uiMcxx . . $ modifyDialog#uiM..lineEdit_sshPasswordcxx . . $ Ui_modifyDialog#lineEdit_sshPassword. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6). (pTask -> GetRemoteSSHPasswordcxx . . $ operation#GetRemoteSSHPassword(6ef7b6c27b00b43d).() ); |
| 1483 | uiMcxx . . $ modifyDialog#uiM..lineEdit_sshPasswordStrcxx . . $ Ui_modifyDialog#lineEdit_sshPasswordStr. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6). (pTask -> GetRemoteSSHPasswordStrcxx . . $ operation#GetRemoteSSHPasswordStr(6ef7b6c27b00b43d).() ); |
| 1484 | uiMcxx . . $ modifyDialog#uiM..lineEdit_sshOptionscxx . . $ Ui_modifyDialog#lineEdit_sshOptions. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6). (pTask -> GetRemoteSSHOptionscxx . . $ operation#GetRemoteSSHOptions(6ef7b6c27b00b43d).() ); |
| 1485 | if (pTask -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).() == 0) |
| 1486 | uiMcxx . . $ modifyDialog#uiM..lineEdit_sshPortcxx . . $ Ui_modifyDialog#lineEdit_sshPort. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6). (""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1487 | else |
| 1488 | uiMcxx . . $ modifyDialog#uiM..lineEdit_sshPortcxx . . $ Ui_modifyDialog#lineEdit_sshPort. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6). (countStrcxx . . $ Global/countStr..setNumcxx . . $ QString#setNum(6483560ce2afa901).(pTask -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).()) ); |
| 1489 | |
| 1490 | uiMcxx . . $ modifyDialog#uiM..checkBox_updatecxx . . $ Ui_modifyDialog#checkBox_update. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetOptionsUpdatecxx . . $ operation#GetOptionsUpdate(50ce9a9e25b4a850).() ); |
| 1491 | uiMcxx . . $ modifyDialog#uiM..checkBox_deleteAftercxx . . $ Ui_modifyDialog#checkBox_deleteAfter. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetOptionsDeletecxx . . $ operation#GetOptionsDelete(50ce9a9e25b4a850).() ); |
| 1492 | uiMcxx . . $ modifyDialog#uiM..checkBox_recursecxx . . $ Ui_modifyDialog#checkBox_recurse. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetOptionsRecursecxx . . $ operation#GetOptionsRecurse(50ce9a9e25b4a850).() ); |
| 1493 | uiMcxx . . $ modifyDialog#uiM..checkBox_ownershipcxx . . $ Ui_modifyDialog#checkBox_ownership. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetOptionsOwnershipcxx . . $ operation#GetOptionsOwnership(50ce9a9e25b4a850).() ); |
| 1494 | uiMcxx . . $ modifyDialog#uiM..checkBox_symlinkscxx . . $ Ui_modifyDialog#checkBox_symlinks. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetOptionsSymlinkscxx . . $ operation#GetOptionsSymlinks(50ce9a9e25b4a850).() ); |
| 1495 | uiMcxx . . $ modifyDialog#uiM..checkBox_permissionscxx . . $ Ui_modifyDialog#checkBox_permissions. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetOptionsPermissionscxx . . $ operation#GetOptionsPermissions(50ce9a9e25b4a850).() ); |
| 1496 | uiMcxx . . $ modifyDialog#uiM..checkBox_devicescxx . . $ Ui_modifyDialog#checkBox_devices. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetOptionsDevicescxx . . $ operation#GetOptionsDevices(50ce9a9e25b4a850).() ); |
| 1497 | uiMcxx . . $ modifyDialog#uiM..checkBox_cvscxx . . $ Ui_modifyDialog#checkBox_cvs. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetOptionsCVScxx . . $ operation#GetOptionsCVS(50ce9a9e25b4a850).() ); |
| 1498 | uiMcxx . . $ modifyDialog#uiM..checkBox_hardLinkscxx . . $ Ui_modifyDialog#checkBox_hardLinks. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetOptionsHardLinkscxx . . $ operation#GetOptionsHardLinks(50ce9a9e25b4a850).() ); |
| 1499 | uiMcxx . . $ modifyDialog#uiM..checkBox_FATntfscxx . . $ Ui_modifyDialog#checkBox_FATntfs. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetOptionsFATntfscxx . . $ operation#GetOptionsFATntfs(50ce9a9e25b4a850).() ); |
| 1500 | uiMcxx . . $ modifyDialog#uiM..checkBox_supercxx . . $ Ui_modifyDialog#checkBox_super. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetOptionsSupercxx . . $ operation#GetOptionsSuper(50ce9a9e25b4a850).() ); |
| 1501 | uiMcxx . . $ modifyDialog#uiM..checkBox_numericIDscxx . . $ Ui_modifyDialog#checkBox_numericIDs. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetOptionsNumericIDscxx . . $ operation#GetOptionsNumericIDs(50ce9a9e25b4a850).() ); |
| 1502 | |
| 1503 | uiMcxx . . $ modifyDialog#uiM..checkBox_vsscxx . . $ Ui_modifyDialog#checkBox_vss. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetOptionsVsscxx . . $ operation#GetOptionsVss(50ce9a9e25b4a850).() ); |
| 1504 | uiMcxx . . $ modifyDialog#uiM..checkBox_restorentcxx . . $ Ui_modifyDialog#checkBox_restorent. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (pTask -> GetOptionsRestorentcxx . . $ operation#GetOptionsRestorent(50ce9a9e25b4a850).() ); |
| 1505 | |
| 1506 | countcxx . . $ modifyDialog#count.=0; |
| 1507 | while ( countcxx . . $ modifyDialog#count. < (pTask -> GetOptionsListSizecxx . . $ operation#GetOptionsListSize(455f465bc33b4cdf).()) ) |
| 1508 | { |
| 1509 | uiMcxx . . $ modifyDialog#uiM..listWidget_optionscxx . . $ Ui_modifyDialog#listWidget_options. -> addItemcxx . . $ QListWidget#addItem(3520e46b33348bf6). (pTask -> GetOptionsListItemcxx . . $ operation#GetOptionsListItem(3f3c3d0e9c0eb37f).(countcxx . . $ modifyDialog#count.)); |
| 1510 | countcxx . . $ modifyDialog#count.++; |
| 1511 | } |
| 1512 | countcxx . . $ modifyDialog#count.=0; |
| 1513 | while ( countcxx . . $ modifyDialog#count. < (pTask -> GetExecuteBeforeListSizecxx . . $ operation#GetExecuteBeforeListSize(455f465bc33b4cdf).()) ) |
| 1514 | { |
| 1515 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> addItemcxx . . $ QListWidget#addItem(3520e46b33348bf6). (pTask -> GetExecuteBeforeListItemcxx . . $ operation#GetExecuteBeforeListItem(3f3c3d0e9c0eb37f).(countcxx . . $ modifyDialog#count.)); |
| 1516 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3).(uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> countcxx . . $ QListWidget#count(455f465bc33b4cdf).()-1); |
| 1517 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).() -> setToolTipcxx . . $ QListWidgetItem#setToolTip(3520e46b33348bf6). (alsoExecuteTooltipcxx . . $ modifyDialog#alsoExecuteTooltip.); |
| 1518 | if (pTask -> GetExecuteBeforeListItemStatecxx . . $ operation#GetExecuteBeforeListItemState(4a668f6de69bf818).(countcxx . . $ modifyDialog#count.) == true) |
| 1519 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).() -> setCheckStatecxx . . $ QListWidgetItem#setCheckState(537692883700039).(Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked.); |
| 1520 | else |
| 1521 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeBeforecxx . . $ Ui_modifyDialog#listWidget_executeBefore. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).() -> setCheckStatecxx . . $ QListWidgetItem#setCheckState(537692883700039).(Qtcxx . . $ Qt/::Uncheckedcxx . . $ Qt/Unchecked.); |
| 1522 | countcxx . . $ modifyDialog#count.++; |
| 1523 | } |
| 1524 | countcxx . . $ modifyDialog#count.=0; |
| 1525 | while ( countcxx . . $ modifyDialog#count. < (pTask -> GetExecuteAfterListSizecxx . . $ operation#GetExecuteAfterListSize(455f465bc33b4cdf).()) ) |
| 1526 | { |
| 1527 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> addItemcxx . . $ QListWidget#addItem(3520e46b33348bf6). (pTask -> GetExecuteAfterListItemcxx . . $ operation#GetExecuteAfterListItem(3f3c3d0e9c0eb37f).(countcxx . . $ modifyDialog#count.)); |
| 1528 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> setCurrentRowcxx . . $ QListWidget#setCurrentRow(d4f767463ce0a6b3).(uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> countcxx . . $ QListWidget#count(455f465bc33b4cdf).()-1); |
| 1529 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).() -> setToolTipcxx . . $ QListWidgetItem#setToolTip(3520e46b33348bf6). (alsoExecuteTooltipcxx . . $ modifyDialog#alsoExecuteTooltip.); |
| 1530 | if (pTask -> GetExecuteAfterListItemStatecxx . . $ operation#GetExecuteAfterListItemState(4a668f6de69bf818).(countcxx . . $ modifyDialog#count.) == true) |
| 1531 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).() -> setCheckStatecxx . . $ QListWidgetItem#setCheckState(537692883700039).(Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked.); |
| 1532 | else |
| 1533 | uiMcxx . . $ modifyDialog#uiM..listWidget_executeAftercxx . . $ Ui_modifyDialog#listWidget_executeAfter. -> currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).() -> setCheckStatecxx . . $ QListWidgetItem#setCheckState(537692883700039).(Qtcxx . . $ Qt/::Uncheckedcxx . . $ Qt/Unchecked.); |
| 1534 | countcxx . . $ modifyDialog#count.++; |
| 1535 | } |
| 1536 | uiMcxx . . $ modifyDialog#uiM..checkBox_byPassWarningcxx . . $ Ui_modifyDialog#checkBox_byPassWarning. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). ( pTask -> GetByPassWARNINGcxx . . $ operation#GetByPassWARNING(50ce9a9e25b4a850).() ); |
| 1537 | uiMcxx . . $ modifyDialog#uiM..spinBox_repeatOnFailcxx . . $ Ui_modifyDialog#spinBox_repeatOnFail. -> setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3). ( pTask -> GetRepeatOnFailcxx . . $ operation#GetRepeatOnFail(455f465bc33b4cdf).() ); |
| 1538 | } |
| 1539 | |
| 1540 | // modifyTrailing =========================================================================================================== |
| 1541 | // adds or removes a trailing "/" at the source & destination directory |
| 1542 | void modifyDialogcxx . . $ modifyDialog#::modifyTrailingcxx . . $ modifyDialog#modifyTrailing(49f6e7a06ebc5aa8).() |
| 1543 | { |
| 1544 | // SLASH is "/" for *nix and windows and "\\" for OS2 |
| 1545 | |
| 1546 | QStringcxx . . $ QString# sourceDir = uiMcxx . . $ modifyDialog#uiM..lineEdit_sourcecxx . . $ Ui_modifyDialog#lineEdit_source. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); |
| 1547 | QStringcxx . . $ QString# destDir = uiMcxx . . $ modifyDialog#uiM..lineEdit_destinationcxx . . $ Ui_modifyDialog#lineEdit_destination. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); |
| 1548 | |
| 1549 | // Check if a drive letter is declared at OS/2 or win (eg c:) and add a trailing slash |
| 1550 | if (notXnixRunningcxx . . $ Global/notXnixRunning.) |
| 1551 | { |
| 1552 | if (sourceDir.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(":"cxx . . $ QString#QString(85c52e162fed56f9).)) sourceDir.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(SLASHcxx . . $ Global/SLASH.); |
| 1553 | if (destDir.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(":"cxx . . $ QString#QString(85c52e162fed56f9).)) destDir.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(SLASHcxx . . $ Global/SLASH.); |
| 1554 | } |
| 1555 | |
| 1556 | //Directory by contents - trailing slash at source & dest paths |
| 1557 | if ((uiMcxx . . $ modifyDialog#uiM..comboBox_Typecxx . . $ Ui_modifyDialog#comboBox_Type. -> currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).()==0) && (uiMcxx . . $ modifyDialog#uiM..checkBox_backupContentscxx . . $ Ui_modifyDialog#checkBox_backupContents. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).())) |
| 1558 | { |
| 1559 | if ( (!sourceDir.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(XnixSLASHcxx . . $ Global/XnixSLASH.)) && (!sourceDir.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) && (sourceDir !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "")) |
| 1560 | { |
| 1561 | if (uiMcxx . . $ modifyDialog#uiM..groupBox_remotecxx . . $ Ui_modifyDialog#groupBox_remote. -> isCheckedcxx . . $ QGroupBox#isChecked(50ce9a9e25b4a850).() && uiMcxx . . $ modifyDialog#uiM..radioButton_remoteSourcecxx . . $ Ui_modifyDialog#radioButton_remoteSource. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 1562 | sourceDir.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(XnixSLASHcxx . . $ Global/XnixSLASH.); |
| 1563 | else |
| 1564 | sourceDir.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(SLASHcxx . . $ Global/SLASH.); |
| 1565 | } |
| 1566 | if ( (!destDir.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(XnixSLASHcxx . . $ Global/XnixSLASH.)) &&(!destDir.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) && (destDir !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "")) |
| 1567 | { |
| 1568 | if (uiMcxx . . $ modifyDialog#uiM..groupBox_remotecxx . . $ Ui_modifyDialog#groupBox_remote. -> isCheckedcxx . . $ QGroupBox#isChecked(50ce9a9e25b4a850).() && uiMcxx . . $ modifyDialog#uiM..radioButton_remoteDestinationcxx . . $ Ui_modifyDialog#radioButton_remoteDestination. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 1569 | destDir.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(XnixSLASHcxx . . $ Global/XnixSLASH.); |
| 1570 | else |
| 1571 | destDir.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(SLASHcxx . . $ Global/SLASH.); |
| 1572 | } |
| 1573 | } |
| 1574 | |
| 1575 | //Directory by name - trailing slash only at dest path not source |
| 1576 | if ((uiMcxx . . $ modifyDialog#uiM..comboBox_Typecxx . . $ Ui_modifyDialog#comboBox_Type. -> currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).()==0) && (!uiMcxx . . $ modifyDialog#uiM..checkBox_backupContentscxx . . $ Ui_modifyDialog#checkBox_backupContents. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).())) |
| 1577 | { |
| 1578 | if (notXnixRunningcxx . . $ Global/notXnixRunning.) //OS2 & win |
| 1579 | { |
| 1580 | if ( (sourceDir.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) && (!sourceDir.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(":"+cxx . . $ operator+(c75c3ae4eb9af1a8).SLASHcxx . . $ Global/SLASH.)) ) sourceDir.chopcxx . . $ QString#chop(d4f767463ce0a6b3).(1); |
| 1581 | if ( (!destDir.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(XnixSLASHcxx . . $ Global/XnixSLASH.)) && (!destDir.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) && (destDir !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") ) |
| 1582 | { |
| 1583 | if (uiMcxx . . $ modifyDialog#uiM..groupBox_remotecxx . . $ Ui_modifyDialog#groupBox_remote. -> isCheckedcxx . . $ QGroupBox#isChecked(50ce9a9e25b4a850).() && uiMcxx . . $ modifyDialog#uiM..radioButton_remoteDestinationcxx . . $ Ui_modifyDialog#radioButton_remoteDestination. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 1584 | destDir.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(XnixSLASHcxx . . $ Global/XnixSLASH.); |
| 1585 | else |
| 1586 | destDir.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(SLASHcxx . . $ Global/SLASH.); |
| 1587 | } |
| 1588 | } |
| 1589 | else //linux-unix |
| 1590 | { |
| 1591 | if ( (sourceDir.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) && (sourceDir !=cxx . . $ `operator!=`(5bc2975d2d751687). SLASHcxx . . $ Global/SLASH.) ) sourceDir.chopcxx . . $ QString#chop(d4f767463ce0a6b3).(1); |
| 1592 | if ( (!destDir.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) && (destDir !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") ) destDir.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(SLASHcxx . . $ Global/SLASH.); |
| 1593 | } |
| 1594 | } |
| 1595 | |
| 1596 | if (uiMcxx . . $ modifyDialog#uiM..comboBox_Typecxx . . $ Ui_modifyDialog#comboBox_Type. -> currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).()==1) //sync Directories - both paths have to have a trailing slash |
| 1597 | { |
| 1598 | if ((!sourceDir.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(XnixSLASHcxx . . $ Global/XnixSLASH.)) && (!sourceDir.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) && (sourceDir !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "")) |
| 1599 | { |
| 1600 | if (uiMcxx . . $ modifyDialog#uiM..groupBox_remotecxx . . $ Ui_modifyDialog#groupBox_remote. -> isCheckedcxx . . $ QGroupBox#isChecked(50ce9a9e25b4a850).() && uiMcxx . . $ modifyDialog#uiM..radioButton_remoteSourcecxx . . $ Ui_modifyDialog#radioButton_remoteSource. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 1601 | sourceDir.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(XnixSLASHcxx . . $ Global/XnixSLASH.); |
| 1602 | else |
| 1603 | sourceDir.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(SLASHcxx . . $ Global/SLASH.); |
| 1604 | } |
| 1605 | if ( (!destDir.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(XnixSLASHcxx . . $ Global/XnixSLASH.)) &&(!destDir.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) && (destDir !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "")) |
| 1606 | { |
| 1607 | if (uiMcxx . . $ modifyDialog#uiM..groupBox_remotecxx . . $ Ui_modifyDialog#groupBox_remote. -> isCheckedcxx . . $ QGroupBox#isChecked(50ce9a9e25b4a850).() && uiMcxx . . $ modifyDialog#uiM..radioButton_remoteDestinationcxx . . $ Ui_modifyDialog#radioButton_remoteDestination. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 1608 | destDir.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(XnixSLASHcxx . . $ Global/XnixSLASH.); |
| 1609 | else |
| 1610 | destDir.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(SLASHcxx . . $ Global/SLASH.); |
| 1611 | } |
| 1612 | |
| 1613 | uiMcxx . . $ modifyDialog#uiM..checkBox_deleteAftercxx . . $ Ui_modifyDialog#checkBox_deleteAfter. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (false); |
| 1614 | uiMcxx . . $ modifyDialog#uiM..checkBox_updatecxx . . $ Ui_modifyDialog#checkBox_update. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (true); |
| 1615 | uiMcxx . . $ modifyDialog#uiM..checkBox_ownershipcxx . . $ Ui_modifyDialog#checkBox_ownership. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (true); |
| 1616 | uiMcxx . . $ modifyDialog#uiM..checkBox_permissionscxx . . $ Ui_modifyDialog#checkBox_permissions. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (true); |
| 1617 | } |
| 1618 | |
| 1619 | /*if (WINrunning) // some more adjustments for windows when the user wants to declare directly paths with "/" instead of "\" (normally for remote) |
| 1620 | { |
| 1621 | if (sourceDir.contains("/")) sourceDir.replace(SLASH,"/"); |
| 1622 | if (sourceDir.endsWith("//")) sourceDir.chop(1); |
| 1623 | if (destDir.contains("/")) destDir.replace(SLASH,"/"); |
| 1624 | if (destDir.endsWith("//")) destDir.chop(1); |
| 1625 | }*/ |
| 1626 | |
| 1627 | uiMcxx . . $ modifyDialog#uiM..lineEdit_sourcecxx . . $ Ui_modifyDialog#lineEdit_source. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(sourceDir); |
| 1628 | uiMcxx . . $ modifyDialog#uiM..lineEdit_destinationcxx . . $ Ui_modifyDialog#lineEdit_destination. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(destDir); |
| 1629 | } |
| 1630 | |
| 1631 | // modifyOS2Slashes =========================================================================================================== |
| 1632 | // function to change / to \ for OS2 (normaly when file dialog is used) |
| 1633 | QStringcxx . . $ QString# modifyDialogcxx . . $ modifyDialog#::modifyOS2Slashescxx . . $ modifyDialog#modifyOS2Slashes(f7f320d754b8fd09).(QStringcxx . . $ QString# pathToModify) |
| 1634 | { |
| 1635 | if ( (notXnixRunningcxx . . $ Global/notXnixRunning.) && !pathToModify.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("/"cxx . . $ QString#QString(85c52e162fed56f9).) ) |
| 1636 | pathToModify.replacecxx . . $ QString#replace(192e628656427d1c).("/"cxx . . $ QString#QString(85c52e162fed56f9).,SLASHcxx . . $ Global/SLASH.); |
| 1637 | |
| 1638 | return pathToModifycxx . . $ QString#QString(28715ad661ad3cec).; |
| 1639 | } |
| 1640 | |
| 1641 | |
| 1642 | // stripInvalidCharacters ============================================================================================================================= |
| 1643 | // Replaces all invalid filename characters from a QString with "-" |
| 1644 | QStringcxx . . $ QString# modifyDialogcxx . . $ modifyDialog#::stripInvalidCharacterscxx . . $ modifyDialog#stripInvalidCharacters(f7f320d754b8fd09).(QStringcxx . . $ QString# stringToStrip) |
| 1645 | { |
| 1646 | QStringcxx . . $ QString# stripedString = stringToStripcxx . . $ QString#QString(132dd6869045752b).; |
| 1647 | QStringListcxx . . $ QStringList# invalidCharscxx . . $ QStringList#QStringList(ced63f7c635d850d).; |
| 1648 | invalidChars <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "/"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "\\"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). ":"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "*"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "?"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "\""cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "<"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). ">"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "|"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 1649 | |
| 1650 | foreachcxx . . $ `<external>/15045578679651060896/qglobal.h:1145:13`! (QString charToRemove, invalidChars) |
| 1651 | stripedString.replacecxx . . $ QString#replace(192e628656427d1c).(charToRemove, ""cxx . . $ QString#QString(85c52e162fed56f9)., Qtcxx . . $ Qt/::CaseSensitivecxx . . $ Qt/CaseSensitive.); |
| 1652 | |
| 1653 | return stripedStringcxx . . $ QString#QString(28715ad661ad3cec).; |
| 1654 | } |
| 1655 | // end of modifyDialog.cpp --------------------------------------------------------------------------- |
| 1656 |