GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
SettingsGeneral.h
1 
29 #pragma once
30 
31 #include "ui/GpgFrontendUI.h"
32 
33 class Ui_GeneralSettings;
34 
35 namespace GpgFrontend::UI {
36 class KeyList;
37 
42 class GeneralTab : public QWidget {
43  Q_OBJECT
44 
45  public:
51  explicit GeneralTab(QWidget* parent = nullptr);
52 
57  void SetSettings();
58 
63  void ApplySettings();
64 
65  signals:
66 
72  void SignalRestartNeeded(bool needed);
73 
79  void SignalDeepRestartNeeded(bool needed);
80 
81  private:
82  std::shared_ptr<Ui_GeneralSettings> ui_;
83  QHash<QString, QString> lang_;
84  std::vector<QString> key_ids_list_;
85  KeyList* m_key_list_{};
86 
87  private slots:
88 
93  void slot_language_changed();
94 };
95 } // namespace GpgFrontend::UI
Definition: SettingsGeneral.h:42
GeneralTab(QWidget *parent=nullptr)
Construct a new General Tab object.
Definition: SettingsGeneral.cpp:38
void SetSettings()
Set the Settings object.
Definition: SettingsGeneral.cpp:109
void SignalRestartNeeded(bool needed)
void SignalDeepRestartNeeded(bool needed)
Definition: KeyList.h:166
Definition: FileReadTask.cpp:31