18 #ifndef _GRABBER_HANDLE_HH_
19 #define _GRABBER_HANDLE_HH_
34 public:
GrabberHandle(QGraphicsItem *_parent = 0,
int index = 0);
38 public:
int GetIndex()
const;
42 public:
int GetMouseState()
const;
46 public: QPointF GetCenterPoint()
const;
50 public:
double GetMouseDownX()
const;
54 public:
double GetMouseDownY()
const;
58 public:
double GetWidth()
const;
62 public:
double GetHeight()
const;
66 public: QColor GetColor()
const;
70 public:
void SetMouseState(
int _state);
74 public:
void SetMouseDownX(
double _x);
78 public:
void SetMouseDownY(
double _y);
82 public:
void SetWidth(
double _width);
86 public:
void SetHeight(
double _height);
90 public:
void SetColor(
const QColor &_color);
94 public:
void SetBorderColor(
const QColor &_borderColor);
98 public:
virtual QRectF boundingRect()
const;
104 private:
virtual void paint(QPainter *_painter,
105 const QStyleOptionGraphicsItem *_option, QWidget *_widget);
109 protected:
void hoverEnterEvent(QGraphicsSceneHoverEvent *_event);
113 protected:
void hoverLeaveEvent(QGraphicsSceneHoverEvent *_event);
117 protected:
void mouseMoveEvent(QGraphicsSceneMouseEvent *_event);
121 protected:
void mousePressEvent(QGraphicsSceneMouseEvent *_event);
125 protected:
void mouseReleaseEvent(QGraphicsSceneMouseEvent *_event);
129 protected:
void mousePressEvent(QGraphicsSceneDragDropEvent *_event);
133 protected:
void mouseMoveEvent(QGraphicsSceneDragDropEvent *_event);
142 private:
double mouseDownX;
145 private:
double mouseDownY;
148 private: QColor handleColor;
151 private: QColor borderColor;
154 private:
double width;
157 private:
double height;
160 private:
double widthGrabBuffer;
163 private:
double heightGrabBuffer;
166 private:
int mouseButtonState;
std::vector< GrabberHandle * > linkedGrabbers
A list of grabbers linked to this grabber.
Definition: GrabberHandle.hh:136
Definition: GrabberHandle.hh:29
#define GZ_GUI_BUILDING_VISIBLE
Definition: system.hh:393