comparison include/gui/dialog/settings.h @ 226:f784b5b1914c

settings: add library page
author Paper <mrpapersonic@gmail.com>
date Mon, 08 Jan 2024 21:23:00 -0500
parents 975a3f0965e2
children ff0061e75f0f
comparison
equal deleted inserted replaced
225:56ea2bdc6724 226:f784b5b1914c
84 QWidget* CreatePlayersWidget(); 84 QWidget* CreatePlayersWidget();
85 decltype(session.config.recognition.detect_media_players) detect_media_players; 85 decltype(session.config.recognition.detect_media_players) detect_media_players;
86 decltype(session.config.recognition.players) players; 86 decltype(session.config.recognition.players) players;
87 }; 87 };
88 88
89 class SettingsPageLibrary final : public SettingsPage {
90 Q_OBJECT
91
92 public:
93 SettingsPageLibrary(QWidget* parent = nullptr);
94 void SaveInfo() override;
95
96 private:
97 QWidget* CreateFoldersWidget();
98 decltype(session.config.library.paths) paths;
99 decltype(session.config.library.real_time_monitor) real_time_monitor;
100 };
101
89 class SettingsDialog final : public QDialog { 102 class SettingsDialog final : public QDialog {
90 Q_OBJECT 103 Q_OBJECT
91 104
92 public: 105 public:
93 SettingsDialog(QWidget* parent = nullptr); 106 SettingsDialog(QWidget* parent = nullptr);