blob: cd4a50ce944d0ad837e844f7120b4a21dedc9ebc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#pragma once
#include "StaticPage.hpp"
#include "../GsrInfo.hpp"
#include "../Config.hpp"
namespace gsr {
class GsrPage;
class PageStack;
class ScrollablePage;
class Subsection;
class RadioButton;
class GlobalSettingsPage : public StaticPage {
public:
GlobalSettingsPage(const GsrInfo *gsr_info, Config &config, PageStack *page_stack);
GlobalSettingsPage(const GlobalSettingsPage&) = delete;
GlobalSettingsPage& operator=(const GlobalSettingsPage&) = delete;
void load();
void save();
void on_navigate_away_from_page() override;
private:
std::unique_ptr<Subsection> create_appearance_subsection(ScrollablePage *parent_page);
void add_widgets();
private:
Config &config;
const GsrInfo *gsr_info = nullptr;
GsrPage *content_page_ptr = nullptr;
PageStack *page_stack = nullptr;
RadioButton *tint_color_radio_button_ptr = nullptr;
};
}
|