Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

CMManualConnector Class Reference

#include <canvasmanipulator.h>

Inheritance diagram for CMManualConnector:

ConnectorDraw CanvasManipulator

List of all members.


Detailed Description

Author:
David Saxton

Definition at line 345 of file canvasmanipulator.h.


Public Types

enum  Type {
  RepeatedItemAdd, RightClick, AutoConnector, ManualConnector,
  ItemMove, ItemResize, MechItemMove, Select,
  CanvasResize, ItemDrag, Draw
}

Public Member Functions

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

Static Public Member Functions

static bool acceptManipulation (uint eventState, uint cmState, uint itemType, uint cnItemType)
static CanvasManipulatorconstruct (ItemDocument *itemDocument, CMManager *cmManager)
static ManipulatorInfo * manipulatorInfo ()
static QColor validConnectionColor ()

Protected Member Functions

void grabEndStuff (QCanvasItem *endItem, const QPoint &pos, bool posIsExact)
ConnectortoConnector (Node *node)
QPoint toValidPos (const QPoint &clickPos, Connector *clickedConnector) const

Protected Attributes

EventInfo m_eventInfo
ConnectorList m_fixedRouteConnectors
ManualConnectorDrawm_manualConnectorDraw
QPoint m_prevPos
Type m_type
QCanvas * p_canvas
CMManagerp_cmManager
CNItemp_cnItemClickedOn
CNItemGroupp_cnItemSelectList
Connectorp_endConnector
Nodep_endNode
ICNDocumentp_icnDocument
ItemDocumentp_itemDocument
MechanicsDocumentp_mechanicsDocument
MechanicsItemp_mechanicsItemClickedOn
MechanicsGroupp_mechItemSelectList
ItemGroupp_selectList
QGuardedPtr< Connectorp_startConnector
QGuardedPtr< Nodep_startNode
QPoint startConnectorPoint

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

Generated by  Doxygen 1.6.0   Back to index