![]() |
Scribus
Open source desktop publishing at your fingertips
|
#include <canvasgesture_resize.h>
Public Member Functions | |
ResizeGesture (CanvasMode *parent) | |
void | prepare (Canvas::FrameHandle framehandle=Canvas::SOUTHEAST) |
void | clear () |
virtual void | drawControls (QPainter *p) |
virtual void | activate (bool) |
virtual void | deactivate (bool) |
virtual void | mouseReleaseEvent (QMouseEvent *m) |
virtual void | mouseMoveEvent (QMouseEvent *m) |
virtual void | mousePressEvent (QMouseEvent *m) |
Canvas::FrameHandle | frameHandle () const |
![]() | |
virtual void | enterEvent (QEvent *e) |
virtual void | leaveEvent (QEvent *e) |
virtual void | dragEnterEvent (QDragEnterEvent *e) |
virtual void | dragMoveEvent (QDragMoveEvent *e) |
virtual void | dragLeaveEvent (QDragLeaveEvent *e) |
virtual void | dropEvent (QDropEvent *e) |
virtual void | mouseDoubleClickEvent (QMouseEvent *m) |
virtual void | keyPressEvent (QKeyEvent *e) |
virtual void | keyReleaseEvent (QKeyEvent *e) |
virtual void | inputMethodEvent (QInputMethodEvent *e) |
CanvasMode * | delegate () |
void | setDelegate (CanvasMode *delegate) |
![]() | |
virtual bool | handleKeyEvents () |
virtual void | updateViewMode (CanvasViewMode *viewmode) |
void | drawSelectionHandles (QPainter *psx, QRectF selectionRect, bool background, bool insideGroup=false, double sx=1.0, double sy=1.0) |
void | drawSelection (QPainter *psx, bool drawHandles) |
void | drawSnapLine (QPainter *psx) |
void | drawOutline (QPainter *p, double scalex=1.0, double scaley=1.0, double deltax=0.0, double deltay=0.0) |
QCursor | modeCursor () |
void | setModeCursor () |
ScribusView * | view () const |
Additional Inherited Members | |
![]() | |
static CanvasMode * | createForAppMode (ScribusView *view, int appMode) |
![]() | |
CanvasGesture (CanvasMode *parent) | |
CanvasGesture (ScribusView *view) | |
![]() | |
CanvasMode (ScribusView *view) | |
void | setResizeCursor (int how, double rot=0.0) |
bool | commonMouseMove (QMouseEvent *m) |
void | commonDrawControls (QPainter *p, bool drawHandles) |
void | commonDrawTextCursor (QPainter *p, PageItem_TextFrame *textframe, const QPointF &offset) |
Draws the text cursor for textframe, offset by offset. | |
void | commonkeyPressEvent_NormalNodeEdit (QKeyEvent *e) |
void | commonkeyReleaseEvent (QKeyEvent *e) |
![]() | |
CanvasMode * | m_delegate |
![]() | |
ScribusView *const | m_view |
Canvas *const | m_canvas |
ScribusDoc *const | m_doc |
PanGesture * | m_panGesture |
UndoManager * | undoManager |
double | xSnap |
double | ySnap |
This class realizes resizing of selected items on behalf of its parent mode. The user presses the mousebutton at one of the framehandles, drags it to the end point and releases the mousebutton. The item or group selection is resized to the new dimensions. During the move the selected items are highlighted.
|
virtual |
Is called when this mode becomes active, either because it was selected by the user (fromgesture == false) or because a gesture completed and the canvas returns back to this mode (fromGesture == true)
Reimplemented from CanvasMode.
|
virtual |
Is called when this mode becomes inactive, either because the canvas switches to another mode (forGesture == false) or because a gesture is activated (forGesture == true)
Reimplemented from CanvasMode.
|
virtual |
Draws the controls for this mode and the selection marker. If viewmode.drawSelectionWithControls is true, also draws the selection contents first.
Reimplemented from CanvasMode.
|
virtual |
This method only sets the m_handle field. If the correct value is set by prepare() (default = SOUTHEAST), it's not necessary to call this method.
Reimplemented from CanvasGesture.
void ResizeGesture::prepare | ( | Canvas::FrameHandle | framehandle = Canvas::SOUTHEAST | ) |
Prepares the gesture for resizing the selection