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
85 void SignalRestartNeeded(int);
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__
GpgFrontend::UI::AppearanceTab
Definition: SettingsAppearance.h:38
GpgFrontend::UI::GeneralDialog
Definition: GeneralDialog.h:35
GpgFrontend::UI::GeneralTab
Definition: SettingsGeneral.h:43
GpgFrontend::UI::KeyserverTab
Definition: SettingsKeyServer.h:41
GpgFrontend::UI::NetworkTab
Definition: SettingsNetwork.h:37
GpgFrontend::UI::SettingsDialog
Definition: SettingsDialog.h:47
GpgFrontend::UI::SettingsDialog::get_restart_needed
int get_restart_needed() const
Get the Restart Needed object.
Definition: SettingsDialog.cpp:104
GpgFrontend::UI::SettingsDialog::SettingsDialog
SettingsDialog(QWidget *parent=nullptr)
Construct a new Settings Dialog object.
Definition: SettingsDialog.cpp:42
GpgFrontend::UI::SettingsDialog::slot_set_restart_needed
void slot_set_restart_needed(int)
Definition: SettingsDialog.cpp:106
GpgFrontend::UI::SettingsDialog::ListLanguages
static QHash< QString, QString > ListLanguages()
Definition: SettingsDialog.cpp:128
GpgFrontend::UI::SettingsDialog::SignalRestartNeeded
void SignalRestartNeeded(int)
GpgFrontend::UI
Definition: FileReadTask.cpp:29