| 1 | // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/gui/toolbars/statusbar.cpp`/ |
| 2 | |
| 3 | #include "gui/toolbars/statusbar.h"cxx . . $ `<file>/src/librssguard/gui/toolbars/statusbar.h`/ |
| 4 | |
| 5 | #include "gui/dialogs/formmain.h"cxx . . $ `<file>/src/librssguard/gui/dialogs/formmain.h`/ |
| 6 | #include "gui/reusable/plaintoolbutton.h"cxx . . $ `<file>/src/librssguard/gui/reusable/plaintoolbutton.h`/ |
| 7 | #include "gui/reusable/progressbarwithtext.h"cxx . . $ `<file>/src/librssguard/gui/reusable/progressbarwithtext.h`/ |
| 8 | #include "gui/tabwidget.h"cxx . . $ `<file>/src/librssguard/gui/tabwidget.h`/ |
| 9 | #include "miscellaneous/iconfactory.h"cxx . . $ `<file>/src/librssguard/miscellaneous/iconfactory.h`/ |
| 10 | #include "miscellaneous/settings.h"cxx . . $ `<file>/src/librssguard/miscellaneous/settings.h`/ |
| 11 | |
| 12 | #include <QLabel> |
| 13 | #include <QToolButton> |
| 14 | |
| 15 | StatusBarcxx . . $ StatusBar#::StatusBarcxx . . $ StatusBar#StatusBar(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent) : QStatusBarcxx . . $ QStatusBar#(parent) { |
| 16 | setSizeGripEnabledcxx . . $ QStatusBar#setSizeGripEnabled(b45ddcbc8423892c).(false); |
| 17 | setContentsMarginscxx . . $ QWidget#setContentsMargins(748afa4755bc9595).(2, 0, 2, 2); |
| 18 | |
| 19 | m_barProgressFeedscxx . . $ StatusBar#m_barProgressFeeds. = new ProgressBarWithTextcxx . . $ ProgressBarWithText#ProgressBarWithText(108f35f7aa7f3cf9).(this); |
| 20 | m_barProgressFeedscxx . . $ StatusBar#m_barProgressFeeds.->setTextVisiblecxx . . $ QProgressBar#setTextVisible(b45ddcbc8423892c).(true); |
| 21 | m_barProgressFeedscxx . . $ StatusBar#m_barProgressFeeds.->setFixedWidthcxx . . $ QWidget#setFixedWidth(d4f767463ce0a6b3).(250); |
| 22 | m_barProgressFeedscxx . . $ StatusBar#m_barProgressFeeds.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 23 | m_barProgressFeedscxx . . $ StatusBar#m_barProgressFeeds.->setObjectNamecxx . . $ QObject#setObjectName(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("m_barProgressFeeds")); |
| 24 | |
| 25 | m_barProgressFeedsActioncxx . . $ StatusBar#m_barProgressFeedsAction. = |
| 26 | new QActioncxx . . $ QAction#(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->iconscxx . . $ Application#icons(d976db2a0d825b70).()->fromThemecxx . . $ IconFactory#fromTheme(e457fbbee8993f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("application-rss+xml")), trcxx . . $ StatusBar#tr(75d9f1c324b4579d).("Feed update progress bar"), this); |
| 27 | m_barProgressFeedsActioncxx . . $ StatusBar#m_barProgressFeedsAction.->setObjectNamecxx . . $ QObject#setObjectName(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("m_barProgressFeedsAction")); |
| 28 | |
| 29 | m_barProgressDownloadcxx . . $ StatusBar#m_barProgressDownload. = new ProgressBarWithTextcxx . . $ ProgressBarWithText#ProgressBarWithText(108f35f7aa7f3cf9).(this); |
| 30 | m_barProgressDownloadcxx . . $ StatusBar#m_barProgressDownload.->setTextVisiblecxx . . $ QProgressBar#setTextVisible(b45ddcbc8423892c).(true); |
| 31 | m_barProgressDownloadcxx . . $ StatusBar#m_barProgressDownload.->setFixedWidthcxx . . $ QWidget#setFixedWidth(d4f767463ce0a6b3).(230); |
| 32 | m_barProgressDownloadcxx . . $ StatusBar#m_barProgressDownload.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 33 | m_barProgressDownloadcxx . . $ StatusBar#m_barProgressDownload.->setObjectNamecxx . . $ QObject#setObjectName(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("m_barProgressDownload")); |
| 34 | |
| 35 | m_barProgressDownloadActioncxx . . $ StatusBar#m_barProgressDownloadAction. = new QActioncxx . . $ QAction#(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->iconscxx . . $ Application#icons(d976db2a0d825b70).()->fromThemecxx . . $ IconFactory#fromTheme(e457fbbee8993f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("emblem-downloads"), QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("download")), |
| 36 | trcxx . . $ StatusBar#tr(75d9f1c324b4579d).("File download progress bar"), |
| 37 | this); |
| 38 | m_barProgressDownloadActioncxx . . $ StatusBar#m_barProgressDownloadAction.->setObjectNamecxx . . $ QObject#setObjectName(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("m_barProgressDownloadAction")); |
| 39 | |
| 40 | m_barProgressDownloadcxx . . $ StatusBar#m_barProgressDownload.->installEventFiltercxx . . $ QObject#installEventFilter(749de1b6ae65bddd).(this); |
| 41 | } |
| 42 | |
| 43 | StatusBarcxx . . $ StatusBar#::~cxx . . $ StatusBar#`~StatusBar`(ced63f7c635d850d).StatusBarcxx . . $ StatusBar#() { |
| 44 | clearcxx . . $ StatusBar#clear(49f6e7a06ebc5aa8).(); |
| 45 | qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_GUIcxx . . $ `src/librssguard/definitions/definitions.h:174:9`! "Destroying StatusBar instance."; |
| 46 | } |
| 47 | |
| 48 | QListcxx . . $ QList#<QActioncxx . . $ QAction#*> StatusBarcxx . . $ StatusBar#::availableActionscxx . . $ StatusBar#availableActions(6326ecb0baf05155).() const { |
| 49 | QListcxx . . $ QList#<QActioncxx . . $ QAction#*> actions = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->userActionscxx . . $ Application#userActions(c4b3bc0793dee689).(); |
| 50 | |
| 51 | // Now, add placeholder actions for custom stuff. |
| 52 | actions <<cxx . . $ QList#`operator<<`(ddd37d5bfdbbfc74). m_barProgressDownloadActioncxx . . $ StatusBar#m_barProgressDownloadAction. <<cxx . . $ QList#`operator<<`(ddd37d5bfdbbfc74). m_barProgressFeedsActioncxx . . $ StatusBar#m_barProgressFeedsAction.; |
| 53 | |
| 54 | return actions; |
| 55 | } |
| 56 | |
| 57 | QListcxx . . $ QList#<QActioncxx . . $ QAction#*> StatusBarcxx . . $ StatusBar#::activatedActionscxx . . $ StatusBar#activatedActions(6326ecb0baf05155).() const { |
| 58 | return actionscxx . . $ QWidget#actions(6326ecb0baf05155).(); |
| 59 | } |
| 60 | |
| 61 | void StatusBarcxx . . $ StatusBar#::saveAndSetActionscxx . . $ StatusBar#saveAndSetActions(4c9f0945b8b27034).(const QStringListcxx . . $ QStringList#& actions) { |
| 62 | qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->setValuecxx . . $ Settings#setValue(365356ede4ebaabb).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(GUI), GUIcxx . . $ GUI/::StatusbarActionscxx . . $ GUI/StatusbarActions., actionscxx . . $ QVariant#QVariant(132dd6869045752b)..joincxx . . $ QListSpecialMethods#join(5555d9024dcf93fb).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(","))); |
| 63 | loadSpecificActionscxx . . $ StatusBar#loadSpecificActions(1c62d541ecdd9946).(convertActionscxx . . $ StatusBar#convertActions(2823155382a095dd).(actions)); |
| 64 | } |
| 65 | |
| 66 | QStringListcxx . . $ QStringList# StatusBarcxx . . $ StatusBar#::defaultActionscxx . . $ StatusBar#defaultActions(2b25566bdf736d18).() const { |
| 67 | return QStringcxx . . $ QString#QString(85c52e162fed56f9).(GUIcxx . . $ GUI/::StatusbarActionsDefcxx . . $ GUI/StatusbarActionsDef.) |
| 68 | .splitcxx . . $ QString#split(4e27fcb098d1f780).(','cxx . . $ QChar#QChar(93d577a3e9528307)., |
| 69 | #if QT_VERSIONcxx . . $ `<external>/3898848398875472725/qtversionchecks.h:17:9`! >= 0x050F00 // Qt >= 5.15.0 |
| 70 | Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::SplitBehaviorFlagscxx . . $ Qt/SplitBehaviorFlags#::SkipEmptyPartscxx . . $ Qt/SkipEmptyParts.); |
| 71 | #else |
| 72 | QString::SplitBehavior::SkipEmptyParts); |
| 73 | #endif |
| 74 | } |
| 75 | |
| 76 | QStringListcxx . . $ QStringList# StatusBarcxx . . $ StatusBar#::savedActionscxx . . $ StatusBar#savedActions(2b25566bdf736d18).() const { |
| 77 | return qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).() |
| 78 | ->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(GUI), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(GUI::StatusbarActions)) |
| 79 | .toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).() |
| 80 | .splitcxx . . $ QString#split(4e27fcb098d1f780).(','cxx . . $ QChar#QChar(93d577a3e9528307)., |
| 81 | #if QT_VERSIONcxx . . $ `<external>/3898848398875472725/qtversionchecks.h:17:9`! >= 0x050F00 // Qt >= 5.15.0 |
| 82 | Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::SplitBehaviorFlagscxx . . $ Qt/SplitBehaviorFlags#::SkipEmptyPartscxx . . $ Qt/SkipEmptyParts.); |
| 83 | #else |
| 84 | QString::SplitBehavior::SkipEmptyParts); |
| 85 | #endif |
| 86 | } |
| 87 | |
| 88 | QListcxx . . $ QList#<QActioncxx . . $ QAction#*> StatusBarcxx . . $ StatusBar#::convertActionscxx . . $ StatusBar#convertActions(2823155382a095dd).(const QStringListcxx . . $ QStringList#& actions) { |
| 89 | bool progress_visible = this->actionscxx . . $ QWidget#actions(6326ecb0baf05155).().containscxx . . $ QListSpecialMethodsBase#contains(7349e39e0b02d05c).(m_barProgressFeedsActioncxx . . $ StatusBar#m_barProgressFeedsAction.) && m_barProgressFeedscxx . . $ StatusBar#m_barProgressFeeds.->isVisiblecxx . . $ QWidget#isVisible(50ce9a9e25b4a850).(); |
| 90 | QListcxx . . $ QList#<QActioncxx . . $ QAction#*> available_actions = availableActionscxx . . $ StatusBar#availableActions(6326ecb0baf05155).(); |
| 91 | QListcxx . . $ QList#<QActioncxx . . $ QAction#*> spec_actionscxx . . $ QList#QList(ced63f7c635d850d).; |
| 92 | |
| 93 | spec_actions.reservecxx . . $ QList#reserve(35cb52607f6af42f).(actions.sizecxx . . $ QList#size(6b0412d51016192f).()); |
| 94 | |
| 95 | // Iterate action names and add respectable |
| 96 | // actions into the toolbar. |
| 97 | for (const QStringcxx . . $ QString#& action_name : actions) { |
| 98 | QActioncxx . . $ QAction#* matching_action = findMatchingActioncxx . . $ BaseBar#findMatchingAction(3f3eee881eed8b2b).(action_name, available_actions); |
| 99 | QActioncxx . . $ QAction#* action_to_add; |
| 100 | QWidgetcxx . . $ QWidget#* widget_to_add; |
| 101 | |
| 102 | if (matching_action == m_barProgressDownloadActioncxx . . $ StatusBar#m_barProgressDownloadAction.) { |
| 103 | widget_to_add = m_barProgressDownloadcxx . . $ StatusBar#m_barProgressDownload.; |
| 104 | action_to_add = m_barProgressDownloadActioncxx . . $ StatusBar#m_barProgressDownloadAction.; |
| 105 | widget_to_add->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 106 | } |
| 107 | else if (matching_action == m_barProgressFeedsActioncxx . . $ StatusBar#m_barProgressFeedsAction.) { |
| 108 | widget_to_add = m_barProgressFeedscxx . . $ StatusBar#m_barProgressFeeds.; |
| 109 | action_to_add = m_barProgressFeedsActioncxx . . $ StatusBar#m_barProgressFeedsAction.; |
| 110 | widget_to_add->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(progress_visible); |
| 111 | } |
| 112 | else { |
| 113 | if (action_name ==cxx . . $ `operator==`(5bc2975d2d751687). QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(SEPARATOR_ACTION_NAMEcxx . . $ `src/librssguard/definitions/definitions.h:91:9`!)) { |
| 114 | QLabelcxx . . $ QLabel#* lbl = new QLabelcxx . . $ QLabel#QLabel(184e10e88e175d5b).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("\u2022"), this); |
| 115 | |
| 116 | widget_to_add = lbl; |
| 117 | action_to_add = new QActioncxx . . $ QAction#(this); |
| 118 | action_to_add->setSeparatorcxx . . $ QAction#setSeparator(b45ddcbc8423892c).(true); |
| 119 | } |
| 120 | else if (action_name ==cxx . . $ `operator==`(5bc2975d2d751687). QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(SPACER_ACTION_NAMEcxx . . $ `src/librssguard/definitions/definitions.h:90:9`!)) { |
| 121 | QLabelcxx . . $ QLabel#* lbl = new QLabelcxx . . $ QLabel#QLabel(184e10e88e175d5b).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("\t\t"), this); |
| 122 | |
| 123 | widget_to_add = lbl; |
| 124 | action_to_add = new QActioncxx . . $ QAction#(this); |
| 125 | action_to_add->setIconcxx . . $ QAction#setIcon(71dcdac178620ed6).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->iconscxx . . $ Application#icons(d976db2a0d825b70).()->fromThemecxx . . $ IconFactory#fromTheme(e457fbbee8993f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("system-search"))); |
| 126 | action_to_add->setPropertycxx . . $ QObject#setProperty(b8a01cfdb0695ee1).("type", SPACER_ACTION_NAMEcxx . . $ `src/librssguard/definitions/definitions.h:90:9`!); |
| 127 | action_to_add->setPropertycxx . . $ QObject#setProperty(b8a01cfdb0695ee1).("name", trcxx . . $ QVariant#QVariant(132dd6869045752b).("Toolbar spacer")); |
| 128 | } |
| 129 | else if (matching_action != nullptr) { |
| 130 | // Add originally toolbar action. |
| 131 | auto* tool_button = new PlainToolButtoncxx . . $ PlainToolButton#PlainToolButton(108f35f7aa7f3cf9).(this); |
| 132 | |
| 133 | tool_button->reactOnActionChangecxx . . $ PlainToolButton#reactOnActionChange(92b1e80c0a7f1406).(matching_action); |
| 134 | widget_to_add = tool_button; |
| 135 | action_to_add = matching_action; |
| 136 | connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(tool_button, &PlainToolButtoncxx . . $ PlainToolButton#::clickedcxx . . $ QAbstractButton#clicked(b45ddcbc8423892c)., matching_action, &QActioncxx . . $ QAction#::triggercxx . . $ QAction#trigger(49f6e7a06ebc5aa8).); |
| 137 | connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(matching_action, &QActioncxx . . $ QAction#::changedcxx . . $ QAction#changed(49f6e7a06ebc5aa8)., tool_button, &PlainToolButtoncxx . . $ PlainToolButton#::reactOnSenderActionChangecxx . . $ PlainToolButton#reactOnSenderActionChange(49f6e7a06ebc5aa8).); |
| 138 | } |
| 139 | else { |
| 140 | action_to_add = nullptr; |
| 141 | widget_to_add = nullptr; |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | if (action_to_add != nullptr && widget_to_add != nullptr) { |
| 146 | action_to_add->setPropertycxx . . $ QObject#setProperty(b8a01cfdb0695ee1).("widget", QVariantcxx . . $ QVariant#::fromValuecxx . . $ QVariant#fromValue(8eccd985207c29dd).(widget_to_add)); |
| 147 | spec_actions.appendcxx . . $ QList#append(200d2dc08238a4ed).(action_to_add); |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | return spec_actions; |
| 152 | } |
| 153 | |
| 154 | void StatusBarcxx . . $ StatusBar#::loadSpecificActionscxx . . $ StatusBar#loadSpecificActions(1c62d541ecdd9946).(const QListcxx . . $ QList#<QActioncxx . . $ QAction#*>& actions, bool initial_load) { |
| 155 | if (initial_load) { |
| 156 | clearcxx . . $ StatusBar#clear(49f6e7a06ebc5aa8).(); |
| 157 | |
| 158 | for (QActioncxx . . $ QAction#* act : actions) { |
| 159 | QWidgetcxx . . $ QWidget#* widget = act->propertycxx . . $ QObject#property(950ff6813be46b58).("widget").isValidcxx . . $ QVariant#isValid(50ce9a9e25b4a850).() ? qvariant_castcxx . . $ qvariant_cast(e216ea91683007dd).<QWidgetcxx . . $ QWidget#*>(act->propertycxx . . $ QObject#property(950ff6813be46b58).("widget")) : nullptr; |
| 160 | |
| 161 | addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(act); |
| 162 | |
| 163 | // And also add widget. |
| 164 | if (widget != nullptr) { |
| 165 | addPermanentWidgetcxx . . $ QStatusBar#addPermanentWidget(156e3b1c1bd4a3d5).(widget); |
| 166 | } |
| 167 | } |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | bool StatusBarcxx . . $ StatusBar#::eventFiltercxx . . $ StatusBar#eventFilter(978aa4af1d030efa).(QObjectcxx . . $ QObject#* watched, QEventcxx . . $ QEvent#* event) { |
| 172 | if (watched == m_barProgressDownloadcxx . . $ StatusBar#m_barProgressDownload.) { |
| 173 | if (event->typecxx . . $ QEvent#type(916a8de57f4d422b).() == QEventcxx . . $ QEvent#::Typecxx . . $ QEvent#Type#::MouseButtonPresscxx . . $ QEvent#MouseButtonPress.) { |
| 174 | qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->tabWidgetcxx . . $ FormMain#tabWidget(331dafdc3f7547ba).()->showDownloadManagercxx . . $ TabWidget#showDownloadManager(49f6e7a06ebc5aa8).(); |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | return false; |
| 179 | } |
| 180 | |
| 181 | void StatusBarcxx . . $ StatusBar#::clearcxx . . $ StatusBar#clear(49f6e7a06ebc5aa8).() { |
| 182 | while (!actionscxx . . $ QWidget#actions(6326ecb0baf05155).().isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) { |
| 183 | QActioncxx . . $ QAction#* act = actionscxx . . $ QWidget#actions(6326ecb0baf05155).().atcxx . . $ QList#at(c7965f769b39929).(0); |
| 184 | QWidgetcxx . . $ QWidget#* widget = |
| 185 | act->propertycxx . . $ QObject#property(950ff6813be46b58).("widget").isValidcxx . . $ QVariant#isValid(50ce9a9e25b4a850).() ? static_cast<QWidgetcxx . . $ QWidget#*>(act->propertycxx . . $ QObject#property(950ff6813be46b58).("widget").valuecxx . . $ QVariant#value(1e6269539e51e84a).<void*>()) : nullptr; |
| 186 | |
| 187 | if (widget != nullptr) { |
| 188 | removeWidgetcxx . . $ QStatusBar#removeWidget(108f35f7aa7f3cf9).(widget); |
| 189 | |
| 190 | widget->setParentcxx . . $ QWidget#setParent(108f35f7aa7f3cf9).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormWidgetcxx . . $ Application#mainFormWidget(9b769eeb00a33a04).()); |
| 191 | widget->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 192 | } |
| 193 | |
| 194 | removeActioncxx . . $ QWidget#removeAction(92b1e80c0a7f1406).(act); |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | void StatusBarcxx . . $ StatusBar#::showProgressFeedscxx . . $ StatusBar#showProgressFeeds(4b11a7293b4ed91c).(int progress, const QStringcxx . . $ QString#& label) { |
| 199 | if (actionscxx . . $ QWidget#actions(6326ecb0baf05155).().containscxx . . $ QListSpecialMethodsBase#contains(7349e39e0b02d05c).(m_barProgressFeedsActioncxx . . $ StatusBar#m_barProgressFeedsAction.)) { |
| 200 | m_barProgressFeedscxx . . $ StatusBar#m_barProgressFeeds.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(true); |
| 201 | m_barProgressFeedscxx . . $ StatusBar#m_barProgressFeeds.->setFormatcxx . . $ QProgressBar#setFormat(3520e46b33348bf6).(label); |
| 202 | |
| 203 | if (progress < 0) { |
| 204 | m_barProgressFeedscxx . . $ StatusBar#m_barProgressFeeds.->setRangecxx . . $ QProgressBar#setRange(3e454b8ccf442868).(0, 0); |
| 205 | } |
| 206 | else { |
| 207 | m_barProgressFeedscxx . . $ StatusBar#m_barProgressFeeds.->setRangecxx . . $ QProgressBar#setRange(3e454b8ccf442868).(0, 100); |
| 208 | m_barProgressFeedscxx . . $ StatusBar#m_barProgressFeeds.->setValuecxx . . $ QProgressBar#setValue(d4f767463ce0a6b3).(progress); |
| 209 | } |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | void StatusBarcxx . . $ StatusBar#::clearProgressFeedscxx . . $ StatusBar#clearProgressFeeds(49f6e7a06ebc5aa8).() { |
| 214 | m_barProgressFeedscxx . . $ StatusBar#m_barProgressFeeds.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 215 | } |
| 216 | |
| 217 | void StatusBarcxx . . $ StatusBar#::showProgressDownloadcxx . . $ StatusBar#showProgressDownload(4b11a7293b4ed91c).(int progress, const QStringcxx . . $ QString#& tooltip) { |
| 218 | if (actionscxx . . $ QWidget#actions(6326ecb0baf05155).().containscxx . . $ QListSpecialMethodsBase#contains(7349e39e0b02d05c).(m_barProgressDownloadActioncxx . . $ StatusBar#m_barProgressDownloadAction.)) { |
| 219 | m_barProgressDownloadcxx . . $ StatusBar#m_barProgressDownload.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(true); |
| 220 | m_barProgressDownloadcxx . . $ StatusBar#m_barProgressDownload.->setFormatcxx . . $ QProgressBar#setFormat(3520e46b33348bf6).(tooltip); |
| 221 | m_barProgressDownloadcxx . . $ StatusBar#m_barProgressDownload.->setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(tooltip); |
| 222 | |
| 223 | if (progress < 0) { |
| 224 | m_barProgressDownloadcxx . . $ StatusBar#m_barProgressDownload.->setRangecxx . . $ QProgressBar#setRange(3e454b8ccf442868).(0, 0); |
| 225 | } |
| 226 | else { |
| 227 | m_barProgressDownloadcxx . . $ StatusBar#m_barProgressDownload.->setRangecxx . . $ QProgressBar#setRange(3e454b8ccf442868).(0, 100); |
| 228 | m_barProgressDownloadcxx . . $ StatusBar#m_barProgressDownload.->setValuecxx . . $ QProgressBar#setValue(d4f767463ce0a6b3).(progress); |
| 229 | } |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | void StatusBarcxx . . $ StatusBar#::clearProgressDownloadcxx . . $ StatusBar#clearProgressDownload(49f6e7a06ebc5aa8).() { |
| 234 | m_barProgressDownloadcxx . . $ StatusBar#m_barProgressDownload.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 235 | m_barProgressDownloadcxx . . $ StatusBar#m_barProgressDownload.->setValuecxx . . $ QProgressBar#setValue(d4f767463ce0a6b3).(0); |
| 236 | } |