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/widgets/KeyList.h"
34
35namespace GpgFrontend::UI {
36
37class GeneralTab;
38class AppearanceTab;
39class KeyserverTab;
40class NetworkTab;
41
46class SettingsDialog : public QDialog {
47 Q_OBJECT
48
49 public:
55 explicit SettingsDialog(QWidget* parent = nullptr);
56
57 GeneralTab* general_tab_;
58 AppearanceTab* appearance_tab_;
59 KeyserverTab* key_server_tab_;
60 NetworkTab* network_tab_;
61
67 static QHash<QString, QString> ListLanguages();
68
69 public slots:
70
75 void SlotAccept();
76
77 signals:
78
84 void SignalRestartNeeded(bool needed);
85
86 private:
87 QTabWidget* tab_widget_;
88 QDialogButtonBox* button_box_;
89 bool restart_needed_{};
90
97 bool get_restart_needed() const;
98
99 private slots:
100
106 void slot_set_restart_needed(bool needed);
107};
108
109} // namespace GpgFrontend::UI
110
111#endif // __SETTINGSDIALOG_H__
Definition: SettingsAppearance.h:36
Definition: SettingsGeneral.h:43
Definition: SettingsKeyServer.h:41
Definition: SettingsNetwork.h:37
Definition: SettingsDialog.h:46
SettingsDialog(QWidget *parent=nullptr)
Construct a new Settings Dialog object.
Definition: SettingsDialog.cpp:41
void slot_set_restart_needed(bool needed)
Definition: SettingsDialog.cpp:83
bool get_restart_needed() const
Get the Restart Needed object.
Definition: SettingsDialog.cpp:79
void SignalRestartNeeded(bool needed)
static QHash< QString, QString > ListLanguages()
Definition: SettingsDialog.cpp:107
Definition: VerifyDetailsDialog.cpp:33