Debian Codegraph @

src/librssguard/gui/reusable/articleamountcontrol.cpp

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/gui/reusable/articleamountcontrol.cpp`/
2
3 #include "articleamountcontrol.h"cxx . . $ `<file>/src/librssguard/gui/reusable/articleamountcontrol.h`/
4
5 #include "miscellaneous/application.h"cxx . . $ `<file>/src/librssguard/miscellaneous/application.h`/
6
7 ArticleAmountControlcxx . . $ ArticleAmountControl#::ArticleAmountControlcxx . . $ ArticleAmountControl#ArticleAmountControl(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent) : QWidgetcxx . . $ QWidget#QWidget(872e7b0c281abd8d).(parent) {
8 m_uicxx . . $ ArticleAmountControl#m_ui..setupUicxx . . $ Ui_ArticleAmountControl#setupUi(108f35f7aa7f3cf9).(this);
9
10 m_uicxx . . $ ArticleAmountControl#m_ui..m_helpIgnoringcxx . . $ Ui_ArticleAmountControl#m_helpIgnoring.
11 ->setHelpTextcxx . . $ HelpSpoiler#setHelpText(5f6801bd00533ebd).(trcxx . . $ ArticleAmountControl#tr(75d9f1c324b4579d).("Setting any limitations here will instruct %1 to ignore "
12 "some incoming articles. The logic runs AFTER any article filters so even if your article filter "
13 "accepts particular article, it can still subsequently ignored and not added to database.")
14 .argcxx . . $ QString#arg(ad0bca07273edcc2).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(APP_NAMEcxx . . $ `<built-in>:487:9`!)),
15 false);
16 m_uicxx . . $ ArticleAmountControl#m_ui..m_helpLimitcxx . . $ Ui_ArticleAmountControl#m_helpLimit.->setHelpTextcxx . . $ HelpSpoiler#setHelpText(5f6801bd00533ebd).(trcxx . . $ ArticleAmountControl#tr(75d9f1c324b4579d).("All excessive articles are removed automatically by the application, usually after "
17 "particular feed is fetched. Articles are either completely purged (including "
18 "articles from recycle bin) from internal "
19 "database or are just moved to recycle bin."),
20 false);
21
22 m_uicxx . . $ ArticleAmountControl#m_ui..m_spinArticleCountcxx . . $ Ui_ArticleAmountControl#m_spinArticleCount.->setSpecialValueTextcxx . . $ QAbstractSpinBox#setSpecialValueText(3520e46b33348bf6).(trcxx . . $ ArticleAmountControl#tr(75d9f1c324b4579d).("all articles"));
23 m_uicxx . . $ ArticleAmountControl#m_ui..m_cbArticleLimittingCustomizecxx . . $ Ui_ArticleAmountControl#m_cbArticleLimittingCustomize.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true);
24 m_uicxx . . $ ArticleAmountControl#m_ui..m_dtDateTimeToAvoidcxx . . $ Ui_ArticleAmountControl#m_dtDateTimeToAvoid.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false);
25 m_uicxx . . $ ArticleAmountControl#m_ui..m_spinHoursAvoidcxx . . $ Ui_ArticleAmountControl#m_spinHoursAvoid.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false);
26 m_uicxx . . $ ArticleAmountControl#m_ui..m_spinHoursAvoidcxx . . $ Ui_ArticleAmountControl#m_spinHoursAvoid.->setModecxx . . $ TimeSpinBox#setMode(392a4df3fd7b235e).(TimeSpinBoxcxx . . $ TimeSpinBox#::Modecxx . . $ TimeSpinBox#Mode#::DaysHourscxx . . $ TimeSpinBox#Mode#DaysHours.);
27 m_uicxx . . $ ArticleAmountControl#m_ui..m_dtDateTimeToAvoidcxx . . $ Ui_ArticleAmountControl#m_dtDateTimeToAvoid.
28 ->setDisplayFormatcxx . . $ QDateTimeEdit#setDisplayFormat(3520e46b33348bf6).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->localizationcxx . . $ Application#localization(c0674a442c333122).()->loadedLocalecxx . . $ Localization#loadedLocale(a49c665025854758).().dateTimeFormatcxx . . $ QLocale#dateTimeFormat(d669fe637b82c0d4).(QLocalecxx . . $ QLocale#::FormatTypecxx . . $ QLocale#FormatType#::ShortFormatcxx . . $ QLocale#ShortFormat.));
29
30 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ ArticleAmountControl#m_ui..m_cbAddAnyDateArticlescxx . . $ Ui_ArticleAmountControl#m_cbAddAnyDateArticles., &QCheckBoxcxx . . $ QCheckBox#::toggledcxx . . $ QAbstractButton#toggled(b45ddcbc8423892c)., this, [this](bool checked) {
31 m_uicxx . . $ ArticleAmountControl#m_ui..m_gbAvoidOldArticlescxx . . $ Ui_ArticleAmountControl#m_gbAvoidOldArticles.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!checked);
32 });
33
34 // Ignoring articles.
35 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ ArticleAmountControl#m_ui..m_cbAddAnyDateArticlescxx . . $ Ui_ArticleAmountControl#m_cbAddAnyDateArticles., &QCheckBoxcxx . . $ QCheckBox#::toggledcxx . . $ QAbstractButton#toggled(b45ddcbc8423892c)., this, &ArticleAmountControlcxx . . $ ArticleAmountControl#::changedcxx . . $ ArticleAmountControl#changed(49f6e7a06ebc5aa8).);
36 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ ArticleAmountControl#m_ui..m_gbAvoidOldArticlescxx . . $ Ui_ArticleAmountControl#m_gbAvoidOldArticles., &QGroupBoxcxx . . $ QGroupBox#::toggledcxx . . $ QGroupBox#toggled(b45ddcbc8423892c)., this, &ArticleAmountControlcxx . . $ ArticleAmountControl#::changedcxx . . $ ArticleAmountControl#changed(49f6e7a06ebc5aa8).);
37 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ ArticleAmountControl#m_ui..m_dtDateTimeToAvoidcxx . . $ Ui_ArticleAmountControl#m_dtDateTimeToAvoid., &QDateTimeEditcxx . . $ QDateTimeEdit#::dateTimeChangedcxx . . $ QDateTimeEdit#dateTimeChanged(3672ecc950120406)., this, &ArticleAmountControlcxx . . $ ArticleAmountControl#::changedcxx . . $ ArticleAmountControl#changed(49f6e7a06ebc5aa8).);
38 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ ArticleAmountControl#m_ui..m_spinHoursAvoidcxx . . $ Ui_ArticleAmountControl#m_spinHoursAvoid.,
39 QOverloadcxx . . $ QOverload#<double>::ofcxx . . $ QOverload#of(2f153731d35827b4).(&TimeSpinBoxcxx . . $ TimeSpinBox#::valueChangedcxx . . $ QDoubleSpinBox#valueChanged(ba8836b59fb42830).),
40 this,
41 &ArticleAmountControlcxx . . $ ArticleAmountControl#::changedcxx . . $ ArticleAmountControl#changed(49f6e7a06ebc5aa8).);
42 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ ArticleAmountControl#m_ui..m_rbAvoidAbsolutecxx . . $ Ui_ArticleAmountControl#m_rbAvoidAbsolute., &QRadioButtoncxx . . $ QRadioButton#::toggledcxx . . $ QAbstractButton#toggled(b45ddcbc8423892c)., this, &ArticleAmountControlcxx . . $ ArticleAmountControl#::changedcxx . . $ ArticleAmountControl#changed(49f6e7a06ebc5aa8).);
43 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ ArticleAmountControl#m_ui..m_rbAvoidRelativecxx . . $ Ui_ArticleAmountControl#m_rbAvoidRelative., &QRadioButtoncxx . . $ QRadioButton#::toggledcxx . . $ QAbstractButton#toggled(b45ddcbc8423892c)., this, &ArticleAmountControlcxx . . $ ArticleAmountControl#::changedcxx . . $ ArticleAmountControl#changed(49f6e7a06ebc5aa8).);
44
45 // Limitting articles.
46 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ ArticleAmountControl#m_ui..m_spinArticleCountcxx . . $ Ui_ArticleAmountControl#m_spinArticleCount.,
47 QOverloadcxx . . $ QOverload#<int>::ofcxx . . $ QOverload#of(adaf930115d2ed26).(&QSpinBoxcxx . . $ QSpinBox#::valueChangedcxx . . $ QSpinBox#valueChanged(d4f767463ce0a6b3).),
48 this,
49 &ArticleAmountControlcxx . . $ ArticleAmountControl#::updateArticleCountSuffixcxx . . $ ArticleAmountControl#updateArticleCountSuffix(d4f767463ce0a6b3).);
50 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ ArticleAmountControl#m_ui..m_cbArticleLimittingCustomizecxx . . $ Ui_ArticleAmountControl#m_cbArticleLimittingCustomize., &QCheckBoxcxx . . $ QCheckBox#::toggledcxx . . $ QAbstractButton#toggled(b45ddcbc8423892c)., this, &ArticleAmountControlcxx . . $ ArticleAmountControl#::changedcxx . . $ ArticleAmountControl#changed(49f6e7a06ebc5aa8).);
51 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ ArticleAmountControl#m_ui..m_spinArticleCountcxx . . $ Ui_ArticleAmountControl#m_spinArticleCount., QOverloadcxx . . $ QOverload#<int>::ofcxx . . $ QOverload#of(adaf930115d2ed26).(&QSpinBoxcxx . . $ QSpinBox#::valueChangedcxx . . $ QSpinBox#valueChanged(d4f767463ce0a6b3).), this, &ArticleAmountControlcxx . . $ ArticleAmountControl#::changedcxx . . $ ArticleAmountControl#changed(49f6e7a06ebc5aa8).);
52 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ ArticleAmountControl#m_ui..m_cbMoveToBinNoPurgecxx . . $ Ui_ArticleAmountControl#m_cbMoveToBinNoPurge., &QCheckBoxcxx . . $ QCheckBox#::toggledcxx . . $ QAbstractButton#toggled(b45ddcbc8423892c)., this, &ArticleAmountControlcxx . . $ ArticleAmountControl#::changedcxx . . $ ArticleAmountControl#changed(49f6e7a06ebc5aa8).);
53 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ ArticleAmountControl#m_ui..m_cbNoRemoveImportantcxx . . $ Ui_ArticleAmountControl#m_cbNoRemoveImportant., &QCheckBoxcxx . . $ QCheckBox#::toggledcxx . . $ QAbstractButton#toggled(b45ddcbc8423892c)., this, &ArticleAmountControlcxx . . $ ArticleAmountControl#::changedcxx . . $ ArticleAmountControl#changed(49f6e7a06ebc5aa8).);
54 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ ArticleAmountControl#m_ui..m_cbNoRemoveUnreadcxx . . $ Ui_ArticleAmountControl#m_cbNoRemoveUnread., &QCheckBoxcxx . . $ QCheckBox#::toggledcxx . . $ QAbstractButton#toggled(b45ddcbc8423892c)., this, &ArticleAmountControlcxx . . $ ArticleAmountControl#::changedcxx . . $ ArticleAmountControl#changed(49f6e7a06ebc5aa8).);
55 }
56
57 void ArticleAmountControlcxx . . $ ArticleAmountControl#::setForAppWideFeaturescxx . . $ ArticleAmountControl#setForAppWideFeatures(b0b38cda41d4ede4).(bool app_wide, bool batch_edit) {
58 if (app_wide) {
59 m_uicxx . . $ ArticleAmountControl#m_ui..m_cbAddAnyDateArticlescxx . . $ Ui_ArticleAmountControl#m_cbAddAnyDateArticles.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false);
60 m_uicxx . . $ ArticleAmountControl#m_ui..m_cbArticleLimittingCustomizecxx . . $ Ui_ArticleAmountControl#m_cbArticleLimittingCustomize.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false);
61 }
62 else {
63 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ ArticleAmountControl#m_ui..m_cbAddAnyDateArticlescxx . . $ Ui_ArticleAmountControl#m_cbAddAnyDateArticles., &QCheckBoxcxx . . $ QCheckBox#::toggledcxx . . $ QAbstractButton#toggled(b45ddcbc8423892c)., m_uicxx . . $ ArticleAmountControl#m_ui..m_wdgAvoidOldArticlescxx . . $ Ui_ArticleAmountControl#m_wdgAvoidOldArticles., &QGroupBoxcxx . . $ QGroupBox#::setDisabledcxx . . $ QWidget#setDisabled(b45ddcbc8423892c).);
64 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_uicxx . . $ ArticleAmountControl#m_ui..m_cbArticleLimittingCustomizecxx . . $ Ui_ArticleAmountControl#m_cbArticleLimittingCustomize.,
65 &QCheckBoxcxx . . $ QCheckBox#::toggledcxx . . $ QAbstractButton#toggled(b45ddcbc8423892c).,
66 m_uicxx . . $ ArticleAmountControl#m_ui..m_wdgArticleLimittingCustomizecxx . . $ Ui_ArticleAmountControl#m_wdgArticleLimittingCustomize.,
67 &QGroupBoxcxx . . $ QGroupBox#::setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).);
68 }
69
70 if (batch_edit) {
71 // We hook batch selectors.
72 m_uicxx . . $ ArticleAmountControl#m_ui..m_mcbAddAnyDateArticlescxx . . $ Ui_ArticleAmountControl#m_mcbAddAnyDateArticles.->addActionWidgetcxx . . $ MultiFeedEditCheckBox#addActionWidget(108f35f7aa7f3cf9).(m_uicxx . . $ ArticleAmountControl#m_ui..m_cbAddAnyDateArticlescxx . . $ Ui_ArticleAmountControl#m_cbAddAnyDateArticles.);
73 m_uicxx . . $ ArticleAmountControl#m_ui..m_mcbAvoidOldArticlescxx . . $ Ui_ArticleAmountControl#m_mcbAvoidOldArticles.->addActionWidgetcxx . . $ MultiFeedEditCheckBox#addActionWidget(108f35f7aa7f3cf9).(m_uicxx . . $ ArticleAmountControl#m_ui..m_wdgAvoidOldArticlescxx . . $ Ui_ArticleAmountControl#m_wdgAvoidOldArticles.);
74
75 m_uicxx . . $ ArticleAmountControl#m_ui..m_mcbArticleLimittingCustomizecxx . . $ Ui_ArticleAmountControl#m_mcbArticleLimittingCustomize.->addActionWidgetcxx . . $ MultiFeedEditCheckBox#addActionWidget(108f35f7aa7f3cf9).(m_uicxx . . $ ArticleAmountControl#m_ui..m_cbArticleLimittingCustomizecxx . . $ Ui_ArticleAmountControl#m_cbArticleLimittingCustomize.);
76 m_uicxx . . $ ArticleAmountControl#m_ui..m_mcbArticleLimittingSetupcxx . . $ Ui_ArticleAmountControl#m_mcbArticleLimittingSetup.->addActionWidgetcxx . . $ MultiFeedEditCheckBox#addActionWidget(108f35f7aa7f3cf9).(m_uicxx . . $ ArticleAmountControl#m_ui..m_wdgArticleLimittingCustomizecxx . . $ Ui_ArticleAmountControl#m_wdgArticleLimittingCustomize.);
77 }
78 else {
79 // We hide batch selectors.
80 for (auto* cb : findChildrencxx . . $ QObject#findChildren(7208eee5b53db771).<MultiFeedEditCheckBoxcxx . . $ MultiFeedEditCheckBox#*>()) {
81 cb->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).();
82 }
83 }
84 }
85
86 void ArticleAmountControlcxx . . $ ArticleAmountControl#::loadcxx . . $ ArticleAmountControl#load(d64d205b0097a513).(const Feedcxx . . $ Feed#::ArticleIgnoreLimitcxx . . $ Feed#ArticleIgnoreLimit#& setup, bool always_avoid) {
87 // Ignoring articles.
88 if (setup.m_dtToAvoidcxx . . $ Feed#ArticleIgnoreLimit#m_dtToAvoid..isValidcxx . . $ QDateTime#isValid(50ce9a9e25b4a850).() && setup.m_dtToAvoidcxx . . $ Feed#ArticleIgnoreLimit#m_dtToAvoid..toMSecsSinceEpochcxx . . $ QDateTime#toMSecsSinceEpoch(98833e9ab7de59a4).() > 0) {
89 m_uicxx . . $ ArticleAmountControl#m_ui..m_rbAvoidAbsolutecxx . . $ Ui_ArticleAmountControl#m_rbAvoidAbsolute.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true);
90 m_uicxx . . $ ArticleAmountControl#m_ui..m_dtDateTimeToAvoidcxx . . $ Ui_ArticleAmountControl#m_dtDateTimeToAvoid.->setDateTimecxx . . $ QDateTimeEdit#setDateTime(3672ecc950120406).(setup.m_dtToAvoidcxx . . $ Feed#ArticleIgnoreLimit#m_dtToAvoid.);
91 }
92 else if (setup.m_hoursToAvoidcxx . . $ Feed#ArticleIgnoreLimit#m_hoursToAvoid. > 0) {
93 m_uicxx . . $ ArticleAmountControl#m_ui..m_rbAvoidRelativecxx . . $ Ui_ArticleAmountControl#m_rbAvoidRelative.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true);
94 m_uicxx . . $ ArticleAmountControl#m_ui..m_spinHoursAvoidcxx . . $ Ui_ArticleAmountControl#m_spinHoursAvoid.->setValuecxx . . $ QDoubleSpinBox#setValue(ba8836b59fb42830).(setup.m_hoursToAvoidcxx . . $ Feed#ArticleIgnoreLimit#m_hoursToAvoid.);
95 }
96
97 if (always_avoid) {
98 m_uicxx . . $ ArticleAmountControl#m_ui..m_gbAvoidOldArticlescxx . . $ Ui_ArticleAmountControl#m_gbAvoidOldArticles.->setCheckedcxx . . $ QGroupBox#setChecked(b45ddcbc8423892c).(m_uicxx . . $ ArticleAmountControl#m_ui..m_rbAvoidAbsolutecxx . . $ Ui_ArticleAmountControl#m_rbAvoidAbsolute.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).() || m_uicxx . . $ ArticleAmountControl#m_ui..m_rbAvoidRelativecxx . . $ Ui_ArticleAmountControl#m_rbAvoidRelative.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).());
99 }
100 else {
101 m_uicxx . . $ ArticleAmountControl#m_ui..m_gbAvoidOldArticlescxx . . $ Ui_ArticleAmountControl#m_gbAvoidOldArticles.->setCheckedcxx . . $ QGroupBox#setChecked(b45ddcbc8423892c).(setup.m_avoidOldArticlescxx . . $ Feed#ArticleIgnoreLimit#m_avoidOldArticles.);
102 }
103
104 m_uicxx . . $ ArticleAmountControl#m_ui..m_cbAddAnyDateArticlescxx . . $ Ui_ArticleAmountControl#m_cbAddAnyDateArticles.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(setup.m_addAnyArticlesToDbcxx . . $ Feed#ArticleIgnoreLimit#m_addAnyArticlesToDb.);
105
106 // Limitting articles.
107 m_uicxx . . $ ArticleAmountControl#m_ui..m_cbArticleLimittingCustomizecxx . . $ Ui_ArticleAmountControl#m_cbArticleLimittingCustomize.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(setup.m_customizeLimittingcxx . . $ Feed#ArticleIgnoreLimit#m_customizeLimitting.);
108 m_uicxx . . $ ArticleAmountControl#m_ui..m_spinArticleCountcxx . . $ Ui_ArticleAmountControl#m_spinArticleCount.->setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).(setup.m_keepCountOfArticlescxx . . $ Feed#ArticleIgnoreLimit#m_keepCountOfArticles.);
109 m_uicxx . . $ ArticleAmountControl#m_ui..m_cbMoveToBinNoPurgecxx . . $ Ui_ArticleAmountControl#m_cbMoveToBinNoPurge.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(setup.m_moveToBinDontPurgecxx . . $ Feed#ArticleIgnoreLimit#m_moveToBinDontPurge.);
110 m_uicxx . . $ ArticleAmountControl#m_ui..m_cbNoRemoveImportantcxx . . $ Ui_ArticleAmountControl#m_cbNoRemoveImportant.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(setup.m_doNotRemoveStarredcxx . . $ Feed#ArticleIgnoreLimit#m_doNotRemoveStarred.);
111 m_uicxx . . $ ArticleAmountControl#m_ui..m_cbNoRemoveUnreadcxx . . $ Ui_ArticleAmountControl#m_cbNoRemoveUnread.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(setup.m_doNotRemoveUnreadcxx . . $ Feed#ArticleIgnoreLimit#m_doNotRemoveUnread.);
112 }
113
114 Feedcxx . . $ Feed#::ArticleIgnoreLimitcxx . . $ Feed#ArticleIgnoreLimit# ArticleAmountControlcxx . . $ ArticleAmountControl#::savecxx . . $ ArticleAmountControl#save(11c83072d3e48fae).() const {
115 Feedcxx . . $ Feed#::ArticleIgnoreLimitcxx . . $ Feed#ArticleIgnoreLimit# setup;
116
117 // Ignoring articles.
118 setup.m_addAnyArticlesToDbcxx . . $ Feed#ArticleIgnoreLimit#m_addAnyArticlesToDb. = m_uicxx . . $ ArticleAmountControl#m_ui..m_cbAddAnyDateArticlescxx . . $ Ui_ArticleAmountControl#m_cbAddAnyDateArticles.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
119 setup.m_avoidOldArticlescxx . . $ Feed#ArticleIgnoreLimit#m_avoidOldArticles. = m_uicxx . . $ ArticleAmountControl#m_ui..m_gbAvoidOldArticlescxx . . $ Ui_ArticleAmountControl#m_gbAvoidOldArticles.->isCheckedcxx . . $ QGroupBox#isChecked(50ce9a9e25b4a850).();
120
121 if (m_uicxx . . $ ArticleAmountControl#m_ui..m_rbAvoidAbsolutecxx . . $ Ui_ArticleAmountControl#m_rbAvoidAbsolute.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) {
122 setup.m_dtToAvoidcxx . . $ Feed#ArticleIgnoreLimit#m_dtToAvoid. =cxx . . $ QDateTime#`operator=`(6dbf9ff24243cdf2). m_uicxx . . $ ArticleAmountControl#m_ui..m_dtDateTimeToAvoidcxx . . $ Ui_ArticleAmountControl#m_dtDateTimeToAvoid.->dateTimecxx . . $ QDateTimeEdit#dateTime(4e062b5c490497ac).();
123 }
124 else if (m_uicxx . . $ ArticleAmountControl#m_ui..m_rbAvoidRelativecxx . . $ Ui_ArticleAmountControl#m_rbAvoidRelative.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) {
125 setup.m_hoursToAvoidcxx . . $ Feed#ArticleIgnoreLimit#m_hoursToAvoid. = int(m_uicxx . . $ ArticleAmountControl#m_ui..m_spinHoursAvoidcxx . . $ Ui_ArticleAmountControl#m_spinHoursAvoid.->valuecxx . . $ QDoubleSpinBox#value(21b6c25e127938e2).());
126 }
127
128 // Limitting articles.
129 setup.m_customizeLimittingcxx . . $ Feed#ArticleIgnoreLimit#m_customizeLimitting. = m_uicxx . . $ ArticleAmountControl#m_ui..m_cbArticleLimittingCustomizecxx . . $ Ui_ArticleAmountControl#m_cbArticleLimittingCustomize.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
130 setup.m_keepCountOfArticlescxx . . $ Feed#ArticleIgnoreLimit#m_keepCountOfArticles. = m_uicxx . . $ ArticleAmountControl#m_ui..m_spinArticleCountcxx . . $ Ui_ArticleAmountControl#m_spinArticleCount.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).();
131 setup.m_moveToBinDontPurgecxx . . $ Feed#ArticleIgnoreLimit#m_moveToBinDontPurge. = m_uicxx . . $ ArticleAmountControl#m_ui..m_cbMoveToBinNoPurgecxx . . $ Ui_ArticleAmountControl#m_cbMoveToBinNoPurge.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
132 setup.m_doNotRemoveStarredcxx . . $ Feed#ArticleIgnoreLimit#m_doNotRemoveStarred. = m_uicxx . . $ ArticleAmountControl#m_ui..m_cbNoRemoveImportantcxx . . $ Ui_ArticleAmountControl#m_cbNoRemoveImportant.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
133 setup.m_doNotRemoveUnreadcxx . . $ Feed#ArticleIgnoreLimit#m_doNotRemoveUnread. = m_uicxx . . $ ArticleAmountControl#m_ui..m_cbNoRemoveUnreadcxx . . $ Ui_ArticleAmountControl#m_cbNoRemoveUnread.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
134
135 return setup;
136 }
137
138 bool isChangeAllowedcxx . . $ isChangeAllowed(eccc595ccbea1351).(MultiFeedEditCheckBoxcxx . . $ MultiFeedEditCheckBox#* mcb, bool batch_edit) {
139 return !batch_edit || mcb->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
140 }
141
142 void ArticleAmountControlcxx . . $ ArticleAmountControl#::saveFeedcxx . . $ ArticleAmountControl#saveFeed(be755c91018db09).(Feedcxx . . $ Feed#* fd, bool batch_edit) const {
143 Feedcxx . . $ Feed#::ArticleIgnoreLimitcxx . . $ Feed#ArticleIgnoreLimit#& art = fd->articleIgnoreLimitcxx . . $ Feed#articleIgnoreLimit(a6099ccba00faa1d).();
144
145 if (isChangeAllowedcxx . . $ isChangeAllowed(eccc595ccbea1351).(m_uicxx . . $ ArticleAmountControl#m_ui..m_mcbAddAnyDateArticlescxx . . $ Ui_ArticleAmountControl#m_mcbAddAnyDateArticles., batch_edit)) {
146 art.m_addAnyArticlesToDbcxx . . $ Feed#ArticleIgnoreLimit#m_addAnyArticlesToDb. = m_uicxx . . $ ArticleAmountControl#m_ui..m_cbAddAnyDateArticlescxx . . $ Ui_ArticleAmountControl#m_cbAddAnyDateArticles.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
147 }
148
149 if (isChangeAllowedcxx . . $ isChangeAllowed(eccc595ccbea1351).(m_uicxx . . $ ArticleAmountControl#m_ui..m_mcbAvoidOldArticlescxx . . $ Ui_ArticleAmountControl#m_mcbAvoidOldArticles., batch_edit)) {
150 if (m_uicxx . . $ ArticleAmountControl#m_ui..m_gbAvoidOldArticlescxx . . $ Ui_ArticleAmountControl#m_gbAvoidOldArticles.->isCheckedcxx . . $ QGroupBox#isChecked(50ce9a9e25b4a850).()) {
151 if (m_uicxx . . $ ArticleAmountControl#m_ui..m_rbAvoidAbsolutecxx . . $ Ui_ArticleAmountControl#m_rbAvoidAbsolute.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) {
152 art.m_dtToAvoidcxx . . $ Feed#ArticleIgnoreLimit#m_dtToAvoid. =cxx . . $ QDateTime#`operator=`(6dbf9ff24243cdf2). m_uicxx . . $ ArticleAmountControl#m_ui..m_dtDateTimeToAvoidcxx . . $ Ui_ArticleAmountControl#m_dtDateTimeToAvoid.->dateTimecxx . . $ QDateTimeEdit#dateTime(4e062b5c490497ac).();
153 art.m_hoursToAvoidcxx . . $ Feed#ArticleIgnoreLimit#m_hoursToAvoid. = 0;
154 }
155 else {
156 art.m_dtToAvoidcxx . . $ Feed#ArticleIgnoreLimit#m_dtToAvoid. =cxx . . $ QDateTime#`operator=`(6dbf9ff24243cdf2). {cxx . . $ QDateTime#QDateTime(ced63f7c635d850d).};
157 art.m_hoursToAvoidcxx . . $ Feed#ArticleIgnoreLimit#m_hoursToAvoid. = m_uicxx . . $ ArticleAmountControl#m_ui..m_spinHoursAvoidcxx . . $ Ui_ArticleAmountControl#m_spinHoursAvoid.->valuecxx . . $ QDoubleSpinBox#value(21b6c25e127938e2).();
158 }
159 }
160 else {
161 art.m_dtToAvoidcxx . . $ Feed#ArticleIgnoreLimit#m_dtToAvoid. =cxx . . $ QDateTime#`operator=`(6dbf9ff24243cdf2). {cxx . . $ QDateTime#QDateTime(ced63f7c635d850d).};
162 art.m_hoursToAvoidcxx . . $ Feed#ArticleIgnoreLimit#m_hoursToAvoid. = 0;
163 }
164 }
165
166 if (isChangeAllowedcxx . . $ isChangeAllowed(eccc595ccbea1351).(m_uicxx . . $ ArticleAmountControl#m_ui..m_mcbArticleLimittingCustomizecxx . . $ Ui_ArticleAmountControl#m_mcbArticleLimittingCustomize., batch_edit)) {
167 art.m_customizeLimittingcxx . . $ Feed#ArticleIgnoreLimit#m_customizeLimitting. = m_uicxx . . $ ArticleAmountControl#m_ui..m_cbArticleLimittingCustomizecxx . . $ Ui_ArticleAmountControl#m_cbArticleLimittingCustomize.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
168 }
169
170 if (isChangeAllowedcxx . . $ isChangeAllowed(eccc595ccbea1351).(m_uicxx . . $ ArticleAmountControl#m_ui..m_mcbArticleLimittingSetupcxx . . $ Ui_ArticleAmountControl#m_mcbArticleLimittingSetup., batch_edit)) {
171 art.m_keepCountOfArticlescxx . . $ Feed#ArticleIgnoreLimit#m_keepCountOfArticles. = m_uicxx . . $ ArticleAmountControl#m_ui..m_spinArticleCountcxx . . $ Ui_ArticleAmountControl#m_spinArticleCount.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).();
172 art.m_doNotRemoveStarredcxx . . $ Feed#ArticleIgnoreLimit#m_doNotRemoveStarred. = m_uicxx . . $ ArticleAmountControl#m_ui..m_cbNoRemoveImportantcxx . . $ Ui_ArticleAmountControl#m_cbNoRemoveImportant.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
173 art.m_doNotRemoveUnreadcxx . . $ Feed#ArticleIgnoreLimit#m_doNotRemoveUnread. = m_uicxx . . $ ArticleAmountControl#m_ui..m_cbNoRemoveUnreadcxx . . $ Ui_ArticleAmountControl#m_cbNoRemoveUnread.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
174 art.m_moveToBinDontPurgecxx . . $ Feed#ArticleIgnoreLimit#m_moveToBinDontPurge. = m_uicxx . . $ ArticleAmountControl#m_ui..m_cbMoveToBinNoPurgecxx . . $ Ui_ArticleAmountControl#m_cbMoveToBinNoPurge.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
175 }
176 }
177
178 void ArticleAmountControlcxx . . $ ArticleAmountControl#::updateArticleCountSuffixcxx . . $ ArticleAmountControl#updateArticleCountSuffix(d4f767463ce0a6b3).(int count) {
179 m_uicxx . . $ ArticleAmountControl#m_ui..m_spinArticleCountcxx . . $ Ui_ArticleAmountControl#m_spinArticleCount.->setSuffixcxx . . $ QSpinBox#setSuffix(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(" ") +cxx . . $ operator+(adfbdceb504720ce). trcxx . . $ ArticleAmountControl#tr(75d9f1c324b4579d).("newest article(s)", nullptr, count));
180 }