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

kdgantt

kdganttconstraintgraphicsitem.h

Go to the documentation of this file.
00001 /****************************************************************************
00002  ** Copyright (C) 2001-2006 Klarälvdalens Datakonsult AB.  All rights reserved.
00003  **
00004  ** This file is part of the KD Gantt library.
00005  **
00006  ** This file may be used under the terms of the GNU General Public
00007  ** License versions 2.0 or 3.0 as published by the Free Software
00008  ** Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
00009  ** included in the packaging of this file.  Alternatively you may (at
00010  ** your option) use any later version of the GNU General Public
00011  ** License if such license has been publicly approved by
00012  ** Klarälvdalens Datakonsult AB (or its successors, if any).
00013  ** 
00014  ** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
00015  ** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
00016  ** A PARTICULAR PURPOSE. Klarälvdalens Datakonsult AB reserves all rights
00017  ** not expressly granted herein.
00018  ** 
00019  ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00020  ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00021  **
00022  **********************************************************************/
00023 #ifndef KDGANTTCONSTRAINTGRAPHICSITEM_H
00024 #define KDGANTTCONSTRAINTGRAPHICSITEM_H
00025 
00026 #include <QGraphicsItem>
00027 
00028 #include "kdganttconstraint.h"
00029 
00030 namespace KDGantt {
00031     class GraphicsScene;
00032 
00033     class ConstraintGraphicsItem : public QGraphicsItem {
00034     public:
00035         enum { Type = UserType + 43 };
00036 
00037         explicit ConstraintGraphicsItem( const Constraint& c,
00038                                          QGraphicsItem* parent = 0, GraphicsScene* scene = 0 );
00039         virtual ~ConstraintGraphicsItem();
00040 
00041         /*reimp*/ int type() const;
00042         /*reimp (non virtual)*/GraphicsScene* scene() const;
00043 
00044         /*reimp*/ QString ganttToolTip() const;
00045 
00046         /*reimp*/ QRectF boundingRect() const;
00047         /*reimp*/ void paint( QPainter* painter, const QStyleOptionGraphicsItem* option,
00048                               QWidget* widget = 0 );
00049 
00050         inline const Constraint& constraint() const { return m_constraint; }
00051         Constraint proxyConstraint() const;
00052 
00053         void setStart( const QPointF& start );
00054         inline QPointF start() const { return m_start; }
00055         void setEnd( const QPointF& end );
00056         inline QPointF end() const { return m_end; }
00057 
00058         void updateItem( const QPointF& start,const QPointF& end );
00059     private:
00060         Constraint m_constraint;
00061         QPointF m_start;
00062         QPointF m_end;
00063     };
00064 }
00065 
00066 #endif /* KDGANTTCONSTRAINTGRAPHICSITEM_H */
00067 

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
  •   doc
  • 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