Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
AscanGraph.h
Go to the documentation of this file.
1#pragma once
2#include <QPaintEvent>
3#include <QWidget>
4#include <QtUiPlugin/QDesignerExportWidget>
5#include <gii/qt/Macros.h>
7
8class QStyleOptionFrame;
9
10namespace sf
11{
12
13class QDESIGNER_WIDGET_EXPORT AscanGraph final
14 : public QWidget
15 , public ObjectExtension
16{
17 Q_OBJECT
18 // Need full namespace for this property macro.
19 Q_PROPERTY(sf::gii::IdType idTimeUnit READ getIdTimeUnit WRITE setIdTimeUnit)
20 Q_PROPERTY(sf::gii::IdType idDelay READ getIdDelay WRITE setIdDelay)
21 Q_PROPERTY(sf::gii::IdType idRange READ getIdRange WRITE setIdRange)
22 Q_PROPERTY(sf::gii::IdType idAmplitudeUnit READ getIdAmplitudeUnit WRITE setIdAmplitudeUnit)
23 Q_PROPERTY(sf::gii::IdType idData READ getIdData WRITE setIdData)
24 Q_PROPERTY(sf::gii::IdType idAttenuation READ getIdAttenuation WRITE setIdAttenuation)
25
26 public:
27 explicit AscanGraph(QWidget* parent = nullptr);
28
29 ~AscanGraph() override;
30
31 void addPropertyPages(sf::PropertySheetDialog* sheet) override;
32
33 [[nodiscard]] QSize minimumSizeHint() const override;
34
35 bool isRequiredProperty(const QString& name) override;
36
37 SF_DECL_INFO_ID(IdTimeUnit)
38
39 SF_DECL_INFO_ID(IdDelay)
40
41 SF_DECL_INFO_ID(IdRange)
42
43 SF_DECL_INFO_ID(IdAmplitudeUnit)
44
45 SF_DECL_INFO_ID(IdData)
46
47 SF_DECL_INFO_ID(IdAttenuation)
48
49 protected:
50 void paintEvent(QPaintEvent* event) override;
51
52 void initStyleOption(QStyleOptionFrame* option) const;
53
54 private:
55 struct Private;
56 Private* _p;
57};
58
59}// namespace sf
Definition AscanGraph.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:15
#define SF_DECL_INFO_ID(Name)
Declaration of ID handling functions for Information ID properties.
Definition gii/qt/Macros.h:10
InformationTypes::id_type IdType
Short type definition for Qt code.
Definition gii/qt/Namespace.h:16
Definition Application.h:10