From 6951ec6eea8227ae0fe1eeeb65c3a38e71841d10 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 10 Aug 2024 09:38:38 +0200 Subject: Save all settings to file, hide more settings behind advanced view --- include/gui/List.hpp | 3 +++ include/gui/SettingsPage.hpp | 14 ++++++++++++++ 2 files changed, 17 insertions(+) (limited to 'include') diff --git a/include/gui/List.hpp b/include/gui/List.hpp index 426a66e..241a75c 100644 --- a/include/gui/List.hpp +++ b/include/gui/List.hpp @@ -36,6 +36,8 @@ namespace gsr { // Returns nullptr if index is invalid Widget* get_child_widget_by_index(size_t index) const; + void set_spacing(float spacing); + mgl::vec2f get_size() override; private: void update(); @@ -47,5 +49,6 @@ namespace gsr { Orientation orientation; Alignment content_alignment; bool inside_event_handler = false; + float spacing_scale = 0.009f; }; } \ No newline at end of file diff --git a/include/gui/SettingsPage.hpp b/include/gui/SettingsPage.hpp index 28689a1..1b301bf 100644 --- a/include/gui/SettingsPage.hpp +++ b/include/gui/SettingsPage.hpp @@ -76,6 +76,8 @@ namespace gsr { std::unique_ptr create_save_directory(const char *label); std::unique_ptr create_container_box(); std::unique_ptr create_container_section(); + std::unique_ptr create_replay_time_entry(); + std::unique_ptr create_replay_time(); void add_replay_widgets(); void add_record_widgets(); @@ -122,6 +124,18 @@ namespace gsr { List *stream_key_list_ptr = nullptr; List *stream_url_list_ptr = nullptr; List *container_list_ptr = nullptr; + CheckBox *show_replay_started_notification_checkbox_ptr = nullptr; + CheckBox *show_replay_stopped_notification_checkbox_ptr = nullptr; + CheckBox *show_replay_saved_notification_checkbox_ptr = nullptr; + CheckBox *show_recording_started_notification_checkbox_ptr = nullptr; + CheckBox *show_video_saved_notification_checkbox_ptr = nullptr; + CheckBox *show_streaming_started_notification_checkbox_ptr = nullptr; + CheckBox *show_streaming_stopped_notification_checkbox_ptr = nullptr; + Entry *save_directory_entry_ptr = nullptr; + Entry *twitch_stream_key_entry_ptr = nullptr; + Entry *youtube_stream_key_entry_ptr = nullptr; + Entry *stream_url_entry_ptr = nullptr; + Entry *replay_time_entry_ptr = nullptr; mgl::Text settings_title_text; }; -- cgit v1.2.3