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 
35 namespace GpgFrontend::UI {
36 
37 class GeneralTab;
38 class AppearanceTab;
39 class KeyserverTab;
40 class NetworkTab;
41 
46 class 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__
GpgFrontend::UI
Definition: VerifyDetailsDialog.cpp:33
GpgFrontend::UI::NetworkTab
Definition: SettingsNetwork.h:37
GpgFrontend::UI::SettingsDialog::get_restart_needed
bool get_restart_needed() const
Get the Restart Needed object.
Definition: SettingsDialog.cpp:79
GpgFrontend::GlobalSettingStation::SyncSettings
void SyncSettings() noexcept
sync the settings to the file
Definition: GlobalSettingStation.cpp:33
GpgFrontend::SingletonFunctionObject< GlobalSettingStation >::GetInstance
static GlobalSettingStation & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:57
GpgFrontend::UI::SettingsDialog::slot_set_restart_needed
void slot_set_restart_needed(bool needed)
Definition: SettingsDialog.cpp:83
GpgFrontend::UI::KeyserverTab
Definition: SettingsKeyServer.h:41
GpgFrontend::UI::AppearanceTab
Definition: SettingsAppearance.h:36
GpgFrontend::UI::GeneralTab
Definition: SettingsGeneral.h:43
GpgFrontend::GlobalSettingStation::GetLocaleDir
std::filesystem::path GetLocaleDir() const
Get the Locale Dir object.
Definition: GlobalSettingStation.h:121
GpgFrontend::UI::SettingsDialog
Definition: SettingsDialog.h:46
GpgFrontend::UI::MainWindow::SlotSetRestartNeeded
void SlotSetRestartNeeded(bool needed)
Definition: MainWindowSlotUI.cpp:185
GpgFrontend::UI::SettingsDialog::ListLanguages
static QHash< QString, QString > ListLanguages()
Definition: SettingsDialog.cpp:107
GpgFrontend::UI::SettingsDialog::SettingsDialog
SettingsDialog(QWidget *parent=nullptr)
Construct a new Settings Dialog object.
Definition: SettingsDialog.cpp:41
GpgFrontend::UI::GeneralTab::SignalRestartNeeded
void SignalRestartNeeded(bool needed)
GpgFrontend::UI::SettingsDialog::SignalRestartNeeded
void SignalRestartNeeded(bool needed)