#include <canvasmanipulator.h>
Inheritance diagram for CanvasManipulator:


Public Types | |
| enum | Type { RepeatedItemAdd, RightClick, AutoConnector, ManualConnector, ItemMove, ItemResize, MechItemMove, Select, CanvasResize, ItemDrag, Draw } |
Public Member Functions | |
| CanvasManipulator (ItemDocument *itemDocument, CMManager *cmManager) | |
| virtual | ~CanvasManipulator () |
| virtual Type | type () const=0 |
| virtual bool | mousePressedInitial (const EventInfo &) |
| virtual bool | mousePressedRepeat (const EventInfo &) |
| virtual bool | mouseMoved (const EventInfo &) |
| virtual bool | mouseReleased (const EventInfo &) |
Protected Attributes | |
| Type | m_type |
| EventInfo | m_eventInfo |
| QPoint | m_prevPos |
| ItemDocument * | p_itemDocument |
| ICNDocument * | p_icnDocument |
| MechanicsDocument * | p_mechanicsDocument |
| QCanvas * | p_canvas |
| ItemGroup * | p_selectList |
| CNItemGroup * | p_cnItemSelectList |
| MechanicsGroup * | p_mechItemSelectList |
| CNItem * | p_cnItemClickedOn |
| MechanicsItem * | p_mechanicsItemClickedOn |
| CMManager * | p_cmManager |
Definition at line 169 of file canvasmanipulator.h.
| virtual bool CanvasManipulator::mousePressedInitial | ( | const EventInfo & | ) | [inline, virtual] |
Called when the user single-clicks the mouse
Reimplemented in CMRepeatedItemAdd, CMRightClick, CMAutoConnector, CMManualConnector, CMItemMove, CMItemResize, CMMechItemMove, CMSelect, CMItemDrag, and CMDraw.
Definition at line 193 of file canvasmanipulator.h.
Referenced by CMManager::mousePressEvent().
| virtual bool CanvasManipulator::mousePressedRepeat | ( | const EventInfo & | ) | [inline, virtual] |
Called when the user single-clicks the mouse after the first time (only applicable for those operations who are not oneClick
Reimplemented in CMRepeatedItemAdd, and CMManualConnector.
Definition at line 199 of file canvasmanipulator.h.
Referenced by CMManager::mousePressEvent().
| virtual bool CanvasManipulator::mouseMoved | ( | const EventInfo & | ) | [inline, virtual] |
Called when the user moves the mouse
Reimplemented in CMRepeatedItemAdd, CMRightClick, CMAutoConnector, CMManualConnector, CMItemMove, CMItemResize, CMMechItemMove, CMSelect, CMItemDrag, and CMDraw.
Definition at line 204 of file canvasmanipulator.h.
Referenced by CMManager::mouseMoveEvent().
| virtual bool CanvasManipulator::mouseReleased | ( | const EventInfo & | ) | [inline, virtual] |
Called when the user releases the mouse
Reimplemented in CMRepeatedItemAdd, CMRightClick, CMAutoConnector, CMManualConnector, CMItemMove, CMItemResize, CMMechItemMove, CMSelect, CMItemDrag, and CMDraw.
Definition at line 209 of file canvasmanipulator.h.
Referenced by CMManager::mouseReleaseEvent().
1.5.1