• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

rocs/VisualEditor

Public Types | Public Slots | Public Member Functions | Protected Member Functions | List of all members
PointerItem Class Referenceabstract

#include <PointerItem.h>

Inheritance diagram for PointerItem:
Inheritance graph
[legend]

Public Types

enum  { Type = UserType + 3 }
 

Public Slots

void registerProperty (const QString &name)
 
void remove ()
 
void removeProperty (const QString &name)
 
void updateAttributes ()
 
void updatePos ()
 
void updateProperty (const QString &name)
 

Public Member Functions

 PointerItem (PointerPtr pointer, QGraphicsItem *parent=0)
 
virtual ~PointerItem ()
 
PointerPtr pointer () const
 
QGraphicsItem * propertyListItem () const
 
int type () const
 

Protected Member Functions

virtual QPainterPath createCurves ()=0
 
void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
 

Detailed Description

Graphics item for data connections.

This is the base class for graphics item represenations of connections. Data structure plugins may provide their own implementations to present the connections with a different look.

Definition at line 42 of file PointerItem.h.

Member Enumeration Documentation

anonymous enum
See also
QGraphicsItem::type
Enumerator
Type 

Definition at line 63 of file PointerItem.h.

Constructor & Destructor Documentation

PointerItem::PointerItem ( PointerPtr  pointer,
QGraphicsItem *  parent = 0 
)
explicit

Default constructor.

Parameters
pointerthe pointer that this graphics item presents
parentthe parent for the graphics item, if 0 item must be added to scene manually

Definition at line 97 of file PointerItem.cpp.

PointerItem::~PointerItem ( )
virtual

Default destructor.

Definition at line 126 of file PointerItem.cpp.

Member Function Documentation

virtual QPainterPath PointerItem::createCurves ( )
protectedpure virtual
void PointerItem::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
protected

when there's a mouse click on the element, this method is invoked

Parameters
eventthe mouse object

Definition at line 131 of file PointerItem.cpp.

void PointerItem::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
protected

when there's a mouse release on the element, this method is invoked

Parameters
eventthe mouse object

Definition at line 135 of file PointerItem.cpp.

void PointerItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
)
protected

Definition at line 256 of file PointerItem.cpp.

PointerPtr PointerItem::pointer ( ) const
Returns
the pointer that is represented by this graphics item

Definition at line 252 of file PointerItem.cpp.

QGraphicsItem * PointerItem::propertyListItem ( ) const
Returns
the graphics item to be displayed at the scene

Definition at line 247 of file PointerItem.cpp.

void PointerItem::registerProperty ( const QString &  name)
slot

Definition at line 199 of file PointerItem.cpp.

void PointerItem::remove ( )
slot

Definition at line 139 of file PointerItem.cpp.

void PointerItem::removeProperty ( const QString &  name)
slot

Definition at line 228 of file PointerItem.cpp.

int PointerItem::type ( ) const
Returns
the type of the item
See also
QGraphicsItem::type()

Definition at line 242 of file PointerItem.cpp.

void PointerItem::updateAttributes ( )
slot

Definition at line 162 of file PointerItem.cpp.

void PointerItem::updatePos ( )
slot

Definition at line 147 of file PointerItem.cpp.

void PointerItem::updateProperty ( const QString &  name)
slot

Definition at line 215 of file PointerItem.cpp.


The documentation for this class was generated from the following files:
  • PointerItem.h
  • PointerItem.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

rocs/VisualEditor

Skip menu "rocs/VisualEditor"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal