|
QGIS API Documentation
2.6.0-Brighton
|
Handles drawing of selection outlines and mouse handles. More...
#include <qgscomposermousehandles.h>
Public Types | |
| enum | MouseAction { MoveItem, ResizeUp, ResizeDown, ResizeLeft, ResizeRight, ResizeLeftUp, ResizeRightUp, ResizeLeftDown, ResizeRightDown, SelectItem, NoAction } |
| Describes the action (move or resize in different directon) to be done during mouse move. More... | |
| enum | ItemPositionMode { UpperLeft, UpperMiddle, UpperRight, MiddleLeft, Middle, MiddleRight, LowerLeft, LowerMiddle, LowerRight } |
| enum | SnapGuideMode { Item, Point } |
Public Slots | |
| void | selectionChanged () |
| Sets up listeners to sizeChanged signal for all selected items. | |
| void | selectedItemSizeChanged () |
| Redraws handles when selected item size changes. | |
| void | selectedItemRotationChanged () |
| Redraws handles when selected item rotation changes. | |
Public Member Functions | |
| QgsComposerMouseHandles (QgsComposition *composition) | |
| virtual | ~QgsComposerMouseHandles () |
| void | setComposition (QgsComposition *c) |
| QgsComposition * | composition () |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget) |
| QgsComposerMouseHandles::MouseAction | mouseActionForScenePos (const QPointF &sceneCoordPos) |
| Finds out which mouse move action to choose depending on the scene cursor position. | |
| bool | isDragging () |
| Returns true is user is currently dragging the handles. | |
| bool | isResizing () |
| Returns true is user is currently resizing with the handles. | |
Protected Member Functions | |
| void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
| void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
| void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) |
| void | hoverMoveEvent (QGraphicsSceneHoverEvent *event) |
| void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
Handles drawing of selection outlines and mouse handles.
Responsible for mouse interactions such as resizing and moving selected items.
| QgsComposerMouseHandles::QgsComposerMouseHandles | ( | QgsComposition * | composition | ) |
|
virtual |
|
inline |
|
protected |
|
protected |
|
inline |
Returns true is user is currently dragging the handles.
|
inline |
Returns true is user is currently resizing with the handles.
| QgsComposerMouseHandles::MouseAction QgsComposerMouseHandles::mouseActionForScenePos | ( | const QPointF & | sceneCoordPos | ) |
Finds out which mouse move action to choose depending on the scene cursor position.
|
protected |
|
protected |
|
protected |
|
protected |
| void QgsComposerMouseHandles::paint | ( | QPainter * | painter, |
| const QStyleOptionGraphicsItem * | itemStyle, | ||
| QWidget * | pWidget | ||
| ) |
|
slot |
Redraws handles when selected item rotation changes.
|
slot |
Redraws handles when selected item size changes.
|
slot |
Sets up listeners to sizeChanged signal for all selected items.
|
inline |
1.8.1.2