comparison include/gui/dialog/settings.h @ 116:254b1d2b7096

settings: add torrents page, make rss feed configurable
author Paper <mrpapersonic@gmail.com>
date Tue, 07 Nov 2023 13:52:13 -0500
parents 2004b41d4a59
children 4eae379cb1ff
comparison
equal deleted inserted replaced
115:c72b907b9bef 116:254b1d2b7096
1 #ifndef __gui__dialog__settings_h 1 #ifndef __gui__dialog__settings_h
2 #define __gui__dialog__settings_h 2 #define __gui__dialog__settings_h
3 3
4 #include "core/anime.h" 4 #include "core/anime.h"
5 #include "core/config.h" 5 #include "core/config.h"
6 #include "core/session.h"
6 #include <QDialog> 7 #include <QDialog>
7 #include <QWidget> 8 #include <QWidget>
8 #include <QLocale> 9 #include <QLocale>
9 10
10 class QLabel; 11 class QLabel;
56 bool display_available_episodes; 57 bool display_available_episodes;
57 bool highlight_anime_if_available; 58 bool highlight_anime_if_available;
58 bool highlighted_anime_above_others; 59 bool highlighted_anime_above_others;
59 }; 60 };
60 61
62 class SettingsPageTorrents final : public SettingsPage {
63 Q_OBJECT
64
65 public:
66 SettingsPageTorrents(QWidget* parent = nullptr);
67 void SaveInfo() override;
68
69 private:
70 QWidget* CreateGeneralWidget();
71 decltype(session.config.torrents.feed_link) feed_link;
72 };
73
61 class SettingsDialog final : public QDialog { 74 class SettingsDialog final : public QDialog {
62 Q_OBJECT 75 Q_OBJECT
63 76
64 public: 77 public:
65 SettingsDialog(QWidget* parent = nullptr); 78 SettingsDialog(QWidget* parent = nullptr);