GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
SettingsGeneral.h
1 
29 #ifndef GPGFRONTEND_SETTINGSGENERAL_H
30 #define GPGFRONTEND_SETTINGSGENERAL_H
31 
32 #include "ui/GpgFrontendUI.h"
33 
34 class Ui_GeneralSettings;
35 
36 namespace GpgFrontend::UI {
37 class KeyList;
38 
43 class GeneralTab : public QWidget {
44  Q_OBJECT
45 
46  public:
52  explicit GeneralTab(QWidget* parent = nullptr);
53 
58  void SetSettings();
59 
64  void ApplySettings();
65 
66  signals:
67 
73  void SignalRestartNeeded(bool needed);
74 
75  private:
76  std::shared_ptr<Ui_GeneralSettings> ui_;
77 
78 #ifdef MULTI_LANG_SUPPORT
79  QHash<QString, QString> lang_;
80 #endif
81 
82  std::vector<std::string> key_ids_list_;
83 
84  KeyList* m_key_list_{};
85 
86  private slots:
87 
88 #ifdef MULTI_LANG_SUPPORT
89 
93  void slot_language_changed();
94 
95 #endif
96 };
97 } // namespace GpgFrontend::UI
98 
99 #endif // GPGFRONTEND_SETTINGSGENERAL_H
GpgFrontend::UI::GeneralTab::GeneralTab
GeneralTab(QWidget *parent=nullptr)
Construct a new General Tab object.
Definition: SettingsGeneral.cpp:40
GpgFrontend::UI
Definition: VerifyDetailsDialog.cpp:33
GpgFrontend::SingletonFunctionObject< GlobalSettingStation >::GetInstance
static GlobalSettingStation & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:181
GpgFrontend::GlobalSettingStation::GetUISettings
libconfig::Setting & GetUISettings() noexcept
Definition: GlobalSettingStation.h:68
GpgFrontend::UI::GeneralTab
Definition: SettingsGeneral.h:43
GpgFrontend::UI::SettingsDialog::ListLanguages
static QHash< QString, QString > ListLanguages()
Definition: SettingsDialog.cpp:107
GpgFrontend::UI::KeyList
Definition: KeyList.h:152
GpgFrontend::UI::GeneralTab::SignalRestartNeeded
void SignalRestartNeeded(bool needed)
GpgFrontend::UI::GeneralTab::SetSettings
void SetSettings()
Set the Settings object.
Definition: SettingsGeneral.cpp:81