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 
80  void SignalDeepRestartNeeded(bool needed);
81 
82  private:
83  std::shared_ptr<Ui_GeneralSettings> ui_;
84 
85 #ifdef MULTI_LANG_SUPPORT
86  QHash<QString, QString> lang_;
87 #endif
88 
89  std::vector<std::string> key_ids_list_;
90 
91  KeyList* m_key_list_{};
92 
93  private slots:
94 
95 #ifdef MULTI_LANG_SUPPORT
100  void slot_language_changed();
101 
106  void slot_update_custom_key_database_path_label(int state);
107 
112  void slot_key_databse_path_changed();
113 
114 #endif
115 };
116 } // namespace GpgFrontend::UI
117 
118 #endif // GPGFRONTEND_SETTINGSGENERAL_H
Definition: SettingsGeneral.h:43
GeneralTab(QWidget *parent=nullptr)
Construct a new General Tab object.
Definition: SettingsGeneral.cpp:42
void SetSettings()
Set the Settings object.
Definition: SettingsGeneral.cpp:128
void SignalRestartNeeded(bool needed)
void SignalDeepRestartNeeded(bool needed)
Definition: KeyList.h:152
Definition: FileReadTask.cpp:31