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

rocs/VisualEditor

Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
GraphScene Class Reference

#include <GraphScene.h>

Inheritance diagram for GraphScene:
Inheritance graph
[legend]

Public Slots

void connectGraphSignals (DataStructurePtr g)
 
QGraphicsItem * createData (DataPtr n)
 
QGraphicsItem * createEdge (PointerPtr e)
 
void createItems (DataStructurePtr dataStructure)
 
void createItems ()
 
void resize ()
 
void setActiveDocument ()
 

Signals

void addData (const QPointF &pos)
 
void keyPressed (QKeyEvent *key)
 
void keyReleased (QKeyEvent *key)
 
void removeSelected ()
 
void resized ()
 
void zoomFactorChanged (qreal zoomFactor)
 

Public Member Functions

 GraphScene (QObject *parent)
 
void centerOn (const QPointF &pos)
 
void clearGraph ()
 
void resetZoom ()
 
void setAction (QAction *action)
 
void setActiveGraph (DataStructurePtr g)
 
void updateDocument ()
 
void updateGraph (DataStructurePtr g)
 
void zoomBy (qreal scaleFactor)
 
qreal zoomFactor () const
 
void zoomTo (qreal scaleFactor)
 
void zoomToRect (const QRectF &rect)
 

Protected Member Functions

void contextMenuEvent (QGraphicsSceneContextMenuEvent *event)
 
void keyPressEvent (QKeyEvent *keyEvent)
 
void keyReleaseEvent (QKeyEvent *keyEvent)
 
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *mouseEvent)
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *mouseEvent)
 
void mousePressEvent (QGraphicsSceneMouseEvent *mouseEvent)
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *mouseEvent)
 
void wheelEvent (QGraphicsSceneWheelEvent *wheelEvent)
 

Detailed Description

Definition at line 38 of file GraphScene.h.

Constructor & Destructor Documentation

GraphScene::GraphScene ( QObject *  parent)
explicit

Definition at line 54 of file GraphScene.cpp.

Member Function Documentation

void GraphScene::addData ( const QPointF &  pos)
signal
void GraphScene::centerOn ( const QPointF &  pos)

Definition at line 331 of file GraphScene.cpp.

void GraphScene::clearGraph ( )
void GraphScene::connectGraphSignals ( DataStructurePtr  g)
slot

Definition at line 125 of file GraphScene.cpp.

void GraphScene::contextMenuEvent ( QGraphicsSceneContextMenuEvent *  event)
protected

Definition at line 228 of file GraphScene.cpp.

QGraphicsItem * GraphScene::createData ( DataPtr  n)
slot

Definition at line 141 of file GraphScene.cpp.

QGraphicsItem * GraphScene::createEdge ( PointerPtr  e)
slot

Definition at line 149 of file GraphScene.cpp.

void GraphScene::createItems ( DataStructurePtr  dataStructure)
slot

Create graphic items for all elements of dataStructure.

Definition at line 115 of file GraphScene.cpp.

void GraphScene::createItems ( )
slot

Create graphic items for all elements on this document.

Definition at line 108 of file GraphScene.cpp.

void GraphScene::keyPressed ( QKeyEvent *  key)
signal
void GraphScene::keyPressEvent ( QKeyEvent *  keyEvent)
protected

Definition at line 216 of file GraphScene.cpp.

void GraphScene::keyReleased ( QKeyEvent *  key)
signal
void GraphScene::keyReleaseEvent ( QKeyEvent *  keyEvent)
protected

Definition at line 222 of file GraphScene.cpp.

void GraphScene::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
protected

Definition at line 194 of file GraphScene.cpp.

void GraphScene::mouseMoveEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
protected

Definition at line 179 of file GraphScene.cpp.

void GraphScene::mousePressEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
protected

Definition at line 184 of file GraphScene.cpp.

void GraphScene::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
protected

Definition at line 211 of file GraphScene.cpp.

void GraphScene::removeSelected ( )
signal
void GraphScene::resetZoom ( )

Definition at line 326 of file GraphScene.cpp.

void GraphScene::resize ( )
slot

Definition at line 263 of file GraphScene.cpp.

void GraphScene::resized ( )
signal
void GraphScene::setAction ( QAction *  action)

Definition at line 69 of file GraphScene.cpp.

void GraphScene::setActiveDocument ( )
slot

Definition at line 79 of file GraphScene.cpp.

void GraphScene::setActiveGraph ( DataStructurePtr  g)

Definition at line 62 of file GraphScene.cpp.

void GraphScene::updateDocument ( )

Definition at line 249 of file GraphScene.cpp.

void GraphScene::updateGraph ( DataStructurePtr  g)

Definition at line 236 of file GraphScene.cpp.

void GraphScene::wheelEvent ( QGraphicsSceneWheelEvent *  wheelEvent)
protected

Definition at line 157 of file GraphScene.cpp.

void GraphScene::zoomBy ( qreal  scaleFactor)

Definition at line 297 of file GraphScene.cpp.

qreal GraphScene::zoomFactor ( ) const

Definition at line 292 of file GraphScene.cpp.

void GraphScene::zoomFactorChanged ( qreal  zoomFactor)
signal
void GraphScene::zoomTo ( qreal  scaleFactor)

Definition at line 307 of file GraphScene.cpp.

void GraphScene::zoomToRect ( const QRectF &  rect)

Definition at line 318 of file GraphScene.cpp.


The documentation for this class was generated from the following files:
  • GraphScene.h
  • GraphScene.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