9 #include <ff7tkqtwidgets_export.h>
19 explicit OrientationWidget(quint8 value, Direction zeroDirection = West, RotationDirection rotationDirection = CounterClockWise, Style style = Style::Grid, QWidget *parent =
nullptr);
21 bool isReadOnly()
const;
22 void setReadOnly(
bool ro);
23 virtual QSize minimumSizeHint()
const override;
24 virtual QSize sizeHint()
const override;
26 void valueChanged(
int i);
27 void valueEdited(
int i);
29 void setValue(
int value);
34 void byte2degree(quint8 v);
35 quint8 degree2byte()
const;
36 QPointF centerCircle()
const;
37 double radiusCircle()
const;
38 bool isInCircle(
const QPointF &pos);
39 void moveCursor(
const QPointF &pos);
40 void mouseEvent(QMouseEvent *e);
43 Direction _zeroDirection;
44 RotationDirection _rotationDirection;
47 void paintGrid(QPainter *p,
double radius);
48 void paintArrow(QPainter *p,
double radius);
51 virtual void changeEvent(QEvent *e)
override;
52 virtual void paintEvent(QPaintEvent *e)
override;