GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GeneralMainWindow.h
1 
29 #pragma once
30 
31 #include "ui/GpgFrontendUI.h"
32 
33 namespace GpgFrontend::UI {
34 
38 class GeneralMainWindow : public QMainWindow {
39  public:
44  explicit GeneralMainWindow(QString name, QWidget* parent = nullptr);
45 
49  ~GeneralMainWindow() override;
50 
51  protected:
56  void closeEvent(QCloseEvent* event) override;
57 
58  QSize icon_size_{};
59  int font_size_{};
60  Qt::ToolButtonStyle icon_style_;
61 
62  private slots:
66  void slot_restore_settings() noexcept;
67 
71  void slot_save_settings() noexcept;
72 
73  private:
74  QString name_;
75  QPoint pos_;
76  QSize size_;
77 };
78 } // namespace GpgFrontend::UI
Definition: GeneralMainWindow.h:38
GeneralMainWindow(QString name, QWidget *parent=nullptr)
Definition: GeneralMainWindow.cpp:39
void closeEvent(QCloseEvent *event) override
Definition: GeneralMainWindow.cpp:47
Definition: FileReadTask.cpp:31