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

kdgantt

KDGantt::ConstraintModel

KDGantt::ConstraintModel Class Reference

#include <kdganttconstraintmodel.h>

Inheritance diagram for KDGantt::ConstraintModel:

Inheritance graph
[legend]

List of all members.


Detailed Description

The ConstraintModel keeps track of the interdependencies between gantt items in a View.

Definition at line 33 of file kdganttconstraintmodel.h.


Signals

void constraintAdded (const Constraint &)
void constraintRemoved (const Constraint &)

Public Member Functions

void addConstraint (const Constraint &c)
void cleanup ()
void clear ()
 ConstraintModel (QObject *parent=0)
QList< Constraint > constraints () const
QList< Constraint > constraintsForIndex (const QModelIndex &) const
bool hasConstraint (const QModelIndex &s, const QModelIndex &e) const
bool hasConstraint (const Constraint &c) const
bool removeConstraint (const Constraint &c)
virtual ~ConstraintModel ()

Constructor & Destructor Documentation

ConstraintModel::ConstraintModel ( QObject *  parent = 0  )  [explicit]

Constructor. Creates an empty ConstraintModel with parent parent

Definition at line 70 of file kdganttconstraintmodel.cpp.

ConstraintModel::~ConstraintModel (  )  [virtual]

Destroys this ConstraintModel

Definition at line 84 of file kdganttconstraintmodel.cpp.


Member Function Documentation

void ConstraintModel::addConstraint ( const Constraint &  c  ) 

Adds the constraint c to this ConstraintModel If the Constraint c is already in this ConstraintModel, nothing happens.

Definition at line 99 of file kdganttconstraintmodel.cpp.

void ConstraintModel::cleanup (  ) 

Not used

Definition at line 146 of file kdganttconstraintmodel.cpp.

void ConstraintModel::clear (  ) 

Removes all Constraints from this model The signal constraintRemoved(const Constraint&) is emitted for every Constraint that is removed.

Definition at line 137 of file kdganttconstraintmodel.cpp.

void KDGantt::ConstraintModel::constraintAdded ( const Constraint &   )  [signal]

void KDGantt::ConstraintModel::constraintRemoved ( const Constraint &   )  [signal]

QList< Constraint > ConstraintModel::constraints (  )  const

Returns:
A list of all Constraints in this ConstraintModel.

Definition at line 161 of file kdganttconstraintmodel.cpp.

QList< Constraint > ConstraintModel::constraintsForIndex ( const QModelIndex &  idx  )  const

Returns:
A list of all Constraints in this ConstraintModel that have an endpoint at idx.

Definition at line 170 of file kdganttconstraintmodel.cpp.

bool KDGantt::ConstraintModel::hasConstraint ( const QModelIndex &  s,
const QModelIndex &  e 
) const [inline]

Definition at line 64 of file kdganttconstraintmodel.h.

bool ConstraintModel::hasConstraint ( const Constraint &  c  )  const

Returns true if a Constraint with start s and end e exists, otherwise false.

Definition at line 194 of file kdganttconstraintmodel.cpp.

bool ConstraintModel::removeConstraint ( const Constraint &  c  ) 

Removes the Constraint c from this ConstraintModel. If c was found and removed, the signal constraintRemoved(const Constraint&) is emitted.

Returns:
If c was found and removed, it returns true, otherwise it returns false.

Definition at line 120 of file kdganttconstraintmodel.cpp.


The documentation for this class was generated from the following files:
  • kdganttconstraintmodel.h
  • kdganttconstraintmodel.cpp

kdgantt

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

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal