GeneralMainWindow.h
#ifndef GPGFRONTEND_GENERALMAINWINDOW_H
#define GPGFRONTEND_GENERALMAINWINDOW_H
#include "ui/GpgFrontendUI.h"
namespace GpgFrontend::UI {
class GeneralMainWindow : public QMainWindow {
public:
explicit GeneralMainWindow(std::string name, QWidget* parent = nullptr);
~GeneralMainWindow() override;
protected:
void closeEvent(QCloseEvent* event);
QSize icon_size_{};
int font_size_{};
private slots:
void slot_restore_settings() noexcept;
void slot_save_settings() noexcept;
private:
std::string name_;
QPoint pos_;
QSize size_;
};
} // namespace GpgFrontend::UI
#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