Mercurial > minori
diff src/include/settings.h @ 7:07a9095eaeed
Update
Refactored some code, moved some around
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 24 Aug 2023 23:11:38 -0400 |
parents | 1d82f6e04d7d |
children |
line wrap: on
line diff
--- a/src/include/settings.h Wed Aug 16 00:49:17 2023 -0400 +++ b/src/include/settings.h Thu Aug 24 23:11:38 2023 -0400 @@ -8,6 +8,7 @@ #include <QComboBox> #include <QHBoxLayout> #include "sidebar.h" +#include "anime.h" class SettingsPage : public QWidget { Q_OBJECT @@ -30,8 +31,8 @@ private: QWidget* CreateMainPage(); QWidget* CreateAniListPage(); - QLineEdit* username_entry; - QComboBox* sync_combo_box; + QString username; + enum AnimeListServices service; }; class SettingsPageApplication : public SettingsPage { @@ -40,7 +41,12 @@ void SaveInfo() override; private: - QWidget* CreateAnimeListPage(); + QWidget* CreateAnimeListWidget(); + enum AnimeTitleLanguage language; + bool display_aired_episodes; + bool display_available_episodes; + bool highlight_anime_if_available; + bool highlighted_anime_above_others; }; class SettingsDialog : public QDialog { @@ -49,11 +55,9 @@ public: SettingsDialog(QWidget* parent = nullptr); QWidget* CreateServicesMainPage(QWidget* parent); - void OnSidebar(QListWidgetItem* item); void OnOK(); private: - std::vector<SettingsPage*> pages; QHBoxLayout* layout; SideBar* sidebar; };