1 #ifndef H_EXTENSIONS_CUTEHMI_GUI_1_INCLUDE_CUTEHMI_GUI_UNITS_HPP
2 #define H_EXTENSIONS_CUTEHMI_GUI_1_INCLUDE_CUTEHMI_GUI_UNITS_HPP
4 #include "internal/common.hpp"
20 static constexpr qreal INITIAL_QUADRAT = 80.0;
22 static constexpr qreal INITIAL_STROKE_WIDTH_RATIO = 40.0;
24 static constexpr
bool INITIAL_ROUND_STROKE_WIDTH =
true;
31 Q_PROPERTY(qreal quadrat READ quadrat WRITE setQuadrat NOTIFY quadratChanged)
36 Q_PROPERTY(qreal strokeWidth READ strokeWidth WRITE setStrokeWidth NOTIFY strokeWidthChanged)
41 Q_PROPERTY(qreal strokeWidthRatio READ strokeWidthRatio WRITE setStrokeWidthRatio NOTIFY strokeWidthRatioChanged)
46 Q_PROPERTY(
bool roundStrokeWidth READ roundStrokeWidth WRITE setRoundStrokeWidth NOTIFY roundStrokeWidthChanged)
50 qreal quadrat() const;
52 void setQuadrat(qreal quadrat);
54 qreal strokeWidth() const;
56 void setStrokeWidth(qreal strokeWidth);
58 qreal strokeWidthRatio() const;
60 void setStrokeWidthRatio(qreal ratio);
62 bool roundStrokeWidth() const;
64 void setRoundStrokeWidth(
bool roundStrokeWidth);
67 void quadratChanged();
69 void strokeWidthChanged();
71 void strokeWidthRatioChanged();
73 void roundStrokeWidthChanged();
76 void strokeWidthBinding();
79 void setStrokeWidth(qreal strokeWidth,
bool breakBinding);
84 qreal strokeWidthRatio;
85 bool roundStrokeWidth;