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/ConfigStore.h
>
6
#include <
misc/qt/PropertyPage.h
>
7
8
namespace
sf
9
{
10
14
class
_MISC_CLASS
PropertySheetDialog
final :
public
QDialog
15
{
16
Q_OBJECT
17
18
public
:
24
explicit
PropertySheetDialog
(
const
QString& obj_name, QWidget* parent =
nullptr
);
25
29
~PropertySheetDialog
()
override
;
30
36
void
addPage
(
PropertyPage
* page);
37
42
[[nodiscard]]
bool
isSheetModified
()
const
;
43
47
void
applySheet
();
48
52
int
exec
()
override
;
53
57
Q_SIGNAL
void
modified
();
58
62
Q_SLOT
void
checkModified
(QWidget* origin);
63
67
ConfigStore
&
getConfigStore
();
68
69
protected
:
73
void
showEvent
(QShowEvent* event)
override
;
74
75
private
:
79
struct
Private;
80
Private* _p;
81
};
82
83
}
// namespace sf
ConfigStore.h
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::PropertySheetDialog
Dialog containing multiple property pages.
Definition
qt/PropertySheetDialog.h:15
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
Overridden from base class.
sf::PropertySheetDialog::~PropertySheetDialog
~PropertySheetDialog() override
Destructor.
sf::PropertySheetDialog::showEvent
void showEvent(QShowEvent *event) override
Overridden from base class.
sf::PropertySheetDialog::PropertySheetDialog
PropertySheetDialog(const QString &obj_name, 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::getConfigStore
ConfigStore & getConfigStore()
Gets the configuration store for property pages.
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