GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GeneralMainWindow.h
1 
29 #ifndef GPGFRONTEND_GENERALMAINWINDOW_H
30 #define GPGFRONTEND_GENERALMAINWINDOW_H
31 
32 #include "ui/GpgFrontendUI.h"
33 
34 namespace GpgFrontend::UI {
35 
39 class GeneralMainWindow : public QMainWindow {
40  public:
45  explicit GeneralMainWindow(std::string name, QWidget* parent = nullptr);
46 
50  ~GeneralMainWindow() override;
51 
52  protected:
57  void closeEvent(QCloseEvent* event);
58 
59  QSize icon_size_{};
60  int font_size_{};
61 
62  private slots:
66  void slot_restore_settings() noexcept;
67 
71  void slot_save_settings() noexcept;
72 
73  private:
74  std::string name_;
75  QPoint pos_;
76  QSize size_;
77 };
78 } // namespace GpgFrontend::UI
79 
80 #endif // GPGFRONTEND_GENERALMAINWINDOW_H
GpgFrontend::UI
Definition: FileReadTask.cpp:31
GpgFrontend::UI::GeneralMainWindow
Definition: GeneralMainWindow.h:39
GpgFrontend::UI::GeneralMainWindow::closeEvent
void closeEvent(QCloseEvent *event)
Definition: GeneralMainWindow.cpp:43
GpgFrontend::UI::GeneralMainWindow::GeneralMainWindow
GeneralMainWindow(std::string name, QWidget *parent=nullptr)
Definition: GeneralMainWindow.cpp:35
GpgFrontend::UI::SettingsObject
The SettingsObject class This class is used to store settings for the application securely.
Definition: SettingsObject.h:43