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>
6
7namespace sf
8{
9
13class _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
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
Widget to create a page in a PropertySheet dialog.
Definition PropertyPage.h:16
Dialog containing multiple property pages.
Definition qt/PropertySheetDialog.h:14
Q_SIGNAL void modified()
Emitted when a modification was applied.
void addPage(PropertyPage *page)
Adds a property page to this sheet. This method cannot be called from a property page's constructor.
~PropertySheetDialog() override
Destructor.
void showEvent(QShowEvent *event) override
PropertySheetDialog(const QString &name, QSettings *settings, QWidget *parent=nullptr)
Constructor.
Q_SLOT void checkModified(QWidget *origin)
Slot called from page when a control widget has been changed.
bool isSheetModified() const
Gets the modified aggregated status of all property pages.
void applySheet()
Applies changes of all pages in the sheet.
#define _MISC_CLASS
Definition misc/global.h:40
Definition Application.h:10