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  Qt::ToolButtonStyle icon_style_;
62 
63  private slots:
67  void slot_restore_settings() noexcept;
68 
72  void slot_save_settings() noexcept;
73 
74  private:
75  std::string name_;
76  QPoint pos_;
77  QSize size_;
78 };
79 } // namespace GpgFrontend::UI
80 
81 #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