• 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
kdganttconstraintproxy.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 KDGANTTCONSTRAINTPROXY_H
26 #define KDGANTTCONSTRAINTPROXY_H
27 
28 #include "kdganttglobal.h"
29 
30 #include <QPointer>
31 
32 class QAbstractProxyModel;
33 
34 namespace KDGantt {
35  class Constraint;
36  class ConstraintModel;
37 
38  class ConstraintProxy : public QObject {
39  Q_OBJECT
40  public:
41  explicit ConstraintProxy( QObject* parent = 0 );
42  virtual ~ConstraintProxy();
43 
44  void setSourceModel( ConstraintModel* src );
45  void setDestinationModel( ConstraintModel* dest );
46  void setProxyModel( QAbstractProxyModel* proxy );
47 
48  ConstraintModel* sourceModel() const;
49  ConstraintModel* destinationModel() const;
50  QAbstractProxyModel* proxyModel() const;
51 
52 
53  private Q_SLOTS:
54 
55  void slotSourceConstraintAdded( const Constraint& );
56  void slotSourceConstraintRemoved( const Constraint& );
57 
58  void slotDestinationConstraintAdded( const Constraint& );
59  void slotDestinationConstraintRemoved( const Constraint& );
60 
61  private:
62  void copyFromSource();
63 
64  QPointer<QAbstractProxyModel> m_proxy;
65  QPointer<ConstraintModel> m_source;
66  QPointer<ConstraintModel> m_destination;
67  };
68 }
69 
70 #endif /* KDGANTTCONSTRAINTPROXY_H */
71 
kdganttglobal.h
KDGantt::ConstraintProxy::proxyModel
QAbstractProxyModel * proxyModel() const
Definition: kdganttconstraintproxy.cpp:78
QObject
KDGantt::ConstraintProxy::~ConstraintProxy
virtual ~ConstraintProxy()
Definition: kdganttconstraintproxy.cpp:41
KDGantt::ConstraintProxy::destinationModel
ConstraintModel * destinationModel() const
Definition: kdganttconstraintproxy.cpp:77
KDGantt::ConstraintProxy::sourceModel
ConstraintModel * sourceModel() const
Definition: kdganttconstraintproxy.cpp:76
KDGantt::ConstraintProxy::setSourceModel
void setSourceModel(ConstraintModel *src)
Definition: kdganttconstraintproxy.cpp:45
KDGantt::ConstraintProxy::setProxyModel
void setProxyModel(QAbstractProxyModel *proxy)
Definition: kdganttconstraintproxy.cpp:71
KDGantt::ConstraintProxy::setDestinationModel
void setDestinationModel(ConstraintModel *dest)
Definition: kdganttconstraintproxy.cpp:58
QAbstractProxyModel
KDGantt::Constraint
A class used to represent a dependency.
Definition: kdganttconstraint.h:38
KDGantt::ConstraintProxy::ConstraintProxy
ConstraintProxy(QObject *parent=0)
Definition: kdganttconstraintproxy.cpp:36
KDGantt::ConstraintProxy
Definition: kdganttconstraintproxy.h:38
KDGantt::ConstraintModel
Definition: kdganttconstraintmodel.h:35
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