| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #ifndef SETTINGSFEEDSMESSAGES_H |
| 4 | #define SETTINGSFEEDSMESSAGES_H |
| 5 | |
| 6 | #include "gui/messagesview.h" |
| 7 | #include "gui/settings/settingspanel.h" |
| 8 | |
| 9 | #include "ui_settingsfeedsmessages.h" |
| 10 | |
| 11 | class SettingsFeedsMessages : public SettingsPanel { |
| 12 | Q_OBJECT |
| 13 | |
| 14 | public: |
| 15 | explicit SettingsFeedsMessages(Settings* settings, QWidget* parent = nullptr); |
| 16 | virtual ~SettingsFeedsMessages(); |
| 17 | |
| 18 | virtual QIcon icon() const; |
| 19 | virtual QString title() const; |
| 20 | virtual void loadSettings(); |
| 21 | virtual void saveSettings(); |
| 22 | |
| 23 | private slots: |
| 24 | void updateDateTimeTooltip(); |
| 25 | void updateArticleMarkingPolicyDelay(); |
| 26 | |
| 27 | private: |
| 28 | void changeFont(QLabel& lbl); |
| 29 | MessagesView::ArticleMarkingPolicy selectedArticleMarkingPolicy() const; |
| 30 | |
| 31 | private: |
| 32 | void initializeMessageDateFormats(); |
| 33 | |
| 34 | Ui::SettingsFeedsMessages* m_ui; |
| 35 | }; |
| 36 | |
| 37 | inline QString SettingsFeedsMessages::title() const { |
| 38 | return tr("Feeds & articles"); |
| 39 | } |
| 40 | |
| 41 | #endif // SETTINGSFEEDSMESSAGES_H |