gui::PageViewMode_GraphicalOperatorsSelection Class Reference

#include <pageviewmode.h>

Inheritance diagram for gui::PageViewMode_GraphicalOperatorsSelection:
gui::PageViewMode_OperatorsSelection gui::PageViewMode

List of all members.

Public Slots

virtual void addWorkOperators (const std::vector< boost::shared_ptr< PdfOperator > > &wOps)
virtual void addSelectedOperators (const std::vector< boost::shared_ptr< PdfOperator > > &sOps)

Public Member Functions

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

Detailed Description

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

This implementation is for selecting graphical operators on the page (see PageViewMode_OperatorsSelection). If press left button and move mouse, and then release left button, mode select all oprators which are all inside the selected area. If press and then release left button (don't move), then mode select the last (top) operator which contains mouse button release position on the page. If press and then release left button over selected operator, mode select previous operator (operator which is first below now selected operators).


Constructor & Destructor Documentation

gui::PageViewMode_GraphicalOperatorsSelection::PageViewMode_GraphicalOperatorsSelection ( 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)

Member Function Documentation

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

Add operators selected on the page.

Parameters:
sOps Vector of operators.

Method filter only graphical operator.

Reimplemented from gui::PageViewMode.

References iterator::DoubleListIterator< Item >::getCurrent(), iterator::DoubleListIterator< Item >::isEnd(), gui::PageViewMode::isMoving, gui::PageViewMode::isPressedLeftButton, and gui::PageViewMode::isResizing.

void gui::PageViewMode_GraphicalOperatorsSelection::addWorkOperators ( const std::vector< boost::shared_ptr< PdfOperator > > &  wOps  )  [virtual, slot]

Add operators for selection on the page.

Parameters:
wOps Vector of operators.

Method filter only graphical operator.

Reimplemented from gui::PageViewMode_OperatorsSelection.

References iterator::DoubleListIterator< Item >::getCurrent(), iterator::DoubleListIterator< Item >::isEnd(), gui::PageViewMode::isMoving, gui::PageViewMode::isPressedLeftButton, and gui::PageViewMode::isResizing.


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