aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-10 09:38:38 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-10 09:38:38 +0200
commit6951ec6eea8227ae0fe1eeeb65c3a38e71841d10 (patch)
tree4696262eb2ad5a176c2fc8266e3f7cbb754af4e7 /include
parentb686271ee95b30cef7bf8b7dec3c44d3bb649115 (diff)
Save all settings to file, hide more settings behind advanced view
Diffstat (limited to 'include')
-rw-r--r--include/gui/List.hpp3
-rw-r--r--include/gui/SettingsPage.hpp14
2 files changed, 17 insertions, 0 deletions
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<List> create_save_directory(const char *label);
std::unique_ptr<ComboBox> create_container_box();
std::unique_ptr<List> create_container_section();
+ std::unique_ptr<Entry> create_replay_time_entry();
+ std::unique_ptr<List> 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;
};