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

kdgantt2

  • KDGantt
  • GraphicsScene
Classes | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
KDGantt::GraphicsScene Class Reference

#include <kdganttgraphicsscene.h>

Inheritance diagram for KDGantt::GraphicsScene:
Inheritance graph
[legend]

Classes

class  Private
 

Public Slots

void setConstraintModel (ConstraintModel *)
 
void setModel (QAbstractItemModel *)
 
void setReadOnly (bool)
 
void setRootIndex (const QModelIndex &idx)
 
void setSelectionModel (QItemSelectionModel *selectionmodel)
 
void setSummaryHandlingModel (QAbstractProxyModel *)
 

Signals

void clicked (const QModelIndex &index)
 
void doubleClicked (const QModelIndex &index)
 
void entered (const QModelIndex &index)
 
void gridChanged ()
 
void pressed (const QModelIndex &index)
 

Public Member Functions

 GraphicsScene (QObject *parent=0)
 
virtual ~GraphicsScene ()
 
void clearConstraintItems ()
 
void clearItems ()
 
ConstraintModel * constraintModel () const
 
GraphicsItem * createItem (ItemType type) const
 
void deleteSubtree (const QModelIndex &)
 
GraphicsItem * dragSource () const
 
ConstraintGraphicsItem * findConstraintItem (const Constraint &) const
 
QList< ConstraintGraphicsItem * > findConstraintItems (const QModelIndex &idx) const
 
GraphicsItem * findItem (const QModelIndex &) const
 
GraphicsItem * findItem (const QPersistentModelIndex &) const
 
AbstractGrid * grid () const
 
void insertItem (const QPersistentModelIndex &, GraphicsItem *)
 
bool isReadOnly () const
 
void itemClicked (const QModelIndex &)
 
ItemDelegate * itemDelegate () const
 
void itemDoubleClicked (const QModelIndex &)
 
void itemEntered (const QModelIndex &)
 
void itemPressed (const QModelIndex &)
 
QAbstractItemModel * model () const
 
void print (QPrinter *printer, bool drawRowLabels=true)
 
void print (QPrinter *printer, qreal start, qreal end, bool drawRowLabels=true)
 
void print (QPainter *painter, const QRectF &target=QRectF(), bool drawRowLabels=true)
 
void print (QPainter *painter, qreal start, qreal end, const QRectF &target=QRectF(), bool drawRowLabels=true)
 
void removeItem (const QModelIndex &)
 
QModelIndex rootIndex () const
 
AbstractRowController * rowController () const
 
QItemSelectionModel * selectionModel () const
 
void setDragSource (GraphicsItem *item)
 
void setGrid (AbstractGrid *grid)
 
void setItemDelegate (ItemDelegate *)
 
void setRowController (AbstractRowController *rc)
 
QAbstractProxyModel * summaryHandlingModel () const
 
void updateItems ()
 
void updateRow (const QModelIndex &idx)
 

Static Public Member Functions

static QModelIndex dataIndex (const QModelIndex &idx)
 
static QModelIndex mainIndex (const QModelIndex &idx)
 

Protected Member Functions

void drawBackground (QPainter *painter, const QRectF &rect)
 
void helpEvent (QGraphicsSceneHelpEvent *helpEvent)
 

Detailed Description

Definition at line 48 of file kdganttgraphicsscene.h.

Constructor & Destructor Documentation

KDGantt::GraphicsScene::GraphicsScene ( QObject *  parent = 0)
explicit

Definition at line 160 of file kdganttgraphicsscene.cpp.

GraphicsScene::~GraphicsScene ( )
virtual

Definition at line 166 of file kdganttgraphicsscene.cpp.

Member Function Documentation

void GraphicsScene::clearConstraintItems ( )

Definition at line 529 of file kdganttgraphicsscene.cpp.

void GraphicsScene::clearItems ( )

Definition at line 490 of file kdganttgraphicsscene.cpp.

void KDGantt::GraphicsScene::clicked ( const QModelIndex &  index)
signal
ConstraintModel * GraphicsScene::constraintModel ( ) const

Definition at line 232 of file kdganttgraphicsscene.cpp.

GraphicsItem * GraphicsScene::createItem ( ItemType  type) const

Creates a new item of type type. TODO: If the user should be allowed to override this in any way, it needs to be in View!

Definition at line 336 of file kdganttgraphicsscene.cpp.

QModelIndex GraphicsScene::dataIndex ( const QModelIndex &  idx)
static

Returns the index pointing to the last column in the same row as idx. This can be thought of as in "inverse" of mainIndex()

Definition at line 318 of file kdganttgraphicsscene.cpp.

void GraphicsScene::deleteSubtree ( const QModelIndex &  _idx)

Definition at line 508 of file kdganttgraphicsscene.cpp.

void KDGantt::GraphicsScene::doubleClicked ( const QModelIndex &  index)
signal
GraphicsItem * GraphicsScene::dragSource ( ) const

Definition at line 621 of file kdganttgraphicsscene.cpp.

void GraphicsScene::drawBackground ( QPainter *  painter,
const QRectF &  rect 
)
protected

Definition at line 566 of file kdganttgraphicsscene.cpp.

void KDGantt::GraphicsScene::entered ( const QModelIndex &  index)
signal
ConstraintGraphicsItem * GraphicsScene::findConstraintItem ( const Constraint &  c) const

Definition at line 524 of file kdganttgraphicsscene.cpp.

QList<ConstraintGraphicsItem*> KDGantt::GraphicsScene::findConstraintItems ( const QModelIndex &  idx) const
GraphicsItem * GraphicsScene::findItem ( const QModelIndex &  idx) const

Definition at line 474 of file kdganttgraphicsscene.cpp.

GraphicsItem * GraphicsScene::findItem ( const QPersistentModelIndex &  idx) const

Definition at line 482 of file kdganttgraphicsscene.cpp.

AbstractGrid * GraphicsScene::grid ( ) const

Definition at line 281 of file kdganttgraphicsscene.cpp.

void KDGantt::GraphicsScene::gridChanged ( )
signal
void GraphicsScene::helpEvent ( QGraphicsSceneHelpEvent *  helpEvent)
protected

Definition at line 552 of file kdganttgraphicsscene.cpp.

void GraphicsScene::insertItem ( const QPersistentModelIndex &  idx,
GraphicsItem *  item 
)

Definition at line 418 of file kdganttgraphicsscene.cpp.

bool GraphicsScene::isReadOnly ( ) const

Definition at line 291 of file kdganttgraphicsscene.cpp.

void GraphicsScene::itemClicked ( const QModelIndex &  idx)

Definition at line 606 of file kdganttgraphicsscene.cpp.

ItemDelegate * GraphicsScene::itemDelegate ( ) const

Definition at line 192 of file kdganttgraphicsscene.cpp.

void GraphicsScene::itemDoubleClicked ( const QModelIndex &  idx)

Definition at line 611 of file kdganttgraphicsscene.cpp.

void GraphicsScene::itemEntered ( const QModelIndex &  idx)

Definition at line 596 of file kdganttgraphicsscene.cpp.

void GraphicsScene::itemPressed ( const QModelIndex &  idx)

Definition at line 601 of file kdganttgraphicsscene.cpp.

QModelIndex GraphicsScene::mainIndex ( const QModelIndex &  idx)
static

Definition at line 301 of file kdganttgraphicsscene.cpp.

QAbstractItemModel * GraphicsScene::model ( ) const

Definition at line 197 of file kdganttgraphicsscene.cpp.

void KDGantt::GraphicsScene::pressed ( const QModelIndex &  index)
signal
void GraphicsScene::print ( QPrinter *  printer,
bool  drawRowLabels = true 
)

Print the Gantt chart using printer. If drawRowLabels is true (the default), each row will have it's label printed on the left side.

This version of print() will print multiple pages.

Definition at line 632 of file kdganttgraphicsscene.cpp.

void GraphicsScene::print ( QPrinter *  printer,
qreal  start,
qreal  end,
bool  drawRowLabels = true 
)

Print part of the Gantt chart from start to end using printer. If drawRowLabels is true (the default), each row will have it's label printed on the left side.

This version of print() will print multiple pages.

To print a certain range of a chart with a DateTimeGrid, use qreal DateTimeGrid::mapFromDateTime( const QDateTime& dt) const to figure out the values for start and end.

Definition at line 651 of file kdganttgraphicsscene.cpp.

void GraphicsScene::print ( QPainter *  painter,
const QRectF &  _targetRect = QRectF(),
bool  drawRowLabels = true 
)

Render the GanttView inside the rectangle target using the painter painter. If drawRowLabels is true (the default), each row will have it's label printed on the left side.

Definition at line 664 of file kdganttgraphicsscene.cpp.

void GraphicsScene::print ( QPainter *  painter,
qreal  start,
qreal  end,
const QRectF &  _targetRect = QRectF(),
bool  drawRowLabels = true 
)

Render the GanttView inside the rectangle target using the painter painter. If drawRowLabels is true (the default), each row will have it's label printed on the left side.

To print a certain range of a chart with a DateTimeGrid, use qreal DateTimeGrid::mapFromDateTime( const QDateTime& dt) const to figure out the values for start and end.

Definition at line 685 of file kdganttgraphicsscene.cpp.

void GraphicsScene::removeItem ( const QModelIndex &  idx)

Definition at line 451 of file kdganttgraphicsscene.cpp.

QModelIndex GraphicsScene::rootIndex ( ) const

Definition at line 227 of file kdganttgraphicsscene.cpp.

AbstractRowController * GraphicsScene::rowController ( ) const

Definition at line 265 of file kdganttgraphicsscene.cpp.

QItemSelectionModel * GraphicsScene::selectionModel ( ) const

Definition at line 255 of file kdganttgraphicsscene.cpp.

void GraphicsScene::setConstraintModel ( ConstraintModel *  cm)
slot

Definition at line 237 of file kdganttgraphicsscene.cpp.

void GraphicsScene::setDragSource ( GraphicsItem *  item)

Definition at line 616 of file kdganttgraphicsscene.cpp.

void GraphicsScene::setGrid ( AbstractGrid *  grid)

Definition at line 270 of file kdganttgraphicsscene.cpp.

void GraphicsScene::setItemDelegate ( ItemDelegate *  delegate)

Definition at line 185 of file kdganttgraphicsscene.cpp.

void GraphicsScene::setModel ( QAbstractItemModel *  model)
slot

Definition at line 203 of file kdganttgraphicsscene.cpp.

void GraphicsScene::setReadOnly ( bool  ro)
slot

Definition at line 286 of file kdganttgraphicsscene.cpp.

void GraphicsScene::setRootIndex ( const QModelIndex &  idx)
slot

Definition at line 222 of file kdganttgraphicsscene.cpp.

void GraphicsScene::setRowController ( AbstractRowController *  rc)

Definition at line 260 of file kdganttgraphicsscene.cpp.

void GraphicsScene::setSelectionModel ( QItemSelectionModel *  selectionmodel)
slot

Definition at line 249 of file kdganttgraphicsscene.cpp.

void GraphicsScene::setSummaryHandlingModel ( QAbstractProxyModel *  proxyModel)
slot

Definition at line 216 of file kdganttgraphicsscene.cpp.

QAbstractProxyModel * GraphicsScene::summaryHandlingModel ( ) const

Definition at line 211 of file kdganttgraphicsscene.cpp.

void GraphicsScene::updateItems ( )

Definition at line 497 of file kdganttgraphicsscene.cpp.

void GraphicsScene::updateRow ( const QModelIndex &  idx)

Definition at line 370 of file kdganttgraphicsscene.cpp.


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

KDE's Doxygen guidelines are available online.

kdgantt2

Skip menu "kdgantt2"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

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