gui::PageViewMode_TextMarking Class Reference

#include <pageviewmode.h>

Inheritance diagram for gui::PageViewMode_TextMarking:
gui::PageViewMode_TextSelection gui::PageViewMode

List of all members.

Public Slots

virtual void mouseReleaseLeftButton (QMouseEvent *e, QPainter *p, QWidget *w)
virtual void addSelectedOperators (const std::vector< boost::shared_ptr< PdfOperator > > &sOps)

Public Member Functions

 PageViewMode_TextMarking (const QString &drawingObject, const QString &_scriptFncAtMouseRelease, const QString &_scriptFncAtMoveSelectedObjects, const QString &_scriptFncAtResizeSelectedObjects)

Protected Member Functions

virtual void setMappingCursor ()

Detailed Description

Class is STRATEGY pattern for mode construction. Includes method for selecting objects on page and manipulating with him.

This implementation is reimplemented class PageViewMode_TextSelection. Different between parent and this implementation is after select new operator. After select new text operator is called script and then all selected operators will be unselected.


Constructor & Destructor Documentation

gui::PageViewMode_TextMarking::PageViewMode_TextMarking ( const QString &  drawingObject,
const QString &  _scriptFncAtMouseRelease,
const QString &  _scriptFncAtMoveSelectedObjects,
const QString &  _scriptFncAtResizeSelectedObjects 
)

Standard constructor.

Parameters:
drawingObject Text definition of drawing method (see DrawingObjectFactory)
_scriptFncAtMouseRelease Script command for call after selected object(s)
_scriptFncAtMoveSelectedObjects Script command for call after move selected object(s)
_scriptFncAtResizeSelectedObjects Script command for call after resize selected object(s)

References setMappingCursor().


Member Function Documentation

void gui::PageViewMode_TextMarking::addSelectedOperators ( const std::vector< boost::shared_ptr< PdfOperator > > &  sOps  )  [virtual, slot]

Add operators selected on the page.

Parameters:
sOps Vector of operators.

This method is reimplemented and don't add operators to selected operators.

Reimplemented from gui::PageViewMode_TextSelection.

void gui::PageViewMode_TextMarking::mouseReleaseLeftButton ( QMouseEvent *  e,
QPainter *  p,
QWidget *  w 
) [virtual, slot]

Method is calling if is release left mouse button.

Parameters:
e Pointer to mouse event (see Qt::QMouseEvent).
p Pointer to initialized painter for draw changes (see Qt::QPainter). Method emit at end 'needRepaint' if p is NULL.
w Pointer to widget (see Qt::QWidget). E.g. for change mouse cursor above operators.
See also:
mousePressLeftButton
mousePressEvent

Call script and then unselect all selected operators.

Reimplemented from gui::PageViewMode_TextSelection.

References gui::PageViewMode_TextSelection::clearSelectedOperators().

void gui::PageViewMode_TextMarking::setMappingCursor (  )  [protected, virtual]

The documentation for this class was generated from the following files: