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>
7
8namespace sf
9{
10
14class _MISC_CLASS PropertySheetDialog final : public QDialog
15{
16 Q_OBJECT
17
18 public:
25 explicit PropertySheetDialog(const QString& obj_name, QWidget* parent = nullptr);
26
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
69
70 protected:
74 void showEvent(QShowEvent* event) override;
75
76 private:
80 struct Private;
81 Private* _p;
82};
83
84}// namespace sf
Class to store application configuration. Uses the global application settings or a given ini-file.
Definition ConfigStore.h:17
Widget to create a page in a PropertySheet dialog.
Definition PropertyPage.h:15
Dialog containing multiple property pages.
Definition qt/PropertySheetDialog.h:15
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.
int exec() override
Overridden from base class.
~PropertySheetDialog() override
Destructor.
void showEvent(QShowEvent *event) override
Overridden from base class.
PropertySheetDialog(const QString &obj_name, QWidget *parent=nullptr)
Constructor.
Q_SLOT void checkModified(QWidget *origin)
Slot called from page when a control widget has been changed.
ConfigStore & getConfigStore()
Gets the configuration store for property pages.
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