| 1 | // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/gui/toolbars/feedstoolbar.cpp`/ |
| 2 | |
| 3 | #include "gui/toolbars/feedstoolbar.h"cxx . . $ `<file>/src/librssguard/gui/toolbars/feedstoolbar.h`/ |
| 4 | |
| 5 | #include "3rd-party/boolinq/boolinq.h"cxx . . $ `<file>/src/librssguard/3rd-party/boolinq/boolinq.h`/ |
| 6 | #include "core/feedsproxymodel.h"cxx . . $ `<file>/src/librssguard/core/feedsproxymodel.h`/ |
| 7 | #include "gui/reusable/nonclosablemenu.h"cxx . . $ `<file>/src/librssguard/gui/reusable/nonclosablemenu.h`/ |
| 8 | #include "miscellaneous/application.h"cxx . . $ `<file>/src/librssguard/miscellaneous/application.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 <QWidgetAction> |
| 13 | |
| 14 | FeedsToolBarcxx . . $ FeedsToolBar#::FeedsToolBarcxx . . $ FeedsToolBar#FeedsToolBar(90d5708627041e22).(const QStringcxx . . $ QString#& title, QWidgetcxx . . $ QWidget#* parent) : BaseToolBarcxx . . $ BaseToolBar#(title, parent) { |
| 15 | // Update right margin of filter textbox. |
| 16 | QMarginscxx . . $ QMargins# margins = contentsMarginscxx . . $ QWidget#contentsMargins(b3d08c6b733dca3).(); |
| 17 | |
| 18 | margins.setRightcxx . . $ QMargins#setRight(f349c77f591a7878).(margins.rightcxx . . $ QMargins#right(ea6fe5115c70a13f).() + FILTER_RIGHT_MARGINcxx . . $ `src/librssguard/definitions/definitions.h:93:9`!); |
| 19 | setContentsMarginscxx . . $ QWidget#setContentsMargins(79c4c8645766fc71).(margins); |
| 20 | |
| 21 | initializeFiltercxx . . $ FeedsToolBar#initializeFilter(49f6e7a06ebc5aa8).(); |
| 22 | initializeSearchBoxcxx . . $ FeedsToolBar#initializeSearchBox(49f6e7a06ebc5aa8).(); |
| 23 | } |
| 24 | |
| 25 | QListcxx . . $ QList#<QActioncxx . . $ QAction#*> FeedsToolBarcxx . . $ FeedsToolBar#::availableActionscxx . . $ FeedsToolBar#availableActions(6326ecb0baf05155).() const { |
| 26 | QListcxx . . $ QList#<QActioncxx . . $ QAction#*> available_actions = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->userActionscxx . . $ Application#userActions(c4b3bc0793dee689).(); |
| 27 | |
| 28 | available_actions.appendcxx . . $ QList#append(200d2dc08238a4ed).(m_actionSearchMessagescxx . . $ FeedsToolBar#m_actionSearchMessages.); |
| 29 | available_actions.appendcxx . . $ QList#append(200d2dc08238a4ed).(m_actionMessageFiltercxx . . $ FeedsToolBar#m_actionMessageFilter.); |
| 30 | |
| 31 | return available_actions; |
| 32 | } |
| 33 | |
| 34 | QListcxx . . $ QList#<QActioncxx . . $ QAction#*> FeedsToolBarcxx . . $ FeedsToolBar#::activatedActionscxx . . $ FeedsToolBar#activatedActions(6326ecb0baf05155).() const { |
| 35 | return actionscxx . . $ QWidget#actions(6326ecb0baf05155).(); |
| 36 | } |
| 37 | |
| 38 | void FeedsToolBarcxx . . $ FeedsToolBar#::saveAndSetActionscxx . . $ FeedsToolBar#saveAndSetActions(4c9f0945b8b27034).(const QStringListcxx . . $ QStringList#& actions) { |
| 39 | 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/::FeedsToolbarActionscxx . . $ GUI/FeedsToolbarActions., actionscxx . . $ QVariant#QVariant(132dd6869045752b)..joincxx . . $ QListSpecialMethods#join(5555d9024dcf93fb).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(","))); |
| 40 | loadSpecificActionscxx . . $ FeedsToolBar#loadSpecificActions(1c62d541ecdd9946).(convertActionscxx . . $ FeedsToolBar#convertActions(2823155382a095dd).(actions)); |
| 41 | |
| 42 | // If user hidden search messages box, then remove the filter. |
| 43 | if (!activatedActionscxx . . $ FeedsToolBar#activatedActions(6326ecb0baf05155).().containscxx . . $ QListSpecialMethodsBase#contains(7349e39e0b02d05c).(m_actionSearchMessagescxx . . $ FeedsToolBar#m_actionSearchMessages.)) { |
| 44 | m_txtSearchMessagescxx . . $ FeedsToolBar#m_txtSearchMessages.->clearcxx . . $ QLineEdit#clear(49f6e7a06ebc5aa8).(); |
| 45 | } |
| 46 | |
| 47 | handleMessageFilterChangecxx . . $ FeedsToolBar#handleMessageFilterChange(92b1e80c0a7f1406).(nullptr); |
| 48 | } |
| 49 | |
| 50 | QListcxx . . $ QList#<QActioncxx . . $ QAction#*> FeedsToolBarcxx . . $ FeedsToolBar#::convertActionscxx . . $ FeedsToolBar#convertActions(2823155382a095dd).(const QStringListcxx . . $ QStringList#& actions) { |
| 51 | QListcxx . . $ QList#<QActioncxx . . $ QAction#*> available_actions = availableActionscxx . . $ FeedsToolBar#availableActions(6326ecb0baf05155).(); |
| 52 | QListcxx . . $ QList#<QActioncxx . . $ QAction#*> spec_actionscxx . . $ QList#QList(ced63f7c635d850d).; |
| 53 | |
| 54 | spec_actions.reservecxx . . $ QList#reserve(35cb52607f6af42f).(actions.sizecxx . . $ QList#size(6b0412d51016192f).()); |
| 55 | |
| 56 | // Iterate action names and add respectable actions into the toolbar. |
| 57 | for (const QStringcxx . . $ QString#& action_name : actions) { |
| 58 | QActioncxx . . $ QAction#* matching_action = findMatchingActioncxx . . $ BaseBar#findMatchingAction(3f3eee881eed8b2b).(action_name, available_actions); |
| 59 | |
| 60 | if (matching_action != nullptr) { |
| 61 | // Add existing standard action. |
| 62 | spec_actions.appendcxx . . $ QList#append(200d2dc08238a4ed).(matching_action); |
| 63 | } |
| 64 | else if (action_name ==cxx . . $ `operator==`(5bc2975d2d751687). QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(SEPARATOR_ACTION_NAMEcxx . . $ `src/librssguard/definitions/definitions.h:91:9`!)) { |
| 65 | // Add new separator. |
| 66 | auto* act = new QActioncxx . . $ QAction#QAction(749de1b6ae65bddd).(this); |
| 67 | |
| 68 | act->setSeparatorcxx . . $ QAction#setSeparator(b45ddcbc8423892c).(true); |
| 69 | spec_actions.appendcxx . . $ QList#append(200d2dc08238a4ed).(act); |
| 70 | } |
| 71 | else if (action_name ==cxx . . $ `operator==`(5bc2975d2d751687). QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(SEARCH_BOX_ACTION_NAMEcxx . . $ `src/librssguard/definitions/definitions.h:87:9`!)) { |
| 72 | // Add search box. |
| 73 | spec_actions.appendcxx . . $ QList#append(200d2dc08238a4ed).(m_actionSearchMessagescxx . . $ FeedsToolBar#m_actionSearchMessages.); |
| 74 | } |
| 75 | else if (action_name.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(FILTER_ACTION_NAMEcxx . . $ `src/librssguard/definitions/definitions.h:89:9`!))) { |
| 76 | // Add filter button. |
| 77 | spec_actions.appendcxx . . $ QList#append(200d2dc08238a4ed).(m_actionMessageFiltercxx . . $ FeedsToolBar#m_actionMessageFilter.); |
| 78 | activateActioncxx . . $ BaseToolBar#activateAction(368f0de678a0b568).(action_name, m_actionMessageFiltercxx . . $ FeedsToolBar#m_actionMessageFilter.); |
| 79 | } |
| 80 | 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`!)) { |
| 81 | // Add new spacer. |
| 82 | auto* spacer = new QWidgetcxx . . $ QWidget#QWidget(872e7b0c281abd8d).(this); |
| 83 | |
| 84 | spacer->setSizePolicycxx . . $ QWidget#setSizePolicy(457db7fe1842b3dc).(QSizePolicycxx . . $ QSizePolicy#::Expandingcxx . . $ QSizePolicy#Expanding., QSizePolicycxx . . $ QSizePolicy#::Expandingcxx . . $ QSizePolicy#Expanding.); |
| 85 | auto* action = new QWidgetActioncxx . . $ QWidgetAction#(this); |
| 86 | |
| 87 | action->setDefaultWidgetcxx . . $ QWidgetAction#setDefaultWidget(108f35f7aa7f3cf9).(spacer); |
| 88 | action->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"))); |
| 89 | action->setPropertycxx . . $ QObject#setProperty(b8a01cfdb0695ee1).("type", SPACER_ACTION_NAMEcxx . . $ `src/librssguard/definitions/definitions.h:90:9`!); |
| 90 | action->setPropertycxx . . $ QObject#setProperty(b8a01cfdb0695ee1).("name", trcxx . . $ QVariant#QVariant(132dd6869045752b).("Toolbar spacer")); |
| 91 | spec_actions.appendcxx . . $ QList#append(200d2dc08238a4ed).(action); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | return spec_actions; |
| 96 | } |
| 97 | |
| 98 | void FeedsToolBarcxx . . $ FeedsToolBar#::loadSpecificActionscxx . . $ FeedsToolBar#loadSpecificActions(1c62d541ecdd9946).(const QListcxx . . $ QList#<QActioncxx . . $ QAction#*>& actions, bool initial_load) { |
| 99 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(initial_load) |
| 100 | |
| 101 | clearcxx . . $ QToolBar#clear(49f6e7a06ebc5aa8).(); |
| 102 | |
| 103 | for (QActioncxx . . $ QAction#* act : actions) { |
| 104 | addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(act); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | inline FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter# operatorcxx . . $ `operator|`(c065172e5cb69cef).|(FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter# a, FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter# b) { |
| 109 | return static_cast<FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter#>(static_cast<int>(a) | static_cast<int>(b)); |
| 110 | } |
| 111 | |
| 112 | void FeedsToolBarcxx . . $ FeedsToolBar#::handleMessageFilterChangecxx . . $ FeedsToolBar#handleMessageFilterChange(92b1e80c0a7f1406).(QActioncxx . . $ QAction#* action) { |
| 113 | FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter# task = |
| 114 | action == nullptr ? FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter#(0) : action->datacxx . . $ QAction#data(23280f95d1ccaa1f).().valuecxx . . $ QVariant#value(1e6269539e51e84a).<FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter#>(); |
| 115 | stdcxx . . $ std/::listcxx . . $ std/__cxx11/list#<QActioncxx . . $ QAction#*> checked_tasks_std = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(m_menuMessageFiltercxx . . $ FeedsToolBar#m_menuMessageFilter.->actionscxx . . $ QWidget#actions(6326ecb0baf05155).()) |
| 116 | .wherecxx . . $ boolinq/Linq#where(d169c8e6e9294137).([cxx . . $ std/function#function(bdc3712e480e4d04).](QActioncxx . . $ QAction#* act) { |
| 117 | return act->isCheckedcxx . . $ QAction#isChecked(50ce9a9e25b4a850).(); |
| 118 | }) |
| 119 | .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).(); |
| 120 | |
| 121 | if (task == FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter#::NoFilteringcxx . . $ FeedsProxyModel#FeedListFilter#NoFiltering. || checked_tasks_std.emptycxx . . $ std/__cxx11/list#empty(3482b152b9333168).()) { |
| 122 | task = FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter#::NoFilteringcxx . . $ FeedsProxyModel#FeedListFilter#NoFiltering.; |
| 123 | |
| 124 | checked_tasks_std.clearcxx . . $ std/__cxx11/list#clear(ced63f7c635d850d).(); |
| 125 | |
| 126 | // Uncheck everything. |
| 127 | m_menuMessageFiltercxx . . $ FeedsToolBar#m_menuMessageFilter.->blockSignalscxx . . $ QObject#blockSignals(4264aff4942d46ac).(true); |
| 128 | |
| 129 | for (QActioncxx . . $ QAction#* tsk : m_menuMessageFiltercxx . . $ FeedsToolBar#m_menuMessageFilter.->actionscxx . . $ QWidget#actions(6326ecb0baf05155).()) { |
| 130 | tsk->setCheckedcxx . . $ QAction#setChecked(b45ddcbc8423892c).(false); |
| 131 | } |
| 132 | |
| 133 | m_menuMessageFiltercxx . . $ FeedsToolBar#m_menuMessageFilter.->blockSignalscxx . . $ QObject#blockSignals(4264aff4942d46ac).(false); |
| 134 | } |
| 135 | else { |
| 136 | task = FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter#(0); |
| 137 | |
| 138 | for (QActioncxx . . $ QAction#* tsk : checked_tasks_std) { |
| 139 | task = task |cxx . . $ `operator|`(c065172e5cb69cef). tsk->datacxx . . $ QAction#data(23280f95d1ccaa1f).().valuecxx . . $ QVariant#value(1e6269539e51e84a).<FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter#>(); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | m_btnMessageFiltercxx . . $ FeedsToolBar#m_btnMessageFilter.->setDefaultActioncxx . . $ QToolButton#setDefaultAction(92b1e80c0a7f1406).(checked_tasks_std.emptycxx . . $ std/__cxx11/list#empty(3482b152b9333168).() ? m_menuMessageFiltercxx . . $ FeedsToolBar#m_menuMessageFilter.->actionscxx . . $ QWidget#actions(6326ecb0baf05155).().constFirstcxx . . $ QList#constFirst(2042464fc1fea03e).() |
| 144 | : checked_tasks_std.frontcxx . . $ std/__cxx11/list#front(d5f1ba0ed5a2655c).()); |
| 145 | |
| 146 | if (checked_tasks_std.sizecxx . . $ std/__cxx11/list#size(c9b1e749b64d5edc).() > 1) { |
| 147 | drawNumberOfCriteriascxx . . $ BaseToolBar#drawNumberOfCriterias(3e17fec436799122).(m_btnMessageFiltercxx . . $ FeedsToolBar#m_btnMessageFilter., int(checked_tasks_std.sizecxx . . $ std/__cxx11/list#size(c9b1e749b64d5edc).())); |
| 148 | } |
| 149 | |
| 150 | saveToolButtonSelectioncxx . . $ BaseToolBar#saveToolButtonSelection(7476e6c12bab527e).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(FILTER_ACTION_NAMEcxx . . $ `src/librssguard/definitions/definitions.h:89:9`!), |
| 151 | GUIcxx . . $ GUI/::FeedsToolbarActionscxx . . $ GUI/FeedsToolbarActions., |
| 152 | FROM_STD_LISTcxx . . $ `src/librssguard/definitions/definitions.h:405:9`!(QList<QAction*>, checked_tasks_std)); |
| 153 | emitcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:51:10`! feedFilterChangedcxx . . $ FeedsToolBar#feedFilterChanged(613fd7fc3879d90b).(task); |
| 154 | } |
| 155 | |
| 156 | QStringListcxx . . $ QStringList# FeedsToolBarcxx . . $ FeedsToolBar#::defaultActionscxx . . $ FeedsToolBar#defaultActions(2b25566bdf736d18).() const { |
| 157 | return QStringcxx . . $ QString#QString(85c52e162fed56f9).(GUIcxx . . $ GUI/::FeedsToolbarActionsDefcxx . . $ GUI/FeedsToolbarActionsDef.) |
| 158 | .splitcxx . . $ QString#split(4e27fcb098d1f780).(','cxx . . $ QChar#QChar(93d577a3e9528307)., |
| 159 | #if QT_VERSIONcxx . . $ `<external>/3898848398875472725/qtversionchecks.h:17:9`! >= 0x050F00 // Qt >= 5.15.0 |
| 160 | Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::SplitBehaviorFlagscxx . . $ Qt/SplitBehaviorFlags#::SkipEmptyPartscxx . . $ Qt/SkipEmptyParts.); |
| 161 | #else |
| 162 | QString::SplitBehavior::SkipEmptyParts); |
| 163 | #endif |
| 164 | } |
| 165 | |
| 166 | QStringListcxx . . $ QStringList# FeedsToolBarcxx . . $ FeedsToolBar#::savedActionscxx . . $ FeedsToolBar#savedActions(2b25566bdf736d18).() const { |
| 167 | return qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).() |
| 168 | ->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(GUI), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(GUI::FeedsToolbarActions)) |
| 169 | .toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).() |
| 170 | .splitcxx . . $ QString#split(4e27fcb098d1f780).(','cxx . . $ QChar#QChar(93d577a3e9528307)., |
| 171 | #if QT_VERSIONcxx . . $ `<external>/3898848398875472725/qtversionchecks.h:17:9`! >= 0x050F00 // Qt >= 5.15.0 |
| 172 | Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::SplitBehaviorFlagscxx . . $ Qt/SplitBehaviorFlags#::SkipEmptyPartscxx . . $ Qt/SkipEmptyParts.); |
| 173 | #else |
| 174 | QString::SplitBehavior::SkipEmptyParts); |
| 175 | #endif |
| 176 | } |
| 177 | |
| 178 | QListcxx . . $ QList#<QActioncxx . . $ QAction#*> FeedsToolBarcxx . . $ FeedsToolBar#::extraActionscxx . . $ FeedsToolBar#extraActions(6326ecb0baf05155).() const { |
| 179 | return m_menuMessageFiltercxx . . $ FeedsToolBar#m_menuMessageFilter.->actionscxx . . $ QWidget#actions(6326ecb0baf05155).(); |
| 180 | } |
| 181 | |
| 182 | void FeedsToolBarcxx . . $ FeedsToolBar#::initializeSearchBoxcxx . . $ FeedsToolBar#initializeSearchBox(49f6e7a06ebc5aa8).() { |
| 183 | m_txtSearchMessagescxx . . $ FeedsToolBar#m_txtSearchMessages. = |
| 184 | new SearchLineEditcxx . . $ SearchLineEdit#(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("feed_list_searcher"), |
| 185 | {cxx . . $ QList#QList(b6da5b9a9f304025).SearchLineEditcxx . . $ SearchLineEdit#CustomSearchChoice#CustomSearchChoice(29ed8fcd127906b1).::CustomSearchChoicecxx . . $ SearchLineEdit#CustomSearchChoice#(trcxx . . $ FeedsToolBar#tr(75d9f1c324b4579d).("Everywhere"), int(SearchFieldscxx . . $ BaseToolBar#SearchFields#::SearchAllcxx . . $ BaseToolBar#SearchFields#SearchAll.)), |
| 186 | SearchLineEditcxx . . $ SearchLineEdit#CustomSearchChoice#CustomSearchChoice(29ed8fcd127906b1).::CustomSearchChoicecxx . . $ SearchLineEdit#CustomSearchChoice#(trcxx . . $ FeedsToolBar#tr(75d9f1c324b4579d).("Titles only"), int(SearchFieldscxx . . $ BaseToolBar#SearchFields#::SearchTitleOnlycxx . . $ BaseToolBar#SearchFields#SearchTitleOnly.))}, |
| 187 | this); |
| 188 | m_txtSearchMessagescxx . . $ FeedsToolBar#m_txtSearchMessages.->setSizePolicycxx . . $ QWidget#setSizePolicy(457db7fe1842b3dc).(QSizePolicycxx . . $ QSizePolicy#::Policycxx . . $ QSizePolicy#Policy#::Expandingcxx . . $ QSizePolicy#Expanding., |
| 189 | m_txtSearchMessagescxx . . $ FeedsToolBar#m_txtSearchMessages.->sizePolicycxx . . $ QWidget#sizePolicy(32ae450071346403).().verticalPolicycxx . . $ QSizePolicy#verticalPolicy(6b16d495c389cba3).()); |
| 190 | m_txtSearchMessagescxx . . $ FeedsToolBar#m_txtSearchMessages.->setPlaceholderTextcxx . . $ QLineEdit#setPlaceholderText(3520e46b33348bf6).(trcxx . . $ FeedsToolBar#tr(75d9f1c324b4579d).("Search feeds")); |
| 191 | |
| 192 | // Setup wrapping action for search box. |
| 193 | m_actionSearchMessagescxx . . $ FeedsToolBar#m_actionSearchMessages. = new QWidgetActioncxx . . $ QWidgetAction#(this); |
| 194 | |
| 195 | m_actionSearchMessagescxx . . $ FeedsToolBar#m_actionSearchMessages.->setDefaultWidgetcxx . . $ QWidgetAction#setDefaultWidget(108f35f7aa7f3cf9).(m_txtSearchMessagescxx . . $ FeedsToolBar#m_txtSearchMessages.); |
| 196 | m_actionSearchMessagescxx . . $ FeedsToolBar#m_actionSearchMessages.->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"))); |
| 197 | m_actionSearchMessagescxx . . $ FeedsToolBar#m_actionSearchMessages.->setPropertycxx . . $ QObject#setProperty(b8a01cfdb0695ee1).("type", SEARCH_BOX_ACTION_NAMEcxx . . $ `src/librssguard/definitions/definitions.h:87:9`!); |
| 198 | m_actionSearchMessagescxx . . $ FeedsToolBar#m_actionSearchMessages.->setPropertycxx . . $ QObject#setProperty(b8a01cfdb0695ee1).("name", trcxx . . $ QVariant#QVariant(132dd6869045752b).("Feeds search box")); |
| 199 | |
| 200 | connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_txtSearchMessagescxx . . $ FeedsToolBar#m_txtSearchMessages., &SearchLineEditcxx . . $ SearchLineEdit#::searchCriteriaChangedcxx . . $ SearchLineEdit#searchCriteriaChanged(21ebb7e9546c0588)., this, &FeedsToolBarcxx . . $ FeedsToolBar#::searchCriteriaChangedcxx . . $ FeedsToolBar#searchCriteriaChanged(21ebb7e9546c0588).); |
| 201 | } |
| 202 | |
| 203 | SearchLineEditcxx . . $ SearchLineEdit#* FeedsToolBarcxx . . $ FeedsToolBar#::searchBoxcxx . . $ FeedsToolBar#searchBox(77ba32663e7d367e).() const { |
| 204 | return m_txtSearchMessagescxx . . $ FeedsToolBar#m_txtSearchMessages.; |
| 205 | } |
| 206 | |
| 207 | void FeedsToolBarcxx . . $ FeedsToolBar#::initializeFiltercxx . . $ FeedsToolBar#initializeFilter(49f6e7a06ebc5aa8).() { |
| 208 | m_menuMessageFiltercxx . . $ FeedsToolBar#m_menuMessageFilter. = new NonClosableMenucxx . . $ NonClosableMenu#(trcxx . . $ FeedsToolBar#tr(75d9f1c324b4579d).("Menu for filtering feeds"), this); |
| 209 | |
| 210 | QStringcxx . . $ QString# fl = QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(" ") +cxx . . $ operator+(adfbdceb504720ce). trcxx . . $ FeedsToolBar#tr(75d9f1c324b4579d).("(feed list)"); |
| 211 | |
| 212 | addActionToMenucxx . . $ BaseToolBar#addActionToMenu(8891f95823878729).(m_menuMessageFiltercxx . . $ FeedsToolBar#m_menuMessageFilter., |
| 213 | qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->iconscxx . . $ Application#icons(d976db2a0d825b70).()->fromThemecxx . . $ IconFactory#fromTheme(e457fbbee8993f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("mail-mark-read")), |
| 214 | trcxx . . $ FeedsToolBar#tr(75d9f1c324b4579d).("No extra filtering"), |
| 215 | fl, |
| 216 | QVariantcxx . . $ QVariant#::fromValuecxx . . $ QVariant#fromValue(a298f533828df527).(FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter#::NoFilteringcxx . . $ FeedsProxyModel#FeedListFilter#NoFiltering.), |
| 217 | QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("feedlist_no_filtering")); |
| 218 | addActionToMenucxx . . $ BaseToolBar#addActionToMenu(8891f95823878729).(m_menuMessageFiltercxx . . $ FeedsToolBar#m_menuMessageFilter., |
| 219 | qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->iconscxx . . $ Application#icons(d976db2a0d825b70).()->fromThemecxx . . $ IconFactory#fromTheme(e457fbbee8993f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("mail-mark-read")), |
| 220 | trcxx . . $ FeedsToolBar#tr(75d9f1c324b4579d).("Show unread items"), |
| 221 | fl, |
| 222 | QVariantcxx . . $ QVariant#::fromValuecxx . . $ QVariant#fromValue(a298f533828df527).(FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter#::ShowUnreadcxx . . $ FeedsProxyModel#FeedListFilter#ShowUnread.), |
| 223 | QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("feedlist_show_unread")); |
| 224 | addActionToMenucxx . . $ BaseToolBar#addActionToMenu(8891f95823878729).(m_menuMessageFiltercxx . . $ FeedsToolBar#m_menuMessageFilter., |
| 225 | qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->iconscxx . . $ Application#icons(d976db2a0d825b70).()->fromThemecxx . . $ IconFactory#fromTheme(e457fbbee8993f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("mail-mark-read")), |
| 226 | trcxx . . $ FeedsToolBar#tr(75d9f1c324b4579d).("Show non-empty items"), |
| 227 | fl, |
| 228 | QVariantcxx . . $ QVariant#::fromValuecxx . . $ QVariant#fromValue(a298f533828df527).(FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter#::ShowNonEmptycxx . . $ FeedsProxyModel#FeedListFilter#ShowNonEmpty.), |
| 229 | QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("feedlist_non_empty")); |
| 230 | addActionToMenucxx . . $ BaseToolBar#addActionToMenu(8891f95823878729).(m_menuMessageFiltercxx . . $ FeedsToolBar#m_menuMessageFilter., |
| 231 | qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->iconscxx . . $ Application#icons(d976db2a0d825b70).()->fromThemecxx . . $ IconFactory#fromTheme(e457fbbee8993f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("mail-mark-read")), |
| 232 | trcxx . . $ FeedsToolBar#tr(75d9f1c324b4579d).("Show feeds with new articles"), |
| 233 | fl, |
| 234 | QVariantcxx . . $ QVariant#::fromValuecxx . . $ QVariant#fromValue(a298f533828df527).(FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter#::ShowWithNewArticlescxx . . $ FeedsProxyModel#FeedListFilter#ShowWithNewArticles.), |
| 235 | QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("feedlist_new_articles")); |
| 236 | addActionToMenucxx . . $ BaseToolBar#addActionToMenu(8891f95823878729).(m_menuMessageFiltercxx . . $ FeedsToolBar#m_menuMessageFilter., |
| 237 | qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->iconscxx . . $ Application#icons(d976db2a0d825b70).()->fromThemecxx . . $ IconFactory#fromTheme(e457fbbee8993f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("mail-mark-read")), |
| 238 | trcxx . . $ FeedsToolBar#tr(75d9f1c324b4579d).("Show feeds with error"), |
| 239 | fl, |
| 240 | QVariantcxx . . $ QVariant#::fromValuecxx . . $ QVariant#fromValue(a298f533828df527).(FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter#::ShowWithErrorcxx . . $ FeedsProxyModel#FeedListFilter#ShowWithError.), |
| 241 | QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("feedlist_with_error")); |
| 242 | addActionToMenucxx . . $ BaseToolBar#addActionToMenu(8891f95823878729).(m_menuMessageFiltercxx . . $ FeedsToolBar#m_menuMessageFilter., |
| 243 | qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->iconscxx . . $ Application#icons(d976db2a0d825b70).()->fromThemecxx . . $ IconFactory#fromTheme(e457fbbee8993f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("mail-mark-read")), |
| 244 | trcxx . . $ FeedsToolBar#tr(75d9f1c324b4579d).("Show switched off feeds"), |
| 245 | fl, |
| 246 | QVariantcxx . . $ QVariant#::fromValuecxx . . $ QVariant#fromValue(a298f533828df527).(FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter#::ShowSwitchedOffcxx . . $ FeedsProxyModel#FeedListFilter#ShowSwitchedOff.), |
| 247 | QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("feedlist_switched_off")); |
| 248 | addActionToMenucxx . . $ BaseToolBar#addActionToMenu(8891f95823878729).(m_menuMessageFiltercxx . . $ FeedsToolBar#m_menuMessageFilter., |
| 249 | qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->iconscxx . . $ Application#icons(d976db2a0d825b70).()->fromThemecxx . . $ IconFactory#fromTheme(e457fbbee8993f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("mail-mark-read")), |
| 250 | trcxx . . $ FeedsToolBar#tr(75d9f1c324b4579d).("Show quiet feeds"), |
| 251 | fl, |
| 252 | QVariantcxx . . $ QVariant#::fromValuecxx . . $ QVariant#fromValue(a298f533828df527).(FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter#::ShowQuietcxx . . $ FeedsProxyModel#FeedListFilter#ShowQuiet.), |
| 253 | QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("feedlist_quiet")); |
| 254 | addActionToMenucxx . . $ BaseToolBar#addActionToMenu(8891f95823878729).(m_menuMessageFiltercxx . . $ FeedsToolBar#m_menuMessageFilter., |
| 255 | qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->iconscxx . . $ Application#icons(d976db2a0d825b70).()->fromThemecxx . . $ IconFactory#fromTheme(e457fbbee8993f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("mail-mark-read")), |
| 256 | trcxx . . $ FeedsToolBar#tr(75d9f1c324b4579d).("Show feeds with article filters"), |
| 257 | fl, |
| 258 | QVariantcxx . . $ QVariant#::fromValuecxx . . $ QVariant#fromValue(a298f533828df527).(FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter#::ShowWithArticleFilterscxx . . $ FeedsProxyModel#FeedListFilter#ShowWithArticleFilters.), |
| 259 | QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("feedlist_with_filters")); |
| 260 | |
| 261 | m_btnMessageFiltercxx . . $ FeedsToolBar#m_btnMessageFilter. = new QToolButtoncxx . . $ QToolButton#QToolButton(108f35f7aa7f3cf9).(this); |
| 262 | m_btnMessageFiltercxx . . $ FeedsToolBar#m_btnMessageFilter.->setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(trcxx . . $ FeedsToolBar#tr(75d9f1c324b4579d).("Display all feeds")); |
| 263 | m_btnMessageFiltercxx . . $ FeedsToolBar#m_btnMessageFilter.->setMenucxx . . $ QToolButton#setMenu(cb52c12b49e9b51b).(m_menuMessageFiltercxx . . $ FeedsToolBar#m_menuMessageFilter.); |
| 264 | m_btnMessageFiltercxx . . $ FeedsToolBar#m_btnMessageFilter.->setPopupModecxx . . $ QToolButton#setPopupMode(13f88d37140350cb).(QToolButtoncxx . . $ QToolButton#::ToolButtonPopupModecxx . . $ QToolButton#ToolButtonPopupMode#::InstantPopupcxx . . $ QToolButton#InstantPopup.); |
| 265 | m_btnMessageFiltercxx . . $ FeedsToolBar#m_btnMessageFilter.->setIconcxx . . $ QAbstractButton#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`!("mail-mark-read"))); |
| 266 | m_btnMessageFiltercxx . . $ FeedsToolBar#m_btnMessageFilter.->setDefaultActioncxx . . $ QToolButton#setDefaultAction(92b1e80c0a7f1406).(m_menuMessageFiltercxx . . $ FeedsToolBar#m_menuMessageFilter.->actionscxx . . $ QWidget#actions(6326ecb0baf05155).().constFirstcxx . . $ QList#constFirst(2042464fc1fea03e).()); |
| 267 | |
| 268 | m_actionMessageFiltercxx . . $ FeedsToolBar#m_actionMessageFilter. = new QWidgetActioncxx . . $ QWidgetAction#(this); |
| 269 | m_actionMessageFiltercxx . . $ FeedsToolBar#m_actionMessageFilter.->setDefaultWidgetcxx . . $ QWidgetAction#setDefaultWidget(108f35f7aa7f3cf9).(m_btnMessageFiltercxx . . $ FeedsToolBar#m_btnMessageFilter.); |
| 270 | m_actionMessageFiltercxx . . $ FeedsToolBar#m_actionMessageFilter.->setIconcxx . . $ QAction#setIcon(71dcdac178620ed6).(m_btnMessageFiltercxx . . $ FeedsToolBar#m_btnMessageFilter.->iconcxx . . $ QAbstractButton#icon(952ef71f8967d9eb).()); |
| 271 | m_actionMessageFiltercxx . . $ FeedsToolBar#m_actionMessageFilter.->setPropertycxx . . $ QObject#setProperty(b8a01cfdb0695ee1).("type", FILTER_ACTION_NAMEcxx . . $ `src/librssguard/definitions/definitions.h:89:9`!); |
| 272 | m_actionMessageFiltercxx . . $ FeedsToolBar#m_actionMessageFilter.->setPropertycxx . . $ QObject#setProperty(b8a01cfdb0695ee1).("name", trcxx . . $ QVariant#QVariant(132dd6869045752b).("Feed list filter")); |
| 273 | |
| 274 | connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_menuMessageFiltercxx . . $ FeedsToolBar#m_menuMessageFilter., &QMenucxx . . $ QMenu#::triggeredcxx . . $ QMenu#triggered(92b1e80c0a7f1406)., this, &FeedsToolBarcxx . . $ FeedsToolBar#::handleMessageFilterChangecxx . . $ FeedsToolBar#handleMessageFilterChange(92b1e80c0a7f1406).); |
| 275 | connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(this, &FeedsToolBarcxx . . $ FeedsToolBar#::toolButtonStyleChangedcxx . . $ QToolBar#toolButtonStyleChanged(8088b2ce57f6b5f3)., this, [=](Qtcxx . . $ Qt/::ToolButtonStylecxx . . $ Qt/ToolButtonStyle# style) { |
| 276 | m_btnMessageFiltercxx . . $ FeedsToolBar#m_btnMessageFilter.->setToolButtonStylecxx . . $ QToolButton#setToolButtonStyle(8088b2ce57f6b5f3).(style); |
| 277 | }); |
| 278 | } |