| 1 | /* |
| 2 | Copyright (C) 2005-2014 Mario Stephan <[email protected]> |
| 3 | |
| 4 | This library is free software; you can redistribute it and/or modify |
| 5 | it under the terms of the GNU Lesser General Public License as published |
| 6 | by the Free Software Foundation; either version 2.1 of the License, or |
| 7 | (at your option) any later version. |
| 8 | |
| 9 | This program is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | GNU General Public License for more details. |
| 13 | |
| 14 | You should have received a copy of the GNU Lesser General Public License |
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ |
| 17 | |
| 18 | #include "djfilterwidget.h"cxx . . $ `<file>/src/djfilterwidget.h`/ |
| 19 | #include "ui_djfilterwidget.h"cxx . . $ `<file>/src/ui_djfilterwidget.h`/ |
| 20 | #include <qfiledialog.h> |
| 21 | |
| 22 | #include <QMouseEvent> |
| 23 | #include <QTimer> |
| 24 | #include <qdebug.h> |
| 25 | |
| 26 | struct DjFilterWidgetPrivatecxx . . $ DjFilterWidgetPrivate# { |
| 27 | Filtercxx . . $ Filter#* filtercxx . . $ DjFilterWidgetPrivate#filter.; |
| 28 | QTimercxx . . $ QTimer#* timerSlidecxx . . $ DjFilterWidgetPrivate#timerSlide.; |
| 29 | int targetWidthcxx . . $ DjFilterWidgetPrivate#targetWidth.; |
| 30 | bool readycxx . . $ DjFilterWidgetPrivate#ready.; |
| 31 | }; |
| 32 | |
| 33 | DjFilterWidgetcxx . . $ DjFilterWidget#::DjFilterWidgetcxx . . $ DjFilterWidget#DjFilterWidget(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent) |
| 34 | : QWidgetcxx . . $ QWidget#QWidget(872e7b0c281abd8d).(parent) |
| 35 | , uicxx . . $ DjFilterWidget#ui.(new Uicxx . . $ Ui/::DjFilterWidgetcxx . . $ Ui/DjFilterWidget#) |
| 36 | , pcxx . . $ DjFilterWidget#p.(new DjFilterWidgetPrivatecxx . . $ DjFilterWidgetPrivate#) |
| 37 | |
| 38 | { |
| 39 | setFocusPolicycxx . . $ QWidget#setFocusPolicy(84f385f4ea7c1696).(Qtcxx . . $ Qt/::ClickFocuscxx . . $ Qt/ClickFocus.); |
| 40 | uicxx . . $ DjFilterWidget#ui.->setupUicxx . . $ Ui_DjFilterWidget#setupUi(108f35f7aa7f3cf9).(this); |
| 41 | uicxx . . $ DjFilterWidget#ui.->ledActivecxx . . $ Ui_DjFilterWidget#ledActive.->setLookcxx . . $ QLed#setLook(fdc459d8768250a7).(QLedcxx . . $ QLed#::Flatcxx . . $ QLed#Flat.); |
| 42 | uicxx . . $ DjFilterWidget#ui.->ledActivecxx . . $ Ui_DjFilterWidget#ledActive.->setShapecxx . . $ QLed#setShape(c349c718748204da).(QLedcxx . . $ QLed#::Rectangularcxx . . $ QLed#Rectangular.); |
| 43 | uicxx . . $ DjFilterWidget#ui.->ledActivecxx . . $ Ui_DjFilterWidget#ledActive.->setColorcxx . . $ QLed#setColor(129a55e114526ad3).(QColorcxx . . $ QColor#QColor(2261ffe5112eab06).(35, 119, 246)); |
| 44 | uicxx . . $ DjFilterWidget#ui.->ledActivecxx . . $ Ui_DjFilterWidget#ledActive.->offcxx . . $ QLed#off(49f6e7a06ebc5aa8).(); |
| 45 | uicxx . . $ DjFilterWidget#ui.->txtPathcxx . . $ Ui_DjFilterWidget#txtPath.->setAttributecxx . . $ QWidget#setAttribute(52fc7bf162518f7f).(Qtcxx . . $ Qt/::WA_MacShowFocusRectcxx . . $ Qt/WA_MacShowFocusRect., false); |
| 46 | uicxx . . $ DjFilterWidget#ui.->cmbGenrescxx . . $ Ui_DjFilterWidget#cmbGenres.->setAttributecxx . . $ QWidget#setAttribute(52fc7bf162518f7f).(Qtcxx . . $ Qt/::WA_MacShowFocusRectcxx . . $ Qt/WA_MacShowFocusRect., false); |
| 47 | uicxx . . $ DjFilterWidget#ui.->cmbArtistscxx . . $ Ui_DjFilterWidget#cmbArtists.->setAttributecxx . . $ QWidget#setAttribute(52fc7bf162518f7f).(Qtcxx . . $ Qt/::WA_MacShowFocusRectcxx . . $ Qt/WA_MacShowFocusRect., false); |
| 48 | |
| 49 | uicxx . . $ DjFilterWidget#ui.->lblFilterValuecxx . . $ Ui_DjFilterWidget#lblFilterValue.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(QStringcxx . . $ QString#QString(ee6b7ef95d0103b6).::nullcxx . . $ QString#null.); |
| 50 | uicxx . . $ DjFilterWidget#ui.->stackDisplaycxx . . $ Ui_DjFilterWidget#stackDisplay.->setCountcxx . . $ StackDisplay#setCount(d4f767463ce0a6b3).(0); |
| 51 | |
| 52 | uicxx . . $ DjFilterWidget#ui.->stackDisplaycxx . . $ Ui_DjFilterWidget#stackDisplay.->setBarColorcxx . . $ StackDisplay#setBarColor(406700690822ecf).(QColorcxx . . $ QColor#QColor(2261ffe5112eab06).(196, 196, 210)); |
| 53 | uicxx . . $ DjFilterWidget#ui.->widgetClosecxx . . $ Ui_DjFilterWidget#widgetClose.->setMinimumWidthcxx . . $ QWidget#setMinimumWidth(d4f767463ce0a6b3).(0); |
| 54 | uicxx . . $ DjFilterWidget#ui.->widgetClosecxx . . $ Ui_DjFilterWidget#widgetClose.->setMaximumWidthcxx . . $ QWidget#setMaximumWidth(d4f767463ce0a6b3).(0); |
| 55 | |
| 56 | timercxx . . $ DjFilterWidget#timer. = new QTimercxx . . $ QTimer#QTimer(749de1b6ae65bddd).(this); |
| 57 | timercxx . . $ DjFilterWidget#timer.->stopcxx . . $ QTimer#stop(49f6e7a06ebc5aa8).(); |
| 58 | timercxx . . $ DjFilterWidget#timer.->setIntervalcxx . . $ QTimer#setInterval(d4f767463ce0a6b3).(300); |
| 59 | timercxx . . $ DjFilterWidget#timer.->setSingleShotcxx . . $ QTimer#setSingleShot(b45ddcbc8423892c).(true); |
| 60 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(timercxx . . $ DjFilterWidget#timer., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(timeout()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(slotSetFilter())); |
| 61 | |
| 62 | pcxx . . $ DjFilterWidget#p.->timerSlidecxx . . $ DjFilterWidgetPrivate#timerSlide. = new QTimercxx . . $ QTimer#QTimer(749de1b6ae65bddd).(this); |
| 63 | pcxx . . $ DjFilterWidget#p.->timerSlidecxx . . $ DjFilterWidgetPrivate#timerSlide.->setIntervalcxx . . $ QTimer#setInterval(d4f767463ce0a6b3).(10); |
| 64 | connectcxx . . $ QObject#connect(f4332061c7e4ca89).(pcxx . . $ DjFilterWidget#p.->timerSlidecxx . . $ DjFilterWidgetPrivate#timerSlide., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(timeout()), SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(timerSlide_timeOut())); |
| 65 | uicxx . . $ DjFilterWidget#ui.->sliFilterValuecxx . . $ Ui_DjFilterWidget#sliFilterValue.->setRangecxx . . $ QAbstractSlider#setRange(3e454b8ccf442868).(0, 10); |
| 66 | } |
| 67 | |
| 68 | DjFilterWidgetcxx . . $ DjFilterWidget#::~cxx . . $ DjFilterWidget#`~DjFilterWidget`(ced63f7c635d850d).DjFilterWidgetcxx . . $ DjFilterWidget#() |
| 69 | { |
| 70 | delete uicxx . . $ DjFilterWidget#ui.; |
| 71 | delete pcxx . . $ DjFilterWidget#p.; |
| 72 | } |
| 73 | |
| 74 | void DjFilterWidgetcxx . . $ DjFilterWidget#::changeEventcxx . . $ DjFilterWidget#changeEvent(c2473e2e70986fd7).(QEventcxx . . $ QEvent#* e) |
| 75 | { |
| 76 | QWidgetcxx . . $ QWidget#::changeEventcxx . . $ QWidget#changeEvent(c2473e2e70986fd7).(e); |
| 77 | switch (e->typecxx . . $ QEvent#type(916a8de57f4d422b).()) { |
| 78 | case QEventcxx . . $ QEvent#::LanguageChangecxx . . $ QEvent#LanguageChange.: |
| 79 | uicxx . . $ DjFilterWidget#ui.->retranslateUicxx . . $ Ui_DjFilterWidget#retranslateUi(108f35f7aa7f3cf9).(this); |
| 80 | break; |
| 81 | default: |
| 82 | break; |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | void DjFilterWidgetcxx . . $ DjFilterWidget#::mousePressEventcxx . . $ DjFilterWidget#mousePressEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent#* event) |
| 87 | { |
| 88 | |
| 89 | if (uicxx . . $ DjFilterWidget#ui.->widgetClosecxx . . $ Ui_DjFilterWidget#widgetClose.->geometrycxx . . $ QWidget#geometry(f4023511c62cad66).().containscxx . . $ QRect#contains(eaee943b37977784).(event->poscxx . . $ QMouseEvent#pos(75d69cfbd3c4b2dd).())) { |
| 90 | Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! deletedcxx . . $ DjFilterWidget#deleted(49f6e7a06ebc5aa8).(); |
| 91 | } else { |
| 92 | slideCloseWidgetcxx . . $ DjFilterWidget#slideCloseWidget(b45ddcbc8423892c).(false); |
| 93 | } |
| 94 | } |
| 95 | void DjFilterWidgetcxx . . $ DjFilterWidget#::slotSetFiltercxx . . $ DjFilterWidget#slotSetFilter(49f6e7a06ebc5aa8).() |
| 96 | { |
| 97 | qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). Q_FUNC_INFOcxx . . $ `/usr/include/x86_64-linux-gnu/qt5/QtCore/qcompilerdetection.h:240:11`!; |
| 98 | timercxx . . $ DjFilterWidget#timer.->stopcxx . . $ QTimer#stop(49f6e7a06ebc5aa8).(); |
| 99 | pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter.->setPathcxx . . $ Filter#setPath(7df51288a9ebd664).(uicxx . . $ DjFilterWidget#ui.->txtPathcxx . . $ Ui_DjFilterWidget#txtPath.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()); |
| 100 | pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter.->setGenrecxx . . $ Filter#setGenre(7df51288a9ebd664).(uicxx . . $ DjFilterWidget#ui.->cmbGenrescxx . . $ Ui_DjFilterWidget#cmbGenres.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).()); |
| 101 | pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter.->setArtistcxx . . $ Filter#setArtist(7df51288a9ebd664).(uicxx . . $ DjFilterWidget#ui.->cmbArtistscxx . . $ Ui_DjFilterWidget#cmbArtists.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).()); |
| 102 | pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter.->updatecxx . . $ Filter#update(49f6e7a06ebc5aa8).(); |
| 103 | } |
| 104 | |
| 105 | void DjFilterWidgetcxx . . $ DjFilterWidget#::setAllArtistscxx . . $ DjFilterWidget#setAllArtists(fc47db3ea09604d9).(QStringListcxx . . $ QStringList# values) |
| 106 | { |
| 107 | uicxx . . $ DjFilterWidget#ui.->cmbArtistscxx . . $ Ui_DjFilterWidget#cmbArtists.->addItemscxx . . $ QComboBox#addItems(631c0101495f0328).(values); |
| 108 | } |
| 109 | |
| 110 | void DjFilterWidgetcxx . . $ DjFilterWidget#::setAllGenrescxx . . $ DjFilterWidget#setAllGenres(f9511dba40b58c57).(QStringListcxx . . $ QStringList#& values) |
| 111 | { |
| 112 | uicxx . . $ DjFilterWidget#ui.->cmbGenrescxx . . $ Ui_DjFilterWidget#cmbGenres.->addItemscxx . . $ QComboBox#addItems(631c0101495f0328).(values); |
| 113 | } |
| 114 | |
| 115 | void DjFilterWidgetcxx . . $ DjFilterWidget#::setIDcxx . . $ DjFilterWidget#setID(7df51288a9ebd664).(QStringcxx . . $ QString# value) |
| 116 | { |
| 117 | uicxx . . $ DjFilterWidget#ui.->lblNumbercxx . . $ Ui_DjFilterWidget#lblNumber.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(value); |
| 118 | } |
| 119 | |
| 120 | void DjFilterWidgetcxx . . $ DjFilterWidget#::setFiltercxx . . $ DjFilterWidget#setFilter(d4630526fa8b762f).(Filtercxx . . $ Filter#* filter) |
| 121 | { |
| 122 | qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). Q_FUNC_INFOcxx . . $ `/usr/include/x86_64-linux-gnu/qt5/QtCore/qcompilerdetection.h:240:11`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "START"; |
| 123 | |
| 124 | timercxx . . $ DjFilterWidget#timer.->stopcxx . . $ QTimer#stop(49f6e7a06ebc5aa8).(); |
| 125 | pcxx . . $ DjFilterWidget#p.->readycxx . . $ DjFilterWidgetPrivate#ready. = false; |
| 126 | pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter. = filter; |
| 127 | onFilterCountChangedcxx . . $ DjFilterWidget#onFilterCountChanged(49f6e7a06ebc5aa8).(); |
| 128 | onFilterMaxUsageChangedcxx . . $ DjFilterWidget#onFilterMaxUsageChanged(49f6e7a06ebc5aa8).(); |
| 129 | uicxx . . $ DjFilterWidget#ui.->txtPathcxx . . $ Ui_DjFilterWidget#txtPath.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter.->pathcxx . . $ Filter#path(4365c3963150523e).()); |
| 130 | uicxx . . $ DjFilterWidget#ui.->cmbGenrescxx . . $ Ui_DjFilterWidget#cmbGenres.->setEditTextcxx . . $ QComboBox#setEditText(3520e46b33348bf6).(pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter.->genrecxx . . $ Filter#genre(4365c3963150523e).()); |
| 131 | uicxx . . $ DjFilterWidget#ui.->cmbArtistscxx . . $ Ui_DjFilterWidget#cmbArtists.->setEditTextcxx . . $ QComboBox#setEditText(3520e46b33348bf6).(pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter.->artistcxx . . $ Filter#artist(4365c3963150523e).()); |
| 132 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(statusChanged(bool)), |
| 133 | this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onFilterStatusChanged(bool))); |
| 134 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(countChanged()), |
| 135 | this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onFilterCountChanged())); |
| 136 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(usageChanged()), |
| 137 | this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onFilterUsageChanged())); |
| 138 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(maxUsageChanged()), |
| 139 | this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onFilterMaxUsageChanged())); |
| 140 | pcxx . . $ DjFilterWidget#p.->readycxx . . $ DjFilterWidgetPrivate#ready. = true; |
| 141 | qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). Q_FUNC_INFOcxx . . $ `/usr/include/x86_64-linux-gnu/qt5/QtCore/qcompilerdetection.h:240:11`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "END"; |
| 142 | } |
| 143 | |
| 144 | Filtercxx . . $ Filter#* DjFilterWidgetcxx . . $ DjFilterWidget#::filtercxx . . $ DjFilterWidget#filter(d71fbddbec531fa6).() |
| 145 | { |
| 146 | return pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter.; |
| 147 | } |
| 148 | |
| 149 | void DjFilterWidgetcxx . . $ DjFilterWidget#::on_sliFilterValue_valueChangedcxx . . $ DjFilterWidget#on_sliFilterValue_valueChanged(d4f767463ce0a6b3).(int value) |
| 150 | { |
| 151 | uicxx . . $ DjFilterWidget#ui.->lblFilterValuecxx . . $ Ui_DjFilterWidget#lblFilterValue.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1 %2").argcxx . . $ QString#arg(64ab2ed17cc11715).(value).argcxx . . $ QString#arg(bc823072288cbbb5).(QStringcxx . . $ QString#(trcxx . . $ DjFilterWidget#tr(75d9f1c324b4579d).("of")))); |
| 152 | pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter.->setMaxUsagecxx . . $ Filter#setMaxUsage(d4f767463ce0a6b3).(uicxx . . $ DjFilterWidget#ui.->sliFilterValuecxx . . $ Ui_DjFilterWidget#sliFilterValue.->valuecxx . . $ QAbstractSlider#value(455f465bc33b4cdf).()); |
| 153 | } |
| 154 | |
| 155 | void DjFilterWidgetcxx . . $ DjFilterWidget#::on_txtPath_textChangedcxx . . $ DjFilterWidget#on_txtPath_textChanged(7df51288a9ebd664).(QStringcxx . . $ QString#) |
| 156 | { |
| 157 | if (pcxx . . $ DjFilterWidget#p.->readycxx . . $ DjFilterWidgetPrivate#ready.) { |
| 158 | if (timercxx . . $ DjFilterWidget#timer.->isActivecxx . . $ QTimer#isActive(50ce9a9e25b4a850).()) |
| 159 | timercxx . . $ DjFilterWidget#timer.->stopcxx . . $ QTimer#stop(49f6e7a06ebc5aa8).(); |
| 160 | timercxx . . $ DjFilterWidget#timer.->startcxx . . $ QTimer#start(49f6e7a06ebc5aa8).(); |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | void DjFilterWidgetcxx . . $ DjFilterWidget#::on_cmbGenres_editTextChangedcxx . . $ DjFilterWidget#on_cmbGenres_editTextChanged(7df51288a9ebd664).(QStringcxx . . $ QString#) |
| 165 | { |
| 166 | if (pcxx . . $ DjFilterWidget#p.->readycxx . . $ DjFilterWidgetPrivate#ready.) { |
| 167 | if (timercxx . . $ DjFilterWidget#timer.->isActivecxx . . $ QTimer#isActive(50ce9a9e25b4a850).()) |
| 168 | timercxx . . $ DjFilterWidget#timer.->stopcxx . . $ QTimer#stop(49f6e7a06ebc5aa8).(); |
| 169 | timercxx . . $ DjFilterWidget#timer.->startcxx . . $ QTimer#start(49f6e7a06ebc5aa8).(); |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | void DjFilterWidgetcxx . . $ DjFilterWidget#::on_cmbArtists_editTextChangedcxx . . $ DjFilterWidget#on_cmbArtists_editTextChanged(7df51288a9ebd664).(QStringcxx . . $ QString#) |
| 174 | { |
| 175 | if (pcxx . . $ DjFilterWidget#p.->readycxx . . $ DjFilterWidgetPrivate#ready.) { |
| 176 | if (timercxx . . $ DjFilterWidget#timer.->isActivecxx . . $ QTimer#isActive(50ce9a9e25b4a850).()) |
| 177 | timercxx . . $ DjFilterWidget#timer.->stopcxx . . $ QTimer#stop(49f6e7a06ebc5aa8).(); |
| 178 | timercxx . . $ DjFilterWidget#timer.->startcxx . . $ QTimer#start(49f6e7a06ebc5aa8).(); |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | void DjFilterWidgetcxx . . $ DjFilterWidget#::on_pushActivate_clickedcxx . . $ DjFilterWidget#on_pushActivate_clicked(49f6e7a06ebc5aa8).() |
| 183 | { |
| 184 | pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter.->setActivecxx . . $ Filter#setActive(b45ddcbc8423892c).(true); |
| 185 | } |
| 186 | |
| 187 | void DjFilterWidgetcxx . . $ DjFilterWidget#::onFilterStatusChangedcxx . . $ DjFilterWidget#onFilterStatusChanged(b45ddcbc8423892c).(bool b) |
| 188 | { |
| 189 | if (b) |
| 190 | uicxx . . $ DjFilterWidget#ui.->ledActivecxx . . $ Ui_DjFilterWidget#ledActive.->oncxx . . $ QLed#on(49f6e7a06ebc5aa8).(); |
| 191 | else { |
| 192 | uicxx . . $ DjFilterWidget#ui.->ledActivecxx . . $ Ui_DjFilterWidget#ledActive.->offcxx . . $ QLed#off(49f6e7a06ebc5aa8).(); |
| 193 | uicxx . . $ DjFilterWidget#ui.->stackDisplaycxx . . $ Ui_DjFilterWidget#stackDisplay.->setSelectedcxx . . $ StackDisplay#setSelected(d4f767463ce0a6b3).(-1); |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | void DjFilterWidgetcxx . . $ DjFilterWidget#::onFilterCountChangedcxx . . $ DjFilterWidget#onFilterCountChanged(49f6e7a06ebc5aa8).() |
| 198 | { |
| 199 | uicxx . . $ DjFilterWidget#ui.->lblCountcxx . . $ Ui_DjFilterWidget#lblCount.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter.->countcxx . . $ Filter#count(b126dc7c1de90089).())); |
| 200 | } |
| 201 | |
| 202 | void DjFilterWidgetcxx . . $ DjFilterWidget#::onFilterMaxUsageChangedcxx . . $ DjFilterWidget#onFilterMaxUsageChanged(49f6e7a06ebc5aa8).() |
| 203 | { |
| 204 | uicxx . . $ DjFilterWidget#ui.->lblFilterValuecxx . . $ Ui_DjFilterWidget#lblFilterValue.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1 %2").argcxx . . $ QString#arg(64ab2ed17cc11715).(pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter.->maxUsagecxx . . $ Filter#maxUsage(b126dc7c1de90089).()).argcxx . . $ QString#arg(bc823072288cbbb5).(trcxx . . $ DjFilterWidget#tr(75d9f1c324b4579d).("of"))); |
| 205 | uicxx . . $ DjFilterWidget#ui.->sliFilterValuecxx . . $ Ui_DjFilterWidget#sliFilterValue.->setValuecxx . . $ QAbstractSlider#setValue(d4f767463ce0a6b3).(pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter.->maxUsagecxx . . $ Filter#maxUsage(b126dc7c1de90089).()); |
| 206 | uicxx . . $ DjFilterWidget#ui.->stackDisplaycxx . . $ Ui_DjFilterWidget#stackDisplay.->setCountcxx . . $ StackDisplay#setCount(d4f767463ce0a6b3).(pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter.->maxUsagecxx . . $ Filter#maxUsage(b126dc7c1de90089).()); |
| 207 | } |
| 208 | |
| 209 | void DjFilterWidgetcxx . . $ DjFilterWidget#::onFilterUsageChangedcxx . . $ DjFilterWidget#onFilterUsageChanged(49f6e7a06ebc5aa8).() |
| 210 | { |
| 211 | uicxx . . $ DjFilterWidget#ui.->stackDisplaycxx . . $ Ui_DjFilterWidget#stackDisplay.->setCountcxx . . $ StackDisplay#setCount(d4f767463ce0a6b3).(pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter.->maxUsagecxx . . $ Filter#maxUsage(b126dc7c1de90089).()); |
| 212 | uicxx . . $ DjFilterWidget#ui.->stackDisplaycxx . . $ Ui_DjFilterWidget#stackDisplay.->setSelectedcxx . . $ StackDisplay#setSelected(d4f767463ce0a6b3).(pcxx . . $ DjFilterWidget#p.->filtercxx . . $ DjFilterWidgetPrivate#filter.->usagecxx . . $ Filter#usage(b126dc7c1de90089).()); |
| 213 | } |
| 214 | |
| 215 | void DjFilterWidgetcxx . . $ DjFilterWidget#::on_lbl1_linkActivatedcxx . . $ DjFilterWidget#on_lbl1_linkActivated(3520e46b33348bf6).(const QStringcxx . . $ QString#& link) |
| 216 | { |
| 217 | QFileDialogcxx . . $ QFileDialog# dialogcxx . . $ QFileDialog#QFileDialog(455e03d1cb1d84d1).(this); |
| 218 | dialog.setFileModecxx . . $ QFileDialog#setFileMode(508d43a8df9137e8).(QFileDialogcxx . . $ QFileDialog#::DirectoryOnlycxx . . $ QFileDialog#DirectoryOnly.); |
| 219 | if (dialog.execcxx . . $ QDialog#exec(b126dc7c1de90089).()) |
| 220 | uicxx . . $ DjFilterWidget#ui.->txtPathcxx . . $ Ui_DjFilterWidget#txtPath.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(dialog.selectedFilescxx . . $ QFileDialog#selectedFiles(e1dbd5c4feadc8f5).().firstcxx . . $ QList#first(19b2b6f17af048b).()); |
| 221 | } |
| 222 | |
| 223 | // esc key for exit close |
| 224 | void DjFilterWidgetcxx . . $ DjFilterWidget#::keyPressEventcxx . . $ DjFilterWidget#keyPressEvent(c92999c1b6b09cc0).(QKeyEventcxx . . $ QKeyEvent#* e) |
| 225 | { |
| 226 | if (e->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == Qtcxx . . $ Qt/::Key_Escapecxx . . $ Qt/Key_Escape.) |
| 227 | slideCloseWidgetcxx . . $ DjFilterWidget#slideCloseWidget(b45ddcbc8423892c).(false); |
| 228 | else |
| 229 | QWidgetcxx . . $ QWidget#::keyPressEventcxx . . $ QWidget#keyPressEvent(c92999c1b6b09cc0).(e); |
| 230 | } |
| 231 | |
| 232 | void DjFilterWidgetcxx . . $ DjFilterWidget#::on_pushClose_clickedcxx . . $ DjFilterWidget#on_pushClose_clicked(49f6e7a06ebc5aa8).() |
| 233 | { |
| 234 | slideCloseWidgetcxx . . $ DjFilterWidget#slideCloseWidget(b45ddcbc8423892c).((uicxx . . $ DjFilterWidget#ui.->widgetClosecxx . . $ Ui_DjFilterWidget#widgetClose.->minimumWidthcxx . . $ QWidget#minimumWidth(455f465bc33b4cdf).() < 50)); |
| 235 | } |
| 236 | |
| 237 | void DjFilterWidgetcxx . . $ DjFilterWidget#::slideCloseWidgetcxx . . $ DjFilterWidget#slideCloseWidget(b45ddcbc8423892c).(bool open) |
| 238 | { |
| 239 | pcxx . . $ DjFilterWidget#p.->targetWidthcxx . . $ DjFilterWidgetPrivate#targetWidth. = (open) ? 70 : 0; |
| 240 | pcxx . . $ DjFilterWidget#p.->timerSlidecxx . . $ DjFilterWidgetPrivate#timerSlide.->startcxx . . $ QTimer#start(49f6e7a06ebc5aa8).(); |
| 241 | } |
| 242 | |
| 243 | void DjFilterWidgetcxx . . $ DjFilterWidget#::timerSlide_timeOutcxx . . $ DjFilterWidget#timerSlide_timeOut(49f6e7a06ebc5aa8).() |
| 244 | { |
| 245 | int mWidth = uicxx . . $ DjFilterWidget#ui.->widgetClosecxx . . $ Ui_DjFilterWidget#widgetClose.->minimumWidthcxx . . $ QWidget#minimumWidth(455f465bc33b4cdf).(); |
| 246 | if (pcxx . . $ DjFilterWidget#p.->targetWidthcxx . . $ DjFilterWidgetPrivate#targetWidth. > mWidth) { |
| 247 | uicxx . . $ DjFilterWidget#ui.->widgetClosecxx . . $ Ui_DjFilterWidget#widgetClose.->setMinimumWidthcxx . . $ QWidget#setMinimumWidth(d4f767463ce0a6b3).(mWidth + 5); |
| 248 | uicxx . . $ DjFilterWidget#ui.->widgetClosecxx . . $ Ui_DjFilterWidget#widgetClose.->setMaximumWidthcxx . . $ QWidget#setMaximumWidth(d4f767463ce0a6b3).(mWidth + 5); |
| 249 | } else if (pcxx . . $ DjFilterWidget#p.->targetWidthcxx . . $ DjFilterWidgetPrivate#targetWidth. < mWidth) { |
| 250 | uicxx . . $ DjFilterWidget#ui.->widgetClosecxx . . $ Ui_DjFilterWidget#widgetClose.->setMinimumWidthcxx . . $ QWidget#setMinimumWidth(d4f767463ce0a6b3).(mWidth - 5); |
| 251 | uicxx . . $ DjFilterWidget#ui.->widgetClosecxx . . $ Ui_DjFilterWidget#widgetClose.->setMaximumWidthcxx . . $ QWidget#setMaximumWidth(d4f767463ce0a6b3).(mWidth - 5); |
| 252 | } else { |
| 253 | pcxx . . $ DjFilterWidget#p.->timerSlidecxx . . $ DjFilterWidgetPrivate#timerSlide.->stopcxx . . $ QTimer#stop(49f6e7a06ebc5aa8).(); |
| 254 | } |
| 255 | } |