QGIS API Documentation
2.8.2-Wien
|
Handles drawing of selection outlines and mouse handles. More...
#include <qgscomposermousehandles.h>
Public Types | |
enum | ItemPositionMode { UpperLeft, UpperMiddle, UpperRight, MiddleLeft, Middle, MiddleRight, LowerLeft, LowerMiddle, LowerRight } |
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 | SnapGuideMode { Item, Point } |
Public Slots | |
void | selectedItemRotationChanged () |
Redraws handles when selected item rotation changes. | |
void | selectedItemSizeChanged () |
Redraws handles when selected item size changes. | |
void | selectionChanged () |
Sets up listeners to sizeChanged signal for all selected items. |
Public Member Functions | |
QgsComposerMouseHandles (QgsComposition *composition) | |
virtual | ~QgsComposerMouseHandles () |
QgsComposition * | composition () |
bool | isDragging () |
Returns true is user is currently dragging the handles. | |
bool | isResizing () |
Returns true is user is currently resizing with the handles. | |
QgsComposerMouseHandles::MouseAction | mouseActionForScenePos (const QPointF &sceneCoordPos) |
Finds out which mouse move action to choose depending on the scene cursor position. | |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget) override |
void | setComposition (QgsComposition *c) |
Protected Member Functions | |
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
void | hoverMoveEvent (QGraphicsSceneHoverEvent *event) override |
void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override |
void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override |
Handles drawing of selection outlines and mouse handles.
Responsible for mouse interactions such as resizing and moving selected items.
Definition at line 31 of file qgscomposermousehandles.h.
UpperLeft | |
UpperMiddle | |
UpperRight | |
MiddleLeft | |
Middle | |
MiddleRight | |
LowerLeft | |
LowerMiddle | |
LowerRight |
Definition at line 52 of file qgscomposermousehandles.h.
Describes the action (move or resize in different directon) to be done during mouse move.
MoveItem | |
ResizeUp | |
ResizeDown | |
ResizeLeft | |
ResizeRight | |
ResizeLeftUp | |
ResizeRightUp | |
ResizeLeftDown | |
ResizeRightDown | |
SelectItem | |
NoAction |
Definition at line 37 of file qgscomposermousehandles.h.
Definition at line 65 of file qgscomposermousehandles.h.
QgsComposerMouseHandles::QgsComposerMouseHandles | ( | QgsComposition * | composition | ) |
Definition at line 33 of file qgscomposermousehandles.cpp.
|
virtual |
Definition at line 55 of file qgscomposermousehandles.cpp.
|
inline |
Definition at line 75 of file qgscomposermousehandles.h.
|
overrideprotected |
Definition at line 552 of file qgscomposermousehandles.cpp.
|
overrideprotected |
Definition at line 547 of file qgscomposermousehandles.cpp.
|
inline |
Returns true is user is currently dragging the handles.
Definition at line 83 of file qgscomposermousehandles.h.
|
inline |
Returns true is user is currently resizing with the handles.
Definition at line 86 of file qgscomposermousehandles.h.
QgsComposerMouseHandles::MouseAction QgsComposerMouseHandles::mouseActionForScenePos | ( | const QPointF & | sceneCoordPos | ) |
Finds out which mouse move action to choose depending on the scene cursor position.
Definition at line 540 of file qgscomposermousehandles.cpp.
|
overrideprotected |
Definition at line 746 of file qgscomposermousehandles.cpp.
|
overrideprotected |
Definition at line 569 of file qgscomposermousehandles.cpp.
|
overrideprotected |
Definition at line 712 of file qgscomposermousehandles.cpp.
|
overrideprotected |
Definition at line 589 of file qgscomposermousehandles.cpp.
|
override |
Definition at line 83 of file qgscomposermousehandles.cpp.
|
slot |
Redraws handles when selected item rotation changes.
Definition at line 242 of file qgscomposermousehandles.cpp.
|
slot |
Redraws handles when selected item size changes.
Definition at line 233 of file qgscomposermousehandles.cpp.
|
slot |
Sets up listeners to sizeChanged signal for all selected items.
Definition at line 202 of file qgscomposermousehandles.cpp.
|
inline |
Definition at line 74 of file qgscomposermousehandles.h.