Scanframe Modular Application
0.1.0
Loading...
Searching...
No Matches
qt/PropertySheetDialog.h
Go to the documentation of this file.
1
#pragma once
2
#include <QDialog>
3
#include <QListWidgetItem>
4
#include <
misc/global.h
>
5
#include <
misc/qt/PropertyPage.h
>
6
7
namespace
sf
8
{
9
13
class
_MISC_CLASS
PropertySheetDialog
final :
public
QDialog
14
{
15
Q_OBJECT
16
17
public
:
24
explicit
PropertySheetDialog
(
const
QString& name, QSettings* settings, QWidget* parent =
nullptr
);
25
29
~PropertySheetDialog
()
override
;
30
36
void
addPage
(
PropertyPage
* page);
37
42
[[nodiscard]]
bool
isSheetModified
()
const
;
43
47
void
applySheet
();
48
49
int
exec
()
override
;
50
51
protected
:
52
void
showEvent
(QShowEvent* event)
override
;
53
54
public
:
58
// ReSharper disable once CppFunctionIsNotImplemented
59
Q_SIGNAL
void
modified
();
60
64
Q_SLOT
void
checkModified
(QWidget* origin);
65
66
private
:
70
struct
Private;
71
Private* _p;
72
};
73
74
}
// namespace sf
PropertyPage.h
sf::PropertyPage
Widget to create a page in a PropertySheet dialog.
Definition
PropertyPage.h:16
sf::PropertySheetDialog
Dialog containing multiple property pages.
Definition
qt/PropertySheetDialog.h:14
sf::PropertySheetDialog::modified
Q_SIGNAL void modified()
Emitted when a modification was applied.
sf::PropertySheetDialog::addPage
void addPage(PropertyPage *page)
Adds a property page to this sheet. This method cannot be called from a property page's constructor.
sf::PropertySheetDialog::exec
int exec() override
sf::PropertySheetDialog::~PropertySheetDialog
~PropertySheetDialog() override
Destructor.
sf::PropertySheetDialog::showEvent
void showEvent(QShowEvent *event) override
sf::PropertySheetDialog::PropertySheetDialog
PropertySheetDialog(const QString &name, QSettings *settings, QWidget *parent=nullptr)
Constructor.
sf::PropertySheetDialog::checkModified
Q_SLOT void checkModified(QWidget *origin)
Slot called from page when a control widget has been changed.
sf::PropertySheetDialog::isSheetModified
bool isSheetModified() const
Gets the modified aggregated status of all property pages.
sf::PropertySheetDialog::applySheet
void applySheet()
Applies changes of all pages in the sheet.
global.h
_MISC_CLASS
#define _MISC_CLASS
Definition
misc/global.h:40
sf
Definition
Application.h:10
src
com
misc
qt
PropertySheetDialog.h
Generated by
1.9.8