18 #ifndef _ROTATE_HANDLE_HH_
19 #define _ROTATE_HANDLE_HH_
43 public:
void SetMouseState(
int _state);
46 public:
int GetMouseState()
const;
50 public:
double GetMouseDownX()
const;
54 public:
double GetMouseDownY()
const;
58 public:
void SetMouseDownX(
double _x);
62 public:
void SetMouseDownY(
double _y);
66 protected:
void hoverEnterEvent(QGraphicsSceneHoverEvent *_event);
70 protected:
void hoverLeaveEvent(QGraphicsSceneHoverEvent *_event);
74 protected:
void mouseMoveEvent(QGraphicsSceneMouseEvent *_event);
78 protected:
void mousePressEvent(QGraphicsSceneMouseEvent *_event);
82 protected:
void mouseReleaseEvent(QGraphicsSceneMouseEvent *_event);
86 public:
virtual QRectF boundingRect()
const;
92 private:
void paint(QPainter *_painter,
93 const QStyleOptionGraphicsItem *_option, QWidget *_widget);
96 private:
int mouseButtonState;
99 private:
double mouseDownX;
102 private:
double mouseDownY;
105 private: QColor borderColor;
108 private:
double handleSize;
111 private:
double handleOffsetHeight;
114 private: QPointF origin;
117 private: QPointF handleOffset;
Handle for rotating an editor item.
Definition: RotateHandle.hh:33
#define GZ_GUI_BUILDING_VISIBLE
Definition: system.hh:393