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