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>
4
#include <
misc/qt/PropertyPage.h
>
5
6
namespace
sf
7
{
8
namespace
Ui
9
{
10
class
WidgetPropertyPage;
11
}
12
13
class
WidgetPropertyPage
:
public
PropertyPage
14
{
15
Q_OBJECT
16
17
public
:
18
explicit
WidgetPropertyPage
(QWidget* target, QWidget* parent =
nullptr
);
19
20
~WidgetPropertyPage
()
override
;
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
PropertyPage.h
sf::ConfigStore
Class to store application configuration. Uses the global application settings or a given ini-file.
Definition
ConfigStore.h:17
sf::PropertyPage
Widget to create a page in a PropertySheet dialog.
Definition
PropertyPage.h:15
sf::WidgetPropertyPage
Definition
WidgetPropertyPage.h:14
sf::WidgetPropertyPage::getPageName
QString getPageName() const override
Gets the name of the page for displaying in the list view. When reimplemented the QObject's name is r...
sf::WidgetPropertyPage::isPageModified
bool isPageModified() const override
Gets the modified/changed status of the page.
sf::WidgetPropertyPage::getPageIcon
QIcon getPageIcon() const override
Gets the icon of the page for displaying in the list view. Default it returns the sf::Resource settin...
sf::WidgetPropertyPage::storeState
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 ...
sf::WidgetPropertyPage::applyPage
void applyPage() override
Applies the changes made in this page.
sf::WidgetPropertyPage::WidgetPropertyPage
WidgetPropertyPage(QWidget *target, QWidget *parent=nullptr)
sf::WidgetPropertyPage::~WidgetPropertyPage
~WidgetPropertyPage() override
sf::WidgetPropertyPage::updatePage
void updatePage() override
Updates the control widgets of the page. This method is called to initialize the control widgets.
Ui
Definition
ApplicationPropertyPage.h:7
sf
Definition
Application.h:10
src
com
ami
layout
pages
WidgetPropertyPage.h
Generated by
1.9.8