Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
LayoutButton.h
Go to the documentation of this file.
1#pragma once
2
3#include <QAction>
4#include <QToolButton>
5#include <QtUiPlugin/QDesignerExportWidget>
6#include <gii/qt/Namespace.h>
7#include <misc/qt/Macros.h>
9
10namespace sf
11{
12
13class QDESIGNER_WIDGET_EXPORT LayoutButton
14 : public QToolButton
15 , public ObjectExtension
16{
17 Q_OBJECT
18 Q_PROPERTY(QString layoutFile READ getLayoutFile WRITE setLayoutFile)
19 Q_PROPERTY(gii::IdType idOffset READ getIdOffset WRITE setIdOffset)
20
21 public:
26 explicit LayoutButton(QWidget* parent = nullptr);
27
31 bool isRequiredProperty(const QString& name) override;
32
36 void addPropertyPages(PropertySheetDialog* sheet) override;
37
38 protected:
42 void openLayout();
43
44 SF_DECL_PROP_GS(gii::IdType, IdOffset)
45
46 SF_DECL_PROP_GRS(QString, LayoutFile)
47
48 private:
52 struct Private;
53 Private* _p{nullptr};
54};
55
56}// namespace sf
Definition LayoutButton.h:16
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