KGantt

kganttglobal.h File Reference
#include <Qt>
#include <QDateTime>
#include <QDebug>
#include <QMetaType>
#include "kgantt_export.h"
#include <QtAlgorithms>
#include <algorithm>
Include dependency graph for kganttglobal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  KGantt::Span
 

Namespaces

 KGantt
 

Macros

#define KDAB_SET_OBJECT_NAME(x)   __kdab__dereference_for_methodcall( x ).setObjectName( QLatin1String( #x ) )
 
#define KGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC(X)
 
#define KGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC_QWIDGET(X)
 
#define KGANTT_DECLARE_PRIVATE_BASE_VALUE(X)
 
#define KGANTT_DECLARE_PRIVATE_DERIVED(X)
 
#define KGANTT_DECLARE_PRIVATE_DERIVED_PARENT(X, ParentType)
 
#define KGANTT_DECLARE_PRIVATE_DERIVED_QWIDGET(X)    KGANTT_DECLARE_PRIVATE_DERIVED_PARENT( X, QWidget* )
 
#define KGANTT_DECLARE_SWAP_BASE(X)
 
#define KGANTT_DECLARE_SWAP_DERIVED(X)   void swap( X& other ) { doSwap( other ); }
 
#define KGANTT_DECLARE_SWAP_SPECIALISATION(X)
 
#define KGANTT_DECLARE_SWAP_SPECIALISATION_DERIVED(X)    KGANTT_DECLARE_SWAP_SPECIALISATION( X )
 

Enumerations

enum  KGantt::ItemDataRole {
  KGantt::KGanttRoleBase = Qt::UserRole + 1174, KGantt::StartTimeRole = KGanttRoleBase + 1, KGantt::EndTimeRole = KGanttRoleBase + 2, KGantt::TaskCompletionRole = KGanttRoleBase + 3,
  KGantt::ItemTypeRole = KGanttRoleBase + 4, KGantt::LegendRole = KGanttRoleBase + 5, KGantt::TextPositionRole = KGanttRoleBase + 6
}
 
enum  KGantt::ItemType {
  TypeNone = 0, TypeEvent = 1, TypeTask = 2, TypeSummary = 3,
  TypeMulti = 4, TypeUser = 1000
}
 

Functions

template<typename T >
T & __kdab__dereference_for_methodcall (T &o)
 
template<typename T >
T & __kdab__dereference_for_methodcall (T *o)
 
bool KGantt::operator!= (const Span &s1, const Span &s2)
 
bool KGantt::operator!= (const DateTimeSpan &s1, const DateTimeSpan &s2)
 
QDebug KGANTT_EXPORT operator<< (QDebug dbg, KGantt::ItemDataRole r)
 
QDebug KGANTT_EXPORT operator<< (QDebug dbg, KGantt::ItemType t)
 
QDebug KGANTT_EXPORT operator<< (QDebug dbg, const KGantt::Span &s)
 
QDebug KGANTT_EXPORT operator<< (QDebug dbg, const KGantt::DateTimeSpan &s)
 
bool KGantt::operator== (const Span &s1, const Span &s2)
 
bool KGantt::operator== (const DateTimeSpan &s1, const DateTimeSpan &s2)
 
QT_BEGIN_NAMESPACE Q_DECLARE_TYPEINFO (KGantt::Span, Q_MOVABLE_TYPE)
 
 Q_DECLARE_TYPEINFO (KGantt::DateTimeSpan, Q_MOVABLE_TYPE)
 

Detailed Description

Contains KGantt macros.

Contains KGantt macros.

Definition in file kganttglobal.h.

Macro Definition Documentation

#define KGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC (   X)
Value:
protected: \
class Private; \
friend class Private; \
Private * d_func() { return _d; } \
const Private * d_func() const { return _d; } \
explicit inline X( Private * ); \
private: \
void init(); \
Private * _d;
QCA_EXPORT void init()

Definition at line 117 of file kganttglobal.h.

#define KGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC_QWIDGET (   X)
Value:
protected: \
class Private; \
friend class Private; \
Private * d_func() { return _d; } \
const Private * d_func() const { return _d; } \
explicit inline X( Private *, QWidget* ); \
private: \
void init(); \
Private * _d;
QCA_EXPORT void init()

Definition at line 142 of file kganttglobal.h.

#define KGANTT_DECLARE_PRIVATE_BASE_VALUE (   X)
Value:
public: \
inline void swap( X & other ) { qSwap( _d, other._d ); } \
protected: \
class Private; \
friend class Private; \
Private * d_func() { return _d; } \
const Private * d_func() const { return _d; } \
private: \
void init(); \
Private * _d;
QCA_EXPORT void init()

Definition at line 92 of file kganttglobal.h.

#define KGANTT_DECLARE_PRIVATE_DERIVED (   X)
Value:
protected: \
class Private; \
friend class Private; \
inline Private * d_func(); \
inline const Private * d_func() const; \
explicit inline X( Private * ); \
private: \
void init();
QCA_EXPORT void init()

Definition at line 55 of file kganttglobal.h.

#define KGANTT_DECLARE_PRIVATE_DERIVED_PARENT (   X,
  ParentType 
)
Value:
protected: \
class Private; \
friend class Private; \
inline Private * d_func(); \
inline const Private * d_func() const; \
explicit inline X( Private *, ParentType ); \
private: \
void init();
QCA_EXPORT void init()

Definition at line 78 of file kganttglobal.h.

#define KGANTT_DECLARE_SWAP_BASE (   X)
Value:
protected: \
void doSwap( X& other ) \
{ qSwap( _d, other._d); }

Definition at line 184 of file kganttglobal.h.

#define KGANTT_DECLARE_SWAP_SPECIALISATION (   X)
Value:
QT_BEGIN_NAMESPACE \
template <> inline void qSwap<X>( X & lhs, X & rhs ) \
{ lhs.swap( rhs ); } \
QT_END_NAMESPACE \
namespace std { \
template <> inline void swap<X>( X & lhs, X & rhs ) \
{ lhs.swap( rhs ); } \
}

Definition at line 164 of file kganttglobal.h.

This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Dec 5 2021 22:32:42 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.