#include <pageviewmode.h>
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 () |
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.
| gui::PageViewMode_TextMarking::PageViewMode_TextMarking | ( | const QString & | drawingObject, | |
| const QString & | _scriptFncAtMouseRelease, | |||
| const QString & | _scriptFncAtMoveSelectedObjects, | |||
| const QString & | _scriptFncAtResizeSelectedObjects | |||
| ) |
Standard constructor.
| 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().
| void gui::PageViewMode_TextMarking::addSelectedOperators | ( | const std::vector< boost::shared_ptr< PdfOperator > > & | sOps | ) | [virtual, slot] |
Add operators selected on the page.
| 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.
| 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. |
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] |
Set mapping cursors for viewing on the page for actual selection mode
Reimplemented from gui::PageViewMode_TextSelection.
References gui::PageViewMode::bottom, gui::PageViewMode::left, gui::PageViewMode::mappingResizingModeToCursor, gui::PageViewMode::onUnselectedObject, gui::PageViewMode::right, and gui::PageViewMode::top.
Referenced by PageViewMode_TextMarking().