Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
PositionPropertyPage.h
Go to the documentation of this file.
1#pragma once
2
4#include <QWidget>
5
6class QFormLayout;
7class QGridLayout;
8class QBoxLayout;
9
10namespace sf
11{
12
13namespace Ui {class PositionPropertyPage;}
14
16{
17 Q_OBJECT
18
19 public:
20 explicit PositionPropertyPage(QObject* target, QWidget* parent = nullptr);
21
23
24 [[nodiscard]] bool isPageModified() const override;
25
26 [[nodiscard]] QString getPageName() const override;
27
28 [[nodiscard]] QString getPageDescription() const override;
29
30 QIcon getPageIcon() const override;
31
32 void applyPage() override;
33
34 void updatePage() override;
35
36 private:
37 Ui::PositionPropertyPage* ui;
38 QObject* _target;
39 QLayout* _targetLayout;
40 QWidget* _targetWidget;
41 QLayout* _layout{nullptr};
42 QFormLayout* _formLayout{nullptr};
43 QBoxLayout* _boxLayout{nullptr};
44 QGridLayout* _gridLayout{nullptr};
45};
46
47}
48
Definition PositionPropertyPage.h:16
PositionPropertyPage(QObject *target, QWidget *parent=nullptr)
QString getPageDescription() const override
Gets the description for hinting of the page in the list view.
void updatePage() override
Updates the control widgets of the page.
QIcon getPageIcon() const override
Gets the name of the page for displaying in the list view. When not reimplemented this method returns...
QString getPageName() const override
Gets the name of the page for displaying in the list view. When reimplemented the QObject's name is r...
bool isPageModified() const override
Gets the modified/changed status of the page.
~PositionPropertyPage() override
void applyPage() override
Applies the changes made in this page.
Widget to create a page in a PropertySheet dialog.
Definition PropertyPage.h:16
Definition ApplicationPropertyPage.h:8
Definition Application.h:10