Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
LayoutButton.h
Go to the documentation of this file.
1#pragma once
2#include <QToolButton>
3#include <QtUiPlugin/QDesignerExportWidget>
4#include <gii/qt/Namespace.h>
5#include <misc/qt/Macros.h>
7
8namespace sf
9{
10
14class QDESIGNER_WIDGET_EXPORT LayoutButton
15 : public QToolButton
16 , public ObjectExtension
17{
18 Q_OBJECT
19 Q_PROPERTY(QString layoutFile READ getLayoutFile WRITE setLayoutFile)
20 Q_PROPERTY(gii::IdType idOffset READ getIdOffset WRITE setIdOffset)
21
22 public:
27 explicit LayoutButton(QWidget* parent = nullptr);
28
32 bool isRequiredProperty(const QString& name) override;
33
37 void addPropertyPages(PropertySheetDialog* sheet) override;
38
39 SF_DECL_PROP_GS(gii::IdType, IdOffset)
40 SF_DECL_PROP_GRS(QString, LayoutFile)
41
42 protected:
46 void openLayout();
47
48 private:
52 struct Private;
53 Private* _p{nullptr};
54};
55
56}// namespace sf
Button control opening another layout from file.
Definition LayoutButton.h:17
Interface class to multiple inherit when the sf::FormWriter class needs to be restricted in writing o...
Definition ObjectExtension.h:17
Dialog containing multiple property pages.
Definition qt/PropertySheetDialog.h:14
#define SF_DECL_PROP_GRS(Type, Name)
Declares unreferenced getter and referenced setter for a property.
Definition misc/qt/Macros.h:17
#define SF_DECL_PROP_GS(Type, Name)
Declares unreferenced getter and unreferenced setter for a property.
Definition misc/qt/Macros.h:8
Definition Application.h:10