GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
SettingsDialog.h
1 
29 #ifndef __SETTINGSDIALOG_H__
30 #define __SETTINGSDIALOG_H__
31 
32 #include "ui/GpgFrontendUI.h"
33 #include "ui/dialog/GeneralDialog.h"
34 #include "ui/widgets/KeyList.h"
35 
36 namespace GpgFrontend::UI {
37 
38 class GeneralTab;
39 class AppearanceTab;
40 class KeyserverTab;
41 class NetworkTab;
42 
47 class SettingsDialog : public GeneralDialog {
48  Q_OBJECT
49 
50  public:
56  explicit SettingsDialog(QWidget* parent = nullptr);
57 
58  GeneralTab* general_tab_;
59  AppearanceTab* appearance_tab_;
60  KeyserverTab* key_server_tab_;
61  NetworkTab* network_tab_;
62 
68  static QHash<QString, QString> ListLanguages();
69 
70  public slots:
71 
76  void SlotAccept();
77 
78  signals:
79 
86 
87  private:
88  QTabWidget* tab_widget_;
89  QDialogButtonBox* button_box_;
90  int restart_needed_{0};
91 
98  int get_restart_needed() const;
99 
100  private slots:
101 
107  void slot_set_restart_needed(int);
108 };
109 
110 } // namespace GpgFrontend::UI
111 
112 #endif // __SETTINGSDIALOG_H__
Definition: SettingsAppearance.h:38
Definition: GeneralDialog.h:35
Definition: SettingsGeneral.h:43
Definition: SettingsKeyServer.h:41
Definition: SettingsNetwork.h:37
Definition: SettingsDialog.h:47
int get_restart_needed() const
Get the Restart Needed object.
Definition: SettingsDialog.cpp:104
SettingsDialog(QWidget *parent=nullptr)
Construct a new Settings Dialog object.
Definition: SettingsDialog.cpp:42
void slot_set_restart_needed(int)
Definition: SettingsDialog.cpp:106
static QHash< QString, QString > ListLanguages()
Definition: SettingsDialog.cpp:130
Definition: FileReadTask.cpp:31