Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
ApplicationPropertyPage.h
Go to the documentation of this file.
1#pragma once
2
3#include "Application.h"
4#include <QWidget>
6
7namespace Ui
8{
9class ApplicationPropertyPage;
10}
11
12namespace sf
13{
14
16{
17 Q_OBJECT
18
19 public:
20 explicit ApplicationPropertyPage(Application* app, PropertySheetDialog* parent = nullptr);
21
23
24 [[nodiscard]] QString getPageName() const override;
25
26 [[nodiscard]] QString getPageDescription() const override;
27
28 [[nodiscard]] QIcon getPageIcon() const override;
29
30 void updatePage() override;
31
32 [[nodiscard]] bool isPageModified() const override;
33
34 void applyPage() override;
35
36 void afterPageApply(bool was_modified) override;
37
38 private:
39 Ui::ApplicationPropertyPage* ui;
40 Application* _app;
41};
42
43}// namespace sf
Definition ApplicationPropertyPage.h:16
void updatePage() override
Updates the control widgets of the page.
void afterPageApply(bool was_modified) override
Called when all pages are applied. Method can be overridden by a derived class to update control widg...
QString getPageDescription() const override
Gets the description for hinting of the page in the list view.
void applyPage() override
Applies the changes made in this page.
ApplicationPropertyPage(Application *app, PropertySheetDialog *parent=nullptr)
QString getPageName() const override
Gets the name of the page for displaying in the list view. When reimplemented the QObject's name is r...
bool isPageModified() const override
Gets the modified/changed status of the page.
QIcon getPageIcon() const override
Gets the name of the page for displaying in the list view. When not reimplemented this method returns...
Definition Application.h:13
Widget to create a page in a PropertySheet dialog.
Definition PropertyPage.h:16
Dialog containing multiple property pages.
Definition qt/PropertySheetDialog.h:14
Definition ApplicationPropertyPage.h:8
Definition Application.h:10