aboutsummaryrefslogtreecommitdiff
path: root/include/gui/SettingsPage.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-11-05 00:17:03 +0100
committerdec05eba <dec05eba@protonmail.com>2024-11-05 00:17:03 +0100
commit07a64ffd954b4273bd6afc7fa03b284c3dced640 (patch)
tree5689dc492cec6d009de3b858fd9dfeb326b0c062 /include/gui/SettingsPage.hpp
parent610fca510d4cafd4ed5851109bca6fe17154c578 (diff)
Add replay ram usage estimation
Diffstat (limited to 'include/gui/SettingsPage.hpp')
-rw-r--r--include/gui/SettingsPage.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gui/SettingsPage.hpp b/include/gui/SettingsPage.hpp
index a0bc518..467463f 100644
--- a/include/gui/SettingsPage.hpp
+++ b/include/gui/SettingsPage.hpp
@@ -14,6 +14,7 @@ namespace gsr {
class GsrPage;
class PageStack;
class ScrollablePage;
+ class Label;
class SettingsPage : public StaticPage {
public:
@@ -83,6 +84,8 @@ namespace gsr {
std::unique_ptr<List> create_replay_time();
std::unique_ptr<CheckBox> create_start_replay_on_startup();
std::unique_ptr<CheckBox> create_save_replay_in_game_folder();
+ std::unique_ptr<Label> create_estimated_file_size();
+ void update_estimated_file_size();
std::unique_ptr<CheckBox> create_save_recording_in_game_folder();
void add_replay_widgets();
void add_record_widgets();
@@ -147,6 +150,7 @@ namespace gsr {
List *container_list_ptr = nullptr;
CheckBox *start_replay_automatically_ptr = nullptr;
CheckBox *save_replay_in_game_folder_ptr = nullptr;
+ Label *estimated_file_size_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;