GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
SettingsAppearance.h
1 
29 #ifndef GPGFRONTEND_SETTINGSAPPEARANCE_H
30 #define GPGFRONTEND_SETTINGSAPPEARANCE_H
31 
32 #include "ui/GpgFrontendUI.h"
33 
34 class Ui_AppearanceSettings;
35 
36 namespace GpgFrontend::UI {
37 
38 class AppearanceTab : public QWidget {
39  Q_OBJECT
40 
41  public:
47  explicit AppearanceTab(QWidget* parent = nullptr);
48 
53  void SetSettings();
54 
59  void ApplySettings();
60 
61  private:
62  std::shared_ptr<Ui_AppearanceSettings> ui_;
63 
64  QButtonGroup* icon_style_group_;
65  QButtonGroup* icon_size_group_;
66 
67  signals:
68 
74  void signalRestartNeeded(bool needed);
75 };
76 
77 } // namespace GpgFrontend::UI
78 
79 #endif // GPGFRONTEND_SETTINGSAPPEARANCE_H
GpgFrontend::UI
Definition: FileReadTask.cpp:31
GpgFrontend::UI::AppearanceTab::SetSettings
void SetSettings()
Set the Settings object.
Definition: SettingsAppearance.cpp:75
GpgFrontend::UI::AppearanceTab
Definition: SettingsAppearance.h:38
GpgFrontend::UI::AppearanceTab::AppearanceTab
AppearanceTab(QWidget *parent=nullptr)
Construct a new Appearance Tab object.
Definition: SettingsAppearance.cpp:37
GpgFrontend::UI::SettingsObject::Check
nlohmann::json & Check(const std::string &key, const nlohmann::json &default_value)
Definition: SettingsObject.cpp:31
GpgFrontend::UI::SettingsObject
The SettingsObject class This class is used to store settings for the application securely.
Definition: SettingsObject.h:43
GpgFrontend::UI::AppearanceTab::signalRestartNeeded
void signalRestartNeeded(bool needed)