• 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
kdganttview_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 KDGANTTVIEW_P_H
26 #define KDGANTTVIEW_P_H
27 
28 #include "kdganttview.h"
29 #include "kdganttgraphicsscene.h"
30 #include "kdgantttreeviewrowcontroller.h"
31 #include "kdganttconstraintmodel.h"
32 #include "kdganttconstraintproxy.h"
33 
34 #include "kdganttgraphicsview.h"
35 #include "kdganttdatetimegrid.h"
36 
37 #include "kdganttproxymodel.h"
38 
39 #include <QSplitter>
40 #include <QTreeView>
41 #include <QGraphicsView>
42 #include <QPointer>
43 
44 class QAbstractProxyModel;
45 class QGraphicsView;
46 class QGraphicsScene;
47 class QGraphicsRectItem;
48 
49 namespace KDGantt {
50  class GraphicsItem;
51  class KDGanttTreeView;
52 
54  class KDGanttTreeView : public QTreeView {
55  public:
56  explicit KDGanttTreeView( QAbstractProxyModel* proxy, QWidget* parent=0 );
57  virtual ~KDGanttTreeView();
58 
59  AbstractRowController* rowController() { return &m_controller; }
60  private:
61  TreeViewRowController m_controller;
62  };
63 
64  class View::Private {
65  public:
66  explicit Private(View*);
67  virtual ~Private();
68 
69  void init();
70 
71  GraphicsItem* createItem( ItemType type ) const;
72 
73  void updateScene();
74 
75  // slots
76  void slotCollapsed(const QModelIndex&);
77  void slotExpanded(const QModelIndex&);
78  void slotVerticalScrollValueChanged( int );
79  void slotLeftWidgetVerticalRangeChanged( int, int );
80  void slotGfxViewVerticalRangeChanged( int, int );
81 
82  View* q;
83 
84  QSplitter splitter;
85 
86  /* TODO: Refine/subclass */
87  //KDGanttTreeView treeview;
88  QPointer<QAbstractItemView> leftWidget;
89  AbstractRowController* rowController;
90  GraphicsView gfxview;
91  //KDGanttHeaderWidget headerwidget;
92 
93  QPointer<QAbstractItemModel> model;
94  ProxyModel ganttProxyModel;
95  //KDGanttTreeViewRowController rowController;
96  ConstraintModel mappedConstraintModel;
97  ConstraintProxy constraintProxy;
98  };
99 
100 }
101 #endif /* KDGANTTVIEW_P_H */
102 
QGraphicsScene
KDGantt::View
This widget that consists of a QTreeView and a GraphicsView.
Definition: kdganttview.h:47
KDGantt::GraphicsView
The GraphicsView class provides a model/view implementation of a gantt chart.
Definition: kdganttgraphicsview.h:44
QWidget
KDGantt::ItemType
ItemType
Definition: kdganttglobal.h:211
KDGantt::View::Private::createItem
GraphicsItem * createItem(ItemType type) const
KDGantt::View::Private::~Private
virtual ~Private()
Definition: kdganttview.cpp:80
KDGantt::View::Private::ganttProxyModel
ProxyModel ganttProxyModel
Definition: kdganttview_p.h:94
KDGantt::View::Private::init
void init()
Definition: kdganttview.cpp:84
KDGantt::View::Private::splitter
QSplitter splitter
Definition: kdganttview_p.h:84
KDGantt::View::Private::mappedConstraintModel
ConstraintModel mappedConstraintModel
Definition: kdganttview_p.h:96
kdganttdatetimegrid.h
QTreeView
KDGantt::TreeViewRowController
Definition: kdgantttreeviewrowcontroller.h:34
KDGantt::View::Private::constraintProxy
ConstraintProxy constraintProxy
Definition: kdganttview_p.h:97
kdganttconstraintproxy.h
KDGantt::View::Private::slotVerticalScrollValueChanged
void slotVerticalScrollValueChanged(int)
Definition: kdganttview.cpp:177
KDGantt::View::Private::rowController
AbstractRowController * rowController
Definition: kdganttview_p.h:89
kdgantttreeviewrowcontroller.h
QAbstractProxyModel
kdganttgraphicsview.h
KDGantt::View::Private::Private
Private(View *)
Definition: kdganttview.cpp:70
KDGantt::View::Private::slotGfxViewVerticalRangeChanged
void slotGfxViewVerticalRangeChanged(int, int)
Definition: kdganttview.cpp:193
KDGantt::ProxyModel
Definition: kdganttproxymodel.h:31
kdganttproxymodel.h
KDGantt::View::Private::q
View * q
Definition: kdganttview_p.h:82
KDGantt::View::Private::updateScene
void updateScene()
Definition: kdganttview.cpp:110
KDGantt::KDGanttTreeView::KDGanttTreeView
KDGanttTreeView(QAbstractProxyModel *proxy, QWidget *parent=0)
Definition: kdganttview.cpp:59
KDGantt::View::Private::slotLeftWidgetVerticalRangeChanged
void slotLeftWidgetVerticalRangeChanged(int, int)
Definition: kdganttview.cpp:186
KDGantt::ConstraintProxy
Definition: kdganttconstraintproxy.h:38
KDGantt::View::Private::leftWidget
QPointer< QAbstractItemView > leftWidget
Definition: kdganttview_p.h:88
QGraphicsView
KDGantt::View::Private
Definition: kdganttview_p.h:64
KDGantt::KDGanttTreeView::~KDGanttTreeView
virtual ~KDGanttTreeView()
Definition: kdganttview.cpp:66
KDGantt::View::Private::gfxview
GraphicsView gfxview
Definition: kdganttview_p.h:90
KDGantt::View::Private::model
QPointer< QAbstractItemModel > model
Definition: kdganttview_p.h:93
kdganttconstraintmodel.h
KDGantt::View::Private::slotCollapsed
void slotCollapsed(const QModelIndex &)
Definition: kdganttview.cpp:130
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::View::Private::slotExpanded
void slotExpanded(const QModelIndex &)
Definition: kdganttview.cpp:166
KDGantt::ConstraintModel
Definition: kdganttconstraintmodel.h:35
KDGantt::KDGanttTreeView::rowController
AbstractRowController * rowController()
Definition: kdganttview_p.h:59
kdganttview.h
KDGantt::KDGanttTreeView
Definition: kdganttview_p.h:54
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