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

kdgantt2

  • sources
  • kde-4.12
  • kdepim
  • kdgantt2
kdganttgraphicsscene_p.h
Go to the documentation of this file.
1 /****************************************************************************
2  ** Copyright (C) 2001-2006 Klarälvdalens Datakonsult AB. All rights reserved.
3  **
4  ** This file is part of the KD Gantt library.
5  **
6  ** This file may be distributed and/or modified under the terms of the
7  ** GNU General Public License version 2 as published by the Free Software
8  ** Foundation and appearing in the file LICENSE.GPL included in the
9  ** packaging of this file.
10  **
11  ** Licensees holding valid commercial KD Gantt licenses may use this file in
12  ** accordance with the KD Gantt Commercial License Agreement provided with
13  ** the Software.
14  **
15  ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16  ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17  **
18  ** See http://www.kdab.net/kdgantt for
19  ** information about KD Gantt Commercial License Agreements.
20  **
21  ** Contact info@kdab.net if any conditions of this
22  ** licensing are not clear to you.
23  **
24  **********************************************************************/
25 #ifndef KDGANTTGRAPHICSSCENE_P_H
26 #define KDGANTTGRAPHICSSCENE_P_H
27 
28 #include <QPersistentModelIndex>
29 #include <QHash>
30 #include <QPointer>
31 #include <QItemSelectionModel>
32 #include <QAbstractProxyModel>
33 
34 #include "kdganttgraphicsscene.h"
35 #include "kdganttconstraintmodel.h"
36 #include "kdganttdatetimegrid.h"
37 
38 namespace KDGantt {
39  class GraphicsScene::Private {
40  public:
41  explicit Private(GraphicsScene*);
42 
43  void resetConstraintItems();
44  void createConstraintItem( const Constraint& c );
45  void deleteConstraintItem( ConstraintGraphicsItem* citem );
46  void deleteConstraintItem( const Constraint& c );
47  ConstraintGraphicsItem* findConstraintItem( const Constraint& c ) const;
48 
49  void recursiveUpdateMultiItem( const Span& span, const QModelIndex& idx );
50 
51 
52  GraphicsScene* q;
53 
54  QHash<QPersistentModelIndex,GraphicsItem*> items;
55  GraphicsItem* dragSource;
56 
57  QPointer<ItemDelegate> itemDelegate;
58  AbstractRowController* rowController;
59  DateTimeGrid default_grid;
60  QPointer<AbstractGrid> grid;
61  bool readOnly;
62 
63  /* printing related members */
64  bool isPrinting;
65  qreal labelsWidth;
66 
67  QPointer<QAbstractProxyModel> summaryHandlingModel;
68 
69  QPointer<ConstraintModel> constraintModel;
70 
71  QPointer<QItemSelectionModel> selectionModel;
72  };
73 
74  GraphicsScene::GraphicsScene( GraphicsScene::Private* d ) : _d( d )
75  {
76  init();
77  }
78 }
79 
80 #endif /* KDGANTTGRAPHICSSCENE_P_H */
81 
KDGantt::GraphicsScene::Private::readOnly
bool readOnly
Definition: kdganttgraphicsscene_p.h:61
KDGantt::GraphicsScene::Private::deleteConstraintItem
void deleteConstraintItem(ConstraintGraphicsItem *citem)
Definition: kdganttgraphicsscene.cpp:103
KDGantt::GraphicsScene::Private::items
QHash< QPersistentModelIndex, GraphicsItem * > items
Definition: kdganttgraphicsscene_p.h:54
KDGantt::GraphicsScene::Private::resetConstraintItems
void resetConstraintItems()
Definition: kdganttgraphicsscene.cpp:74
KDGantt::GraphicsScene::Private
Definition: kdganttgraphicsscene_p.h:39
KDGantt::GraphicsScene::Private::labelsWidth
qreal labelsWidth
Definition: kdganttgraphicsscene_p.h:65
KDGantt::GraphicsScene
Definition: kdganttgraphicsscene.h:48
KDGantt::GraphicsScene::Private::constraintModel
QPointer< ConstraintModel > constraintModel
Definition: kdganttgraphicsscene_p.h:69
KDGantt::Span
A class representing a start point and a length.
Definition: kdganttglobal.h:220
kdganttdatetimegrid.h
KDGantt::GraphicsScene::Private::summaryHandlingModel
QPointer< QAbstractProxyModel > summaryHandlingModel
Definition: kdganttgraphicsscene_p.h:67
KDGantt::GraphicsScene::Private::Private
Private(GraphicsScene *)
Definition: kdganttgraphicsscene.cpp:60
d
#define d
Definition: kdganttabstractgrid.cpp:53
KDGantt::GraphicsScene::Private::recursiveUpdateMultiItem
void recursiveUpdateMultiItem(const Span &span, const QModelIndex &idx)
Definition: kdganttgraphicsscene.cpp:351
KDGantt::GraphicsScene::GraphicsScene
GraphicsScene(QObject *parent=0)
Definition: kdganttgraphicsscene.cpp:160
KDGantt::GraphicsScene::Private::itemDelegate
QPointer< ItemDelegate > itemDelegate
Definition: kdganttgraphicsscene_p.h:57
KDGantt::GraphicsScene::Private::dragSource
GraphicsItem * dragSource
Definition: kdganttgraphicsscene_p.h:55
KDGantt::Constraint
A class used to represent a dependency.
Definition: kdganttconstraint.h:38
KDGantt::ConstraintGraphicsItem
Definition: kdganttconstraintgraphicsitem.h:35
KDGantt::GraphicsScene::Private::isPrinting
bool isPrinting
Definition: kdganttgraphicsscene_p.h:64
KDGantt::GraphicsScene::Private::grid
QPointer< AbstractGrid > grid
Definition: kdganttgraphicsscene_p.h:60
KDGantt::GraphicsScene::Private::findConstraintItem
ConstraintGraphicsItem * findConstraintItem(const Constraint &c) const
Definition: kdganttgraphicsscene.cpp:130
KDGantt::GraphicsScene::Private::selectionModel
QPointer< QItemSelectionModel > selectionModel
Definition: kdganttgraphicsscene_p.h:71
KDGantt::GraphicsScene::Private::default_grid
DateTimeGrid default_grid
Definition: kdganttgraphicsscene_p.h:59
KDGantt::GraphicsScene::Private::q
GraphicsScene * q
Definition: kdganttgraphicsscene_p.h:52
kdganttconstraintmodel.h
KDGantt::GraphicsScene::Private::rowController
AbstractRowController * rowController
Definition: kdganttgraphicsscene_p.h:58
KDGantt::GraphicsScene::Private::createConstraintItem
void createConstraintItem(const Constraint &c)
Definition: kdganttgraphicsscene.cpp:85
KDGantt::GraphicsItem
Definition: kdganttgraphicsitem.h:42
KDGantt::AbstractRowController
Abstract baseclass for row controllers. A row controller is used by the GraphicsView to nagivate the ...
Definition: kdganttabstractrowcontroller.h:34
kdganttgraphicsscene.h
KDGantt::DateTimeGrid
Definition: kdganttdatetimegrid.h:69
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