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(bool needed);
86 
87  private:
88  QTabWidget* tab_widget_;
89  QDialogButtonBox* button_box_;
90  bool restart_needed_{};
91 
98  bool get_restart_needed() const;
99 
100  private slots:
101 
107  void slot_set_restart_needed(bool needed);
108 };
109 
110 } // namespace GpgFrontend::UI
111 
112 #endif // __SETTINGSDIALOG_H__
GpgFrontend::UI
Definition: FileReadTask.cpp:31
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:88
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:170
GpgFrontend::UI::SettingsDialog::slot_set_restart_needed
void slot_set_restart_needed(bool needed)
Definition: SettingsDialog.cpp:92
GpgFrontend::UI::KeyserverTab
Definition: SettingsKeyServer.h:41
GpgFrontend::UI::AppearanceTab
Definition: SettingsAppearance.h:38
GpgFrontend::UI::GeneralDialog
Definition: GeneralDialog.h:35
GpgFrontend::UI::GeneralTab
Definition: SettingsGeneral.h:43
GpgFrontend::GlobalSettingStation::GetLocaleDir
std::filesystem::path GetLocaleDir() const
Get the Locale Dir object.
Definition: GlobalSettingStation.h:116
GpgFrontend::UI::SettingsDialog
Definition: SettingsDialog.h:47
GpgFrontend::UI::MainWindow::SlotSetRestartNeeded
void SlotSetRestartNeeded(bool needed)
Definition: MainWindowSlotUI.cpp:185
GpgFrontend::UI::SettingsDialog::ListLanguages
static QHash< QString, QString > ListLanguages()
Definition: SettingsDialog.cpp:116
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)