diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-10 00:45:36 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-10 00:45:36 +0200 |
commit | 4ea5ada9050d22fcb7eed67a72358bce11c9b3df (patch) | |
tree | ad5f1e5956d972ad7c6948d4ba2f753d47a4b315 /include/SettingsPage.hpp | |
parent | 1a49f86e9841035fe670f6b42a3c988f737267d2 (diff) |
Settings page save settings, refactor
Diffstat (limited to 'include/SettingsPage.hpp')
-rw-r--r-- | include/SettingsPage.hpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/include/SettingsPage.hpp b/include/SettingsPage.hpp deleted file mode 100644 index aec7bed..0000000 --- a/include/SettingsPage.hpp +++ /dev/null @@ -1,37 +0,0 @@ -#pragma once - -#include "gui/StaticPage.hpp" -#include "GsrInfo.hpp" - -#include <functional> - -namespace gsr { - class ScrollablePage; - class List; - - class SettingsPage { - public: - enum class Type { - REPLAY, - RECORD, - STREAM - }; - - SettingsPage(Type type, const GsrInfo &gsr_info, const std::vector<AudioDevice> &audio_devices, std::function<void()> back_button_callback); - SettingsPage(const SettingsPage&) = delete; - SettingsPage& operator=(const SettingsPage&) = delete; - - Page& get_page(); - private: - void add_widgets(const gsr::GsrInfo &gsr_info, const std::vector<gsr::AudioDevice> &audio_devices, std::function<void()> back_button_callback); - void add_page_specific_widgets(); - void add_replay_widgets(); - void add_record_widgets(); - void add_stream_widgets(); - private: - StaticPage page; - ScrollablePage *content_page_ptr = nullptr; - List *settings_list_ptr = nullptr; - Type type; - }; -}
\ No newline at end of file |