Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
WidgetPropertyPage.h
Go to the documentation of this file.
1#pragma once
2
3#include <QWidget>
5
6namespace sf
7{
8namespace Ui
9{
10class WidgetPropertyPage;
11}
12
14{
15 Q_OBJECT
16
17 public:
18 explicit WidgetPropertyPage(QWidget* target, QWidget* parent = nullptr);
19
21
22 [[nodiscard]] bool isPageModified() const override;
23
24 [[nodiscard]] QString getPageName() const override;
25
26 QIcon getPageIcon() const override;
27
28 void applyPage() override;
29
30 void updatePage() override;
31
32 void storeState(ConfigStore& cfg_store, bool save) override;
33
34 private:
35 Ui::WidgetPropertyPage* ui;
36 QWidget* _target;
37};
38
39}// namespace sf
Class to store application configuration. Uses the global application settings or a given ini-file.
Definition ConfigStore.h:17
Widget to create a page in a PropertySheet dialog.
Definition PropertyPage.h:15
Definition WidgetPropertyPage.h:14
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 icon of the page for displaying in the list view. Default it returns the sf::Resource settin...
void storeState(ConfigStore &cfg_store, bool save) override
Called by sheet to save the state of the page. A call to QSettings::beginGroup() is not needed since ...
void applyPage() override
Applies the changes made in this page.
WidgetPropertyPage(QWidget *target, QWidget *parent=nullptr)
~WidgetPropertyPage() override
void updatePage() override
Updates the control widgets of the page. This method is called to initialize the control widgets.
Definition ApplicationPropertyPage.h:7
Definition Application.h:10