CanvasGesture Class Reference
#include <canvasgesture.h>


Public Member Functions | |
| 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 | mouseReleaseEvent (QMouseEvent *m) |
| virtual void | mouseMoveEvent (QMouseEvent *m) |
| virtual void | mousePressEvent (QMouseEvent *m) |
| virtual void | keyPressEvent (QKeyEvent *e) |
| virtual void | keyReleaseEvent (QKeyEvent *e) |
| virtual void | inputMethodEvent (QInputMethodEvent *e) |
| CanvasMode * | delegate () |
| void | setDelegate (CanvasMode *delegate) |
Protected Member Functions | |
| CanvasGesture (CanvasMode *parent) | |
| CanvasGesture (ScribusView *view) | |
Protected Attributes | |
| CanvasMode * | m_delegate |
Detailed Description
This class is a superclass for canvas gestures. CanvasGestures are temporary canvasmodes which have a pointer to the CanvasMode in which they started. ScribusView::stopGesture() will return control to that mode. By default, all events are delegated to the canvas mode.Definition at line 47 of file canvasgesture.h.
Constructor & Destructor Documentation
| CanvasGesture::CanvasGesture | ( | CanvasMode * | parent | ) | [inline, protected] |
Definition at line 50 of file canvasgesture.h.
| CanvasGesture::CanvasGesture | ( | ScribusView * | view | ) | [inline, protected] |
Definition at line 51 of file canvasgesture.h.
Member Function Documentation
| virtual void CanvasGesture::enterEvent | ( | QEvent * | e | ) | [inline, virtual] |
Reimplemented from CanvasMode.
Reimplemented in RectSelect.
Definition at line 54 of file canvasgesture.h.
| virtual void CanvasGesture::leaveEvent | ( | QEvent * | e | ) | [inline, virtual] |
Reimplemented from CanvasMode.
Reimplemented in RectSelect.
Definition at line 55 of file canvasgesture.h.
| virtual void CanvasGesture::dragEnterEvent | ( | QDragEnterEvent * | e | ) | [inline, virtual] |
| virtual void CanvasGesture::dragMoveEvent | ( | QDragMoveEvent * | e | ) | [inline, virtual] |
| virtual void CanvasGesture::dragLeaveEvent | ( | QDragLeaveEvent * | e | ) | [inline, virtual] |
| virtual void CanvasGesture::dropEvent | ( | QDropEvent * | e | ) | [inline, virtual] |
| virtual void CanvasGesture::mouseDoubleClickEvent | ( | QMouseEvent * | m | ) | [inline, virtual] |
| virtual void CanvasGesture::mouseReleaseEvent | ( | QMouseEvent * | m | ) | [inline, virtual] |
Reimplemented from CanvasMode.
Reimplemented in LineMove, RectSelect, ResizeGesture, and RulerGesture.
Definition at line 63 of file canvasgesture.h.
| virtual void CanvasGesture::mouseMoveEvent | ( | QMouseEvent * | m | ) | [inline, virtual] |
Reimplemented from CanvasMode.
Reimplemented in LineMove, RectSelect, ResizeGesture, and RulerGesture.
Definition at line 64 of file canvasgesture.h.
| virtual void CanvasGesture::mousePressEvent | ( | QMouseEvent * | m | ) | [inline, virtual] |
Reimplemented from CanvasMode.
Reimplemented in LineMove, RectSelect, ResizeGesture, and RulerGesture.
Definition at line 65 of file canvasgesture.h.
| virtual void CanvasGesture::keyPressEvent | ( | QKeyEvent * | e | ) | [inline, virtual] |
| virtual void CanvasGesture::keyReleaseEvent | ( | QKeyEvent * | e | ) | [inline, virtual] |
| virtual void CanvasGesture::inputMethodEvent | ( | QInputMethodEvent * | e | ) | [inline, virtual] |
| CanvasMode* CanvasGesture::delegate | ( | ) | [inline, virtual] |
main canvas modes dont have a delegate
Reimplemented from CanvasMode.
Definition at line 71 of file canvasgesture.h.
| void CanvasGesture::setDelegate | ( | CanvasMode * | delegate | ) | [inline] |
Member Data Documentation
CanvasMode* CanvasGesture::m_delegate [protected] |
Definition at line 75 of file canvasgesture.h.
The documentation for this class was generated from the following file:
