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
:
25
explicit
PropertySheetDialog
(
const
QString& obj_name, QWidget* parent =
nullptr
);
26
30
~PropertySheetDialog
()
override
;
31
37
void
addPage
(
PropertyPage
* page);
38
43
[[nodiscard]]
bool
isSheetModified
()
const
;
44
48
void
applySheet
();
49
53
int
exec
()
override
;
54
58
Q_SIGNAL
void
modified
();
59
63
Q_SLOT
void
checkModified
(QWidget* origin);
64
68
ConfigStore
&
getConfigStore
();
69
70
protected
:
74
void
showEvent
(QShowEvent* event)
override
;
75
76
private
:
80
struct
Private;
81
Private* _p;
82
};
83
84
}
// 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