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
93  void slot_language_changed();
94 
95 #endif
96 };
97 } // namespace GpgFrontend::UI
98 
99 #endif // GPGFRONTEND_SETTINGSGENERAL_H
Definition: SettingsGeneral.h:43
GeneralTab(QWidget *parent=nullptr)
Construct a new General Tab object.
Definition: SettingsGeneral.cpp:40
void SetSettings()
Set the Settings object.
Definition: SettingsGeneral.cpp:81
void SignalRestartNeeded(bool needed)
Definition: KeyList.h:152
Definition: FileReadTask.cpp:31