CMItemDrag Class Reference

#include <canvasmanipulator.h>

Inheritance diagram for CMItemDrag:

Inheritance graph
[legend]
Collaboration diagram for CMItemDrag:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CMItemDrag (ItemDocument *itemDocument, CMManager *cmManager)
virtual ~CMItemDrag ()
virtual Type type () const
virtual bool mousePressedInitial (const EventInfo &info)
virtual bool mouseMoved (const EventInfo &info)
virtual bool mouseReleased (const EventInfo &info)

Static Public Member Functions

static CanvasManipulatorconstruct (ItemDocument *itemDocument, CMManager *cmManager)
static ManipulatorInfomanipulatorInfo ()
static bool acceptManipulation (uint eventState, uint cmState, uint itemType, uint cnItemType)

Protected Attributes

bool b_dragged

Detailed Description

Author:
David Saxton

Definition at line 481 of file canvasmanipulator.h.


Member Function Documentation

bool CMItemDrag::mousePressedInitial ( const EventInfo info  )  [virtual]

Called when the user single-clicks the mouse

Returns:
true if the manipulation operation has finished

Reimplemented from CanvasManipulator.

Definition at line 1352 of file canvasmanipulator.cpp.

References b_dragged, and CanvasManipulator::m_eventInfo.

bool CMItemDrag::mouseMoved ( const EventInfo info  )  [virtual]

Called when the user moves the mouse

Returns:
true if the manipulation operation has finished

Reimplemented from CanvasManipulator.

Definition at line 1359 of file canvasmanipulator.cpp.

References b_dragged, EventInfo::itemRtti, CanvasManipulator::m_eventInfo, EventInfo::pos, and EventInfo::qcanvasItemClickedOn.

bool CMItemDrag::mouseReleased ( const EventInfo info  )  [virtual]

Called when the user releases the mouse

Returns:
true if the manipulation operation has finished

Reimplemented from CanvasManipulator.

Definition at line 1378 of file canvasmanipulator.cpp.

References b_dragged, EventInfo::itemRtti, CanvasManipulator::m_eventInfo, CanvasManipulator::p_itemDocument, EventInfo::qcanvasItemClickedOn, and ItemDocument::requestStateSave().


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:35 2007 for KTechLab by  doxygen 1.5.1