| 1 | /* ---------------------------------- patternEditor.cpp --------------------------------------------------------------------------- |
| 2 | Displays the pattern editor |
| 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 : 22 May 2016 |
| 27 | =============================================================================================================================== |
| 28 | ===============================================================================================================================*/ |
| 29 | |
| 30 | #include "patternEditor.h"cxx . . $ `<file>/src/patternEditor.h`/ |
| 31 | |
| 32 | #include <QSignalMapper> |
| 33 | #include <QCloseEvent> |
| 34 | #include <QFileDialog> |
| 35 | |
| 36 | #include "global.h"cxx . . $ `<file>/src/global.h`/ |
| 37 | #include "textDialog.h"cxx . . $ `<file>/src/textDialog.h`/ |
| 38 | |
| 39 | // class patternEditor Constructor================================================================================================= |
| 40 | // Displays the pattern editor dialog |
| 41 | patternEditorcxx . . $ patternEditor#::patternEditorcxx . . $ patternEditor#patternEditor(c2ce7417dc68f8ba). (QStringcxx . . $ QString# sourceRoot, QWidgetcxx . . $ QWidget# *parent) : QDialogcxx . . $ QDialog#QDialog(872e7b0c281abd8d). (parent) |
| 42 | { |
| 43 | uiPcxx . . $ patternEditor#uiP..setupUicxx . . $ Ui_patternEditor#setupUi(d194de0c0f68c28b).(this); |
| 44 | uiPcxx . . $ patternEditor#uiP..groupBox_namecxx . . $ Ui_patternEditor#groupBox_name. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 45 | uiPcxx . . $ patternEditor#uiP..checkBox_pathAbsolutecxx . . $ Ui_patternEditor#checkBox_pathAbsolute. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 46 | uiPcxx . . $ patternEditor#uiP..checkBox_pathAnycxx . . $ Ui_patternEditor#checkBox_pathAny. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 47 | uiPcxx . . $ patternEditor#uiP..spinBox_pathDeepercxx . . $ Ui_patternEditor#spinBox_pathDeeper. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 48 | uiPcxx . . $ patternEditor#uiP..label_pathDeepercxx . . $ Ui_patternEditor#label_pathDeeper. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 49 | uiPcxx . . $ patternEditor#uiP..toolButton_browseFilecxx . . $ Ui_patternEditor#toolButton_browseFile. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 50 | uiPcxx . . $ patternEditor#uiP..checkBox_pathAbsolutecxx . . $ Ui_patternEditor#checkBox_pathAbsolute. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 51 | uiPcxx . . $ patternEditor#uiP..label_browsecxx . . $ Ui_patternEditor#label_browse. -> setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(trcxx . . $ patternEditor#tr(75d9f1c324b4579d).("directory :")); |
| 52 | |
| 53 | anchorSourcecxx . . $ patternEditor#anchorSource.=cxx . . $ QString#`operator=`(d02845eef0c33901).""; |
| 54 | itsPatterncxx . . $ patternEditor#itsPattern. =cxx . . $ QString#`operator=`(d02845eef0c33901). "no pattern defined yet"; |
| 55 | SourceRootcxx . . $ patternEditor#SourceRoot. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). sourceRoot; |
| 56 | if (!SourceRootcxx . . $ patternEditor#SourceRoot..endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) |
| 57 | { |
| 58 | anchorSourcecxx . . $ patternEditor#anchorSource. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). sourceRoot.rightcxx . . $ QString#right(3f3c3d0e9c0eb37f).(sourceRoot.sizecxx . . $ QString#size(455f465bc33b4cdf).()-sourceRoot.lastIndexOfcxx . . $ QString#lastIndexOf(a1e52806cd31c200).(SLASHcxx . . $ Global/SLASH.)); |
| 59 | SourceRootcxx . . $ patternEditor#SourceRoot..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(SLASHcxx . . $ Global/SLASH.); |
| 60 | } |
| 61 | patternLinecxx . . $ patternEditor#patternLine. =cxx . . $ QString#`operator=`(d02845eef0c33901). ""; |
| 62 | |
| 63 | //connect okay & cancel pushButton SLOTs ---------------- |
| 64 | connectcxx . . $ QObject#connect(158df1d9a01a3410). ( uiPcxx . . $ patternEditor#uiP..pushButton_okaycxx . . $ Ui_patternEditor#pushButton_okay., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( clicked() ), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!( okay() ) ); |
| 65 | connectcxx . . $ QObject#connect(158df1d9a01a3410). ( uiPcxx . . $ patternEditor#uiP..pushButton_cancelcxx . . $ Ui_patternEditor#pushButton_cancel., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( clicked() ), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!( cancel() ) ); |
| 66 | connectcxx . . $ QObject#connect(158df1d9a01a3410). ( uiPcxx . . $ patternEditor#uiP..pushButton_resetcxx . . $ Ui_patternEditor#pushButton_reset., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( clicked() ), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!( resetFileds() ) ); |
| 67 | |
| 68 | //Connect all toolButtons with the browse SLOT |
| 69 | //Map all the toolButton signals and transmit a different integer depending on the toolbutton |
| 70 | QSignalMappercxx . . $ QSignalMapper# *signalMapper = new QSignalMappercxx . . $ QSignalMapper#(this); |
| 71 | signalMapper -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiPcxx . . $ patternEditor#uiP..toolButton_browseFilecxx . . $ Ui_patternEditor#toolButton_browseFile., 0 ); |
| 72 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiPcxx . . $ patternEditor#uiP..toolButton_browseFilecxx . . $ Ui_patternEditor#toolButton_browseFile., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`! (clicked() ), signalMapper , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`! (map())); |
| 73 | signalMapper -> setMappingcxx . . $ QSignalMapper#setMapping(3f47e595a91bc133). ( uiPcxx . . $ patternEditor#uiP..toolButton_browseDircxx . . $ Ui_patternEditor#toolButton_browseDir., 1 ); |
| 74 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiPcxx . . $ patternEditor#uiP..toolButton_browseDircxx . . $ Ui_patternEditor#toolButton_browseDir., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`! (clicked() ), signalMapper , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`! (map())); |
| 75 | 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) ) ); |
| 76 | |
| 77 | // connect all actions to fill-in the pattern at the lineEdit |
| 78 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiPcxx . . $ patternEditor#uiP..radioButton_fileSpecificcxx . . $ Ui_patternEditor#radioButton_fileSpecific. , SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked(bool)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(fillPattern())); |
| 79 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiPcxx . . $ patternEditor#uiP..radioButton_directorySpecificcxx . . $ Ui_patternEditor#radioButton_directorySpecific. , SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked(bool)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(fillPattern())); |
| 80 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiPcxx . . $ patternEditor#uiP..radioButton_fileSetcxx . . $ Ui_patternEditor#radioButton_fileSet. , SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked(bool)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(fillPattern())); |
| 81 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiPcxx . . $ patternEditor#uiP..radioButton_directorySetcxx . . $ Ui_patternEditor#radioButton_directorySet. , SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked(bool)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(fillPattern())); |
| 82 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiPcxx . . $ patternEditor#uiP..lineEdit_browsecxx . . $ Ui_patternEditor#lineEdit_browse. , SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(textChanged(QString)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(fillPattern())); |
| 83 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiPcxx . . $ patternEditor#uiP..spinBox_pathDeepercxx . . $ Ui_patternEditor#spinBox_pathDeeper. , SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(valueChanged(int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(fillPattern())); |
| 84 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiPcxx . . $ patternEditor#uiP..checkBox_directoryContentscxx . . $ Ui_patternEditor#checkBox_directoryContents. , SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked(bool)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(fillPattern())); |
| 85 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiPcxx . . $ patternEditor#uiP..lineEdit_nameIsExactlycxx . . $ Ui_patternEditor#lineEdit_nameIsExactly. , SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(textChanged(QString)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(fillPattern())); |
| 86 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiPcxx . . $ patternEditor#uiP..lineEdit_nameStartsWithcxx . . $ Ui_patternEditor#lineEdit_nameStartsWith. , SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(textChanged(QString)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(fillPattern())); |
| 87 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiPcxx . . $ patternEditor#uiP..lineEdit_nameEndsWithcxx . . $ Ui_patternEditor#lineEdit_nameEndsWith. , SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(textChanged(QString)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(fillPattern())); |
| 88 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiPcxx . . $ patternEditor#uiP..lineEdit_nameContainscxx . . $ Ui_patternEditor#lineEdit_nameContains. , SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(textChanged(QString)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(fillPattern())); |
| 89 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiPcxx . . $ patternEditor#uiP..radioButton_fileSpecificcxx . . $ Ui_patternEditor#radioButton_fileSpecific. , SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(toggled(bool)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(fileRadioChanged())); |
| 90 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiPcxx . . $ patternEditor#uiP..checkBox_pathAnycxx . . $ Ui_patternEditor#checkBox_pathAny. , SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked(bool)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(fillPattern())); |
| 91 | connectcxx . . $ QObject#connect(158df1d9a01a3410). (uiPcxx . . $ patternEditor#uiP..checkBox_pathAbsolutecxx . . $ Ui_patternEditor#checkBox_pathAbsolute. , SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked(bool)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(fillPattern())); |
| 92 | } |
| 93 | // SLOTS------------------------------------------------------------------------------------- |
| 94 | // --------------------------------okay pressed------------------------------------------------ |
| 95 | void patternEditorcxx . . $ patternEditor#::okaycxx . . $ patternEditor#okay(49f6e7a06ebc5aa8).() |
| 96 | { |
| 97 | itsPatterncxx . . $ patternEditor#itsPattern. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiPcxx . . $ patternEditor#uiP..lineEdit_patternFinalcxx . . $ Ui_patternEditor#lineEdit_patternFinal. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); |
| 98 | closecxx . . $ QWidget#close(c9857a73d68e59ba).(); |
| 99 | } |
| 100 | // --------------------------------cancel pressed------------------------------------------------ |
| 101 | void patternEditorcxx . . $ patternEditor#::cancelcxx . . $ patternEditor#cancel(49f6e7a06ebc5aa8).() |
| 102 | { |
| 103 | closecxx . . $ QWidget#close(c9857a73d68e59ba).(); |
| 104 | } |
| 105 | |
| 106 | void patternEditorcxx . . $ patternEditor#::closeEventcxx . . $ patternEditor#closeEvent(642e80679aeb34f8).(QCloseEventcxx . . $ QCloseEvent# *event) |
| 107 | { |
| 108 | event->acceptcxx . . $ QEvent#accept(49f6e7a06ebc5aa8).(); |
| 109 | } |
| 110 | |
| 111 | // --------------------------------reset pressed------------------------------------------------ |
| 112 | //reset all fields to default values |
| 113 | void patternEditorcxx . . $ patternEditor#::resetFiledscxx . . $ patternEditor#resetFileds(49f6e7a06ebc5aa8).() |
| 114 | { |
| 115 | uiPcxx . . $ patternEditor#uiP..lineEdit_nameIsExactlycxx . . $ Ui_patternEditor#lineEdit_nameIsExactly. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 116 | uiPcxx . . $ patternEditor#uiP..lineEdit_nameStartsWithcxx . . $ Ui_patternEditor#lineEdit_nameStartsWith. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 117 | uiPcxx . . $ patternEditor#uiP..lineEdit_nameEndsWithcxx . . $ Ui_patternEditor#lineEdit_nameEndsWith. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 118 | uiPcxx . . $ patternEditor#uiP..lineEdit_nameContainscxx . . $ Ui_patternEditor#lineEdit_nameContains. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 119 | uiPcxx . . $ patternEditor#uiP..groupBox_namecxx . . $ Ui_patternEditor#groupBox_name. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 120 | |
| 121 | uiPcxx . . $ patternEditor#uiP..checkBox_pathAbsolutecxx . . $ Ui_patternEditor#checkBox_pathAbsolute. -> setCheckStatecxx . . $ QCheckBox#setCheckState(537692883700039).(Qtcxx . . $ Qt/::Uncheckedcxx . . $ Qt/Unchecked.); |
| 122 | uiPcxx . . $ patternEditor#uiP..checkBox_pathAbsolutecxx . . $ Ui_patternEditor#checkBox_pathAbsolute. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 123 | uiPcxx . . $ patternEditor#uiP..checkBox_pathAbsolutecxx . . $ Ui_patternEditor#checkBox_pathAbsolute. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 124 | |
| 125 | uiPcxx . . $ patternEditor#uiP..checkBox_pathAnycxx . . $ Ui_patternEditor#checkBox_pathAny. -> setCheckStatecxx . . $ QCheckBox#setCheckState(537692883700039).(Qtcxx . . $ Qt/::Uncheckedcxx . . $ Qt/Unchecked.); |
| 126 | uiPcxx . . $ patternEditor#uiP..checkBox_pathAnycxx . . $ Ui_patternEditor#checkBox_pathAny. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 127 | uiPcxx . . $ patternEditor#uiP..spinBox_pathDeepercxx . . $ Ui_patternEditor#spinBox_pathDeeper. -> setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).(0); |
| 128 | uiPcxx . . $ patternEditor#uiP..spinBox_pathDeepercxx . . $ Ui_patternEditor#spinBox_pathDeeper. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 129 | uiPcxx . . $ patternEditor#uiP..label_pathDeepercxx . . $ Ui_patternEditor#label_pathDeeper. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (false); |
| 130 | |
| 131 | uiPcxx . . $ patternEditor#uiP..toolButton_browseFilecxx . . $ Ui_patternEditor#toolButton_browseFile. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 132 | |
| 133 | uiPcxx . . $ patternEditor#uiP..checkBox_directoryContentscxx . . $ Ui_patternEditor#checkBox_directoryContents. -> setCheckStatecxx . . $ QCheckBox#setCheckState(537692883700039).(Qtcxx . . $ Qt/::Uncheckedcxx . . $ Qt/Unchecked.); |
| 134 | uiPcxx . . $ patternEditor#uiP..radioButton_directorySpecificcxx . . $ Ui_patternEditor#radioButton_directorySpecific. -> setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true); |
| 135 | |
| 136 | uiPcxx . . $ patternEditor#uiP..lineEdit_browsecxx . . $ Ui_patternEditor#lineEdit_browse. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 137 | uiPcxx . . $ patternEditor#uiP..lineEdit_browsecxx . . $ Ui_patternEditor#lineEdit_browse. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 138 | uiPcxx . . $ patternEditor#uiP..lineEdit_patternFinalcxx . . $ Ui_patternEditor#lineEdit_patternFinal. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 139 | uiPcxx . . $ patternEditor#uiP..toolButton_browseDircxx . . $ Ui_patternEditor#toolButton_browseDir. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(true); |
| 140 | uiPcxx . . $ patternEditor#uiP..label_browsecxx . . $ Ui_patternEditor#label_browse. -> setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(trcxx . . $ patternEditor#tr(75d9f1c324b4579d).("directory :")); |
| 141 | } |
| 142 | // browse button pressed===================================================================================================== |
| 143 | //opens a QFileDialog to browse for files/folders locally |
| 144 | void patternEditorcxx . . $ patternEditor#::browsecxx . . $ patternEditor#browse(d4f767463ce0a6b3).(const int type) |
| 145 | { |
| 146 | QStringcxx . . $ QString# newLineEditcxx . . $ QString#QString(ced63f7c635d850d).; |
| 147 | switch (type) |
| 148 | { |
| 149 | //file browse button |
| 150 | case 0: newLineEdit =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QFileDialogcxx . . $ QFileDialog#::getOpenFileNamecxx . . $ QFileDialog#getOpenFileName(a6b29be4bec65236). (this, trcxx . . $ patternEditor#tr(75d9f1c324b4579d).("Select file"),SourceRootcxx . . $ patternEditor#SourceRoot.); |
| 151 | |
| 152 | if (newLineEdit !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") //if something is selected indeed (not cancel pressed) |
| 153 | { |
| 154 | if (notXnixRunningcxx . . $ Global/notXnixRunning.) |
| 155 | newLineEdit.replacecxx . . $ QString#replace(192e628656427d1c).("/"cxx . . $ QString#QString(85c52e162fed56f9).,SLASHcxx . . $ Global/SLASH.); // The OS2 filedialog captures path with *nix slashes. Change it to OS2 style |
| 156 | |
| 157 | if (!newLineEdit.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).(SourceRootcxx . . $ patternEditor#SourceRoot.)) |
| 158 | { |
| 159 | textDialogcxx . . $ textDialog# textdialogWcxx . . $ textDialog#textDialog(9c8c077708043c75). ("QtWarning"cxx . . $ QString#QString(85c52e162fed56f9)., trcxx . . $ patternEditor#tr(75d9f1c324b4579d).("Please choose a file within the source")+cxx . . $ operator+(3d22f08efddf8107)." :<br><br>" +cxx . . $ operator+(fab9b4f80031f353). |
| 160 | SourceRootcxx . . $ patternEditor#SourceRoot., this); |
| 161 | textdialogW.execcxx . . $ QDialog#exec(b126dc7c1de90089).(); |
| 162 | } |
| 163 | else |
| 164 | uiPcxx . . $ patternEditor#uiP..lineEdit_browsecxx . . $ Ui_patternEditor#lineEdit_browse. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(newLineEdit); |
| 165 | } |
| 166 | break; |
| 167 | //directory browse button |
| 168 | case 1: newLineEdit =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QFileDialogcxx . . $ QFileDialog#::getExistingDirectorycxx . . $ QFileDialog#getExistingDirectory(a1339ef2a1b3555a). (this, trcxx . . $ patternEditor#tr(75d9f1c324b4579d).("Select directory"),SourceRootcxx . . $ patternEditor#SourceRoot.); |
| 169 | |
| 170 | if (newLineEdit !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") //if something is selected indeed (not cancel pressed) |
| 171 | { |
| 172 | if (notXnixRunningcxx . . $ Global/notXnixRunning.) |
| 173 | newLineEdit.replacecxx . . $ QString#replace(192e628656427d1c).("/"cxx . . $ QString#QString(85c52e162fed56f9).,SLASHcxx . . $ Global/SLASH.); // The OS2 filedialog captures path with *nix slashes. Change it to OS2 style |
| 174 | |
| 175 | if (!newLineEdit.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) |
| 176 | newLineEdit.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(SLASHcxx . . $ Global/SLASH.); |
| 177 | |
| 178 | if (newLineEdit ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "//") // root selected - *nix |
| 179 | newLineEdit =cxx . . $ QString#`operator=`(d02845eef0c33901). "/"; |
| 180 | |
| 181 | if (!newLineEdit.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).(SourceRootcxx . . $ patternEditor#SourceRoot.)) |
| 182 | { |
| 183 | textDialogcxx . . $ textDialog# textdialogWcxx . . $ textDialog#textDialog(9c8c077708043c75). ("QtWarning"cxx . . $ QString#QString(85c52e162fed56f9)., trcxx . . $ patternEditor#tr(75d9f1c324b4579d).("Please choose a directory within the source")+cxx . . $ operator+(3d22f08efddf8107)." :<br><br>" +cxx . . $ operator+(fab9b4f80031f353). |
| 184 | SourceRootcxx . . $ patternEditor#SourceRoot., this); |
| 185 | textdialogW.execcxx . . $ QDialog#exec(b126dc7c1de90089).(); |
| 186 | } |
| 187 | else |
| 188 | uiPcxx . . $ patternEditor#uiP..lineEdit_browsecxx . . $ Ui_patternEditor#lineEdit_browse. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(newLineEdit); |
| 189 | } |
| 190 | break; |
| 191 | } |
| 192 | |
| 193 | } |
| 194 | //fillPattern ==================================================================================================================== |
| 195 | //SLOT to fill-in the pattern from the info in the dialog |
| 196 | void patternEditorcxx . . $ patternEditor#::fillPatterncxx . . $ patternEditor#fillPattern(49f6e7a06ebc5aa8).() |
| 197 | { |
| 198 | patternLinecxx . . $ patternEditor#patternLine. =cxx . . $ QString#`operator=`(d02845eef0c33901). ""; |
| 199 | |
| 200 | // Use absolute path ---------------------------------------------------------------------------------------------------------- |
| 201 | if (uiPcxx . . $ patternEditor#uiP..checkBox_pathAbsolutecxx . . $ Ui_patternEditor#checkBox_pathAbsolute. -> isEnabledcxx . . $ QWidget#isEnabled(50ce9a9e25b4a850).()) |
| 202 | { |
| 203 | bool pathAbsoluteState = uiPcxx . . $ patternEditor#uiP..checkBox_pathAbsolutecxx . . $ Ui_patternEditor#checkBox_pathAbsolute. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).(); |
| 204 | uiPcxx . . $ patternEditor#uiP..lineEdit_browsecxx . . $ Ui_patternEditor#lineEdit_browse. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(pathAbsoluteState); |
| 205 | uiPcxx . . $ patternEditor#uiP..toolButton_browseFilecxx . . $ Ui_patternEditor#toolButton_browseFile. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(pathAbsoluteState); |
| 206 | uiPcxx . . $ patternEditor#uiP..toolButton_browseDircxx . . $ Ui_patternEditor#toolButton_browseDir. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(pathAbsoluteState); |
| 207 | uiPcxx . . $ patternEditor#uiP..label_pathDeepercxx . . $ Ui_patternEditor#label_pathDeeper. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(pathAbsoluteState); |
| 208 | uiPcxx . . $ patternEditor#uiP..spinBox_pathDeepercxx . . $ Ui_patternEditor#spinBox_pathDeeper. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(pathAbsoluteState); |
| 209 | uiPcxx . . $ patternEditor#uiP..checkBox_pathAnycxx . . $ Ui_patternEditor#checkBox_pathAny. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(pathAbsoluteState); |
| 210 | } |
| 211 | else |
| 212 | { |
| 213 | uiPcxx . . $ patternEditor#uiP..lineEdit_browsecxx . . $ Ui_patternEditor#lineEdit_browse. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 214 | uiPcxx . . $ patternEditor#uiP..toolButton_browseFilecxx . . $ Ui_patternEditor#toolButton_browseFile. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 215 | uiPcxx . . $ patternEditor#uiP..toolButton_browseDircxx . . $ Ui_patternEditor#toolButton_browseDir. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 216 | uiPcxx . . $ patternEditor#uiP..label_pathDeepercxx . . $ Ui_patternEditor#label_pathDeeper. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 217 | uiPcxx . . $ patternEditor#uiP..spinBox_pathDeepercxx . . $ Ui_patternEditor#spinBox_pathDeeper. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 218 | uiPcxx . . $ patternEditor#uiP..checkBox_pathAnycxx . . $ Ui_patternEditor#checkBox_pathAny. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 219 | } |
| 220 | |
| 221 | if ( (uiPcxx . . $ patternEditor#uiP..radioButton_fileSpecificcxx . . $ Ui_patternEditor#radioButton_fileSpecific. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) || (uiPcxx . . $ patternEditor#uiP..radioButton_directorySpecificcxx . . $ Ui_patternEditor#radioButton_directorySpecific. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) ) |
| 222 | { |
| 223 | uiPcxx . . $ patternEditor#uiP..lineEdit_browsecxx . . $ Ui_patternEditor#lineEdit_browse. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(true); |
| 224 | uiPcxx . . $ patternEditor#uiP..toolButton_browseFilecxx . . $ Ui_patternEditor#toolButton_browseFile. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(true); |
| 225 | uiPcxx . . $ patternEditor#uiP..toolButton_browseDircxx . . $ Ui_patternEditor#toolButton_browseDir. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(true); |
| 226 | } |
| 227 | |
| 228 | // Read the path lineEdit |
| 229 | if (uiPcxx . . $ patternEditor#uiP..lineEdit_browsecxx . . $ Ui_patternEditor#lineEdit_browse. -> isEnabledcxx . . $ QWidget#isEnabled(50ce9a9e25b4a850).()) |
| 230 | { |
| 231 | patternLinecxx . . $ patternEditor#patternLine. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uiPcxx . . $ patternEditor#uiP..lineEdit_browsecxx . . $ Ui_patternEditor#lineEdit_browse. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); //first get the string from the path lineEdit |
| 232 | if (patternLinecxx . . $ patternEditor#patternLine..startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).(SourceRootcxx . . $ patternEditor#SourceRoot.)) |
| 233 | patternLinecxx . . $ patternEditor#patternLine..replacecxx . . $ QString#replace(192e628656427d1c). (SourceRootcxx . . $ patternEditor#SourceRoot., anchorSourcecxx . . $ patternEditor#anchorSource. +cxx . . $ operator+(fab9b4f80031f353). SLASHcxx . . $ Global/SLASH.); // replace the starting source in the pattern with / |
| 234 | } |
| 235 | |
| 236 | //go deeper in path ------------------- ------------------------------------------------------------------------------- |
| 237 | if ( (uiPcxx . . $ patternEditor#uiP..checkBox_pathAnycxx . . $ Ui_patternEditor#checkBox_pathAny.->isEnabledcxx . . $ QWidget#isEnabled(50ce9a9e25b4a850).()) && (uiPcxx . . $ patternEditor#uiP..checkBox_pathAnycxx . . $ Ui_patternEditor#checkBox_pathAny.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) ) |
| 238 | patternLinecxx . . $ patternEditor#patternLine..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("**"+cxx . . $ operator+(c75c3ae4eb9af1a8).SLASHcxx . . $ Global/SLASH.); |
| 239 | else |
| 240 | { |
| 241 | countcxx . . $ patternEditor#count.=0; |
| 242 | while ( (countcxx . . $ patternEditor#count. < uiPcxx . . $ patternEditor#uiP..spinBox_pathDeepercxx . . $ Ui_patternEditor#spinBox_pathDeeper.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).()) && (uiPcxx . . $ patternEditor#uiP..spinBox_pathDeepercxx . . $ Ui_patternEditor#spinBox_pathDeeper.->isEnabledcxx . . $ QWidget#isEnabled(50ce9a9e25b4a850).())) |
| 243 | { |
| 244 | patternLinecxx . . $ patternEditor#patternLine..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("*"+cxx . . $ operator+(c75c3ae4eb9af1a8).SLASHcxx . . $ Global/SLASH.); |
| 245 | countcxx . . $ patternEditor#count.++; |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | // groupbox NAME actions ------------------------------------------------------------------------------------------------ |
| 250 | if (uiPcxx . . $ patternEditor#uiP..lineEdit_nameIsExactlycxx . . $ Ui_patternEditor#lineEdit_nameIsExactly.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()==cxx . . $ QString#`operator==`(7d4bdb1abc417636)."") |
| 251 | { |
| 252 | uiPcxx . . $ patternEditor#uiP..lineEdit_nameStartsWithcxx . . $ Ui_patternEditor#lineEdit_nameStartsWith. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(true); |
| 253 | uiPcxx . . $ patternEditor#uiP..lineEdit_nameEndsWithcxx . . $ Ui_patternEditor#lineEdit_nameEndsWith. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(true); |
| 254 | uiPcxx . . $ patternEditor#uiP..lineEdit_nameContainscxx . . $ Ui_patternEditor#lineEdit_nameContains. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(true); |
| 255 | } |
| 256 | else |
| 257 | { |
| 258 | uiPcxx . . $ patternEditor#uiP..lineEdit_nameStartsWithcxx . . $ Ui_patternEditor#lineEdit_nameStartsWith. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 259 | uiPcxx . . $ patternEditor#uiP..lineEdit_nameEndsWithcxx . . $ Ui_patternEditor#lineEdit_nameEndsWith. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 260 | uiPcxx . . $ patternEditor#uiP..lineEdit_nameContainscxx . . $ Ui_patternEditor#lineEdit_nameContains. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 261 | } |
| 262 | |
| 263 | if (uiPcxx . . $ patternEditor#uiP..lineEdit_nameIsExactlycxx . . $ Ui_patternEditor#lineEdit_nameIsExactly. -> isEnabledcxx . . $ QWidget#isEnabled(50ce9a9e25b4a850).()) |
| 264 | patternLinecxx . . $ patternEditor#patternLine..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(uiPcxx . . $ patternEditor#uiP..lineEdit_nameIsExactlycxx . . $ Ui_patternEditor#lineEdit_nameIsExactly.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()); |
| 265 | |
| 266 | if ( (uiPcxx . . $ patternEditor#uiP..lineEdit_nameStartsWithcxx . . $ Ui_patternEditor#lineEdit_nameStartsWith. -> isEnabledcxx . . $ QWidget#isEnabled(50ce9a9e25b4a850).()) && (!(uiPcxx . . $ patternEditor#uiP..lineEdit_nameStartsWithcxx . . $ Ui_patternEditor#lineEdit_nameStartsWith.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "")) ) |
| 267 | patternLinecxx . . $ patternEditor#patternLine..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(uiPcxx . . $ patternEditor#uiP..lineEdit_nameStartsWithcxx . . $ Ui_patternEditor#lineEdit_nameStartsWith. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). "*"); |
| 268 | |
| 269 | if ( (uiPcxx . . $ patternEditor#uiP..lineEdit_nameContainscxx . . $ Ui_patternEditor#lineEdit_nameContains. -> isEnabledcxx . . $ QWidget#isEnabled(50ce9a9e25b4a850).()) && (!(uiPcxx . . $ patternEditor#uiP..lineEdit_nameContainscxx . . $ Ui_patternEditor#lineEdit_nameContains. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()==cxx . . $ QString#`operator==`(7d4bdb1abc417636)."")) ) |
| 270 | { |
| 271 | if (uiPcxx . . $ patternEditor#uiP..lineEdit_nameStartsWithcxx . . $ Ui_patternEditor#lineEdit_nameStartsWith. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()==cxx . . $ QString#`operator==`(7d4bdb1abc417636)."") |
| 272 | patternLinecxx . . $ patternEditor#patternLine..appendcxx . . $ QString#append(d02845eef0c33901).("*"); |
| 273 | patternLinecxx . . $ patternEditor#patternLine..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(uiPcxx . . $ patternEditor#uiP..lineEdit_nameContainscxx . . $ Ui_patternEditor#lineEdit_nameContains. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). "*"); |
| 274 | } |
| 275 | |
| 276 | if ( (uiPcxx . . $ patternEditor#uiP..lineEdit_nameEndsWithcxx . . $ Ui_patternEditor#lineEdit_nameEndsWith.->isEnabledcxx . . $ QWidget#isEnabled(50ce9a9e25b4a850).()) && (!(uiPcxx . . $ patternEditor#uiP..lineEdit_nameEndsWithcxx . . $ Ui_patternEditor#lineEdit_nameEndsWith. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()==cxx . . $ QString#`operator==`(7d4bdb1abc417636)."")) ) |
| 277 | { |
| 278 | if ( (uiPcxx . . $ patternEditor#uiP..lineEdit_nameContainscxx . . $ Ui_patternEditor#lineEdit_nameContains. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()==cxx . . $ QString#`operator==`(7d4bdb1abc417636)."") && (uiPcxx . . $ patternEditor#uiP..lineEdit_nameStartsWithcxx . . $ Ui_patternEditor#lineEdit_nameStartsWith. -> textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()==cxx . . $ QString#`operator==`(7d4bdb1abc417636)."") ) |
| 279 | patternLinecxx . . $ patternEditor#patternLine..appendcxx . . $ QString#append(d02845eef0c33901).("*"); |
| 280 | patternLinecxx . . $ patternEditor#patternLine..appendcxx . . $ QString#append(6a89d0b7f4d2681c).( uiPcxx . . $ patternEditor#uiP..lineEdit_nameEndsWithcxx . . $ Ui_patternEditor#lineEdit_nameEndsWith.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()); |
| 281 | } |
| 282 | |
| 283 | // RADIO BUTTONS actions ---------------------------------------------------------------------------------------------------- |
| 284 | if (uiPcxx . . $ patternEditor#uiP..radioButton_fileSpecificcxx . . $ Ui_patternEditor#radioButton_fileSpecific. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) // if file specific radio button is selected |
| 285 | { |
| 286 | uiPcxx . . $ patternEditor#uiP..label_browsecxx . . $ Ui_patternEditor#label_browse. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(true); |
| 287 | |
| 288 | uiPcxx . . $ patternEditor#uiP..label_browsecxx . . $ Ui_patternEditor#label_browse. -> setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(trcxx . . $ patternEditor#tr(75d9f1c324b4579d).("file :")); |
| 289 | if (patternLinecxx . . $ patternEditor#patternLine..endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) |
| 290 | patternLinecxx . . $ patternEditor#patternLine..chopcxx . . $ QString#chop(d4f767463ce0a6b3).(1); |
| 291 | } |
| 292 | if (uiPcxx . . $ patternEditor#uiP..radioButton_directorySpecificcxx . . $ Ui_patternEditor#radioButton_directorySpecific. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) // if directory specific radio button is selected |
| 293 | { |
| 294 | uiPcxx . . $ patternEditor#uiP..label_browsecxx . . $ Ui_patternEditor#label_browse. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(true); |
| 295 | uiPcxx . . $ patternEditor#uiP..label_browsecxx . . $ Ui_patternEditor#label_browse. -> setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(trcxx . . $ patternEditor#tr(75d9f1c324b4579d).("directory :")); |
| 296 | if ((!(patternLinecxx . . $ patternEditor#patternLine..endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.))) && (!(patternLinecxx . . $ patternEditor#patternLine. ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "")) ) |
| 297 | patternLinecxx . . $ patternEditor#patternLine..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(SLASHcxx . . $ Global/SLASH.); |
| 298 | } |
| 299 | if (uiPcxx . . $ patternEditor#uiP..radioButton_fileSetcxx . . $ Ui_patternEditor#radioButton_fileSet. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) // if file set radio button is selected |
| 300 | { |
| 301 | uiPcxx . . $ patternEditor#uiP..checkBox_pathAbsolutecxx . . $ Ui_patternEditor#checkBox_pathAbsolute. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 302 | uiPcxx . . $ patternEditor#uiP..label_browsecxx . . $ Ui_patternEditor#label_browse. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 303 | if (patternLinecxx . . $ patternEditor#patternLine..endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) |
| 304 | patternLinecxx . . $ patternEditor#patternLine..chopcxx . . $ QString#chop(d4f767463ce0a6b3).(1); |
| 305 | } |
| 306 | if (uiPcxx . . $ patternEditor#uiP..radioButton_directorySetcxx . . $ Ui_patternEditor#radioButton_directorySet. -> isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) // if directory set radio button is selected |
| 307 | { |
| 308 | uiPcxx . . $ patternEditor#uiP..checkBox_pathAbsolutecxx . . $ Ui_patternEditor#checkBox_pathAbsolute. -> setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (true); |
| 309 | uiPcxx . . $ patternEditor#uiP..label_browsecxx . . $ Ui_patternEditor#label_browse. -> setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 310 | if ( (!(patternLinecxx . . $ patternEditor#patternLine..endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.))) && (!(patternLinecxx . . $ patternEditor#patternLine. ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "")) ) |
| 311 | patternLinecxx . . $ patternEditor#patternLine..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(SLASHcxx . . $ Global/SLASH.); |
| 312 | } |
| 313 | |
| 314 | //just the contents of a directory ------------------------------------------------------------------------------- |
| 315 | if ( (uiPcxx . . $ patternEditor#uiP..checkBox_directoryContentscxx . . $ Ui_patternEditor#checkBox_directoryContents.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) && (uiPcxx . . $ patternEditor#uiP..checkBox_directoryContentscxx . . $ Ui_patternEditor#checkBox_directoryContents.->isEnabledcxx . . $ QWidget#isEnabled(50ce9a9e25b4a850).()) ) |
| 316 | patternLinecxx . . $ patternEditor#patternLine..appendcxx . . $ QString#append(d02845eef0c33901).("**"); |
| 317 | |
| 318 | if (notXnixRunningcxx . . $ Global/notXnixRunning.) |
| 319 | patternLinecxx . . $ patternEditor#patternLine..replacecxx . . $ QString#replace(192e628656427d1c).(SLASHcxx . . $ Global/SLASH.,"/"cxx . . $ QString#QString(85c52e162fed56f9).); // replace OS2 slashes with *nix ones -> OS2 uses *nix slashes for patterns |
| 320 | |
| 321 | uiPcxx . . $ patternEditor#uiP..lineEdit_patternFinalcxx . . $ Ui_patternEditor#lineEdit_patternFinal. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(patternLinecxx . . $ patternEditor#patternLine.); |
| 322 | } |
| 323 | //fileRadioChanged---------------------------------------------------------------------------- |
| 324 | //actions when the file specific radio button is toggled |
| 325 | void patternEditorcxx . . $ patternEditor#::fileRadioChangedcxx . . $ patternEditor#fileRadioChanged(49f6e7a06ebc5aa8).() |
| 326 | { |
| 327 | uiPcxx . . $ patternEditor#uiP..lineEdit_browsecxx . . $ Ui_patternEditor#lineEdit_browse. -> setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 328 | } |
| 329 | |
| 330 | // --------------------------------accessors----------------------------------- |
| 331 | QStringcxx . . $ QString# patternEditorcxx . . $ patternEditor#::getPatterncxx . . $ patternEditor#getPattern(4365c3963150523e).() |
| 332 | { |
| 333 | return itsPatterncxx . . $ QString#QString(132dd6869045752b).; |
| 334 | } |
| 335 | |
| 336 | |
| 337 | // end of patternEditor.cpp --------------------------------------------------------------------------- |
| 338 |