GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
SettingsDialog.h
1 
29 #pragma once
30 
31 #include "ui/dialog/GeneralDialog.h"
32 
33 namespace GpgFrontend::UI {
34 
35 class GeneralTab;
36 class AppearanceTab;
37 class KeyserverTab;
38 class NetworkTab;
39 
44 class SettingsDialog : public GeneralDialog {
45  Q_OBJECT
46 
47  public:
53  explicit SettingsDialog(QWidget* parent = nullptr);
54 
55  GeneralTab* general_tab_;
56  AppearanceTab* appearance_tab_;
57  KeyserverTab* key_server_tab_;
58  NetworkTab* network_tab_;
59 
65  static QHash<QString, QString> ListLanguages();
66 
67  public slots:
68 
73  void SlotAccept();
74 
75  signals:
76 
83 
84  private:
85  QTabWidget* tab_widget_;
86  QDialogButtonBox* button_box_;
87  int restart_needed_{0};
88 
95  int get_restart_needed() const;
96 
97  private slots:
98 
104  void slot_set_restart_needed(int);
105 };
106 
107 } // namespace GpgFrontend::UI
Definition: SettingsAppearance.h:37
Definition: GeneralDialog.h:35
Definition: SettingsGeneral.h:42
Definition: SettingsKeyServer.h:40
Definition: SettingsNetwork.h:38
Definition: SettingsDialog.h:44
SettingsDialog(QWidget *parent=nullptr)
Construct a new Settings Dialog object.
Definition: SettingsDialog.cpp:42
int get_restart_needed() const
Get the Restart Needed object.
Definition: SettingsDialog.cpp:105
static QHash< QString, QString > ListLanguages()
Definition: SettingsDialog.cpp:126
void slot_set_restart_needed(int)
Definition: SettingsDialog.cpp:109
Definition: FileReadTask.cpp:31