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_mode_{kNonRestartCode};
88 
89  private slots:
90 
95  void slot_declare_a_restart();
96 
101  void slot_declare_a_deep_restart();
102 };
103 
104 } // 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:41
static QHash< QString, QString > ListLanguages()
Definition: SettingsDialog.cpp:122
Definition: FileReadTask.cpp:31