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

namespace  KGantt
 

Macros

#define KDAB_SET_OBJECT_NAME(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)
 
#define KGANTT_DECLARE_SWAP_BASE(X)
 
#define KGANTT_DECLARE_SWAP_DERIVED(X)
 
#define KGANTT_DECLARE_SWAP_SPECIALISATION(X)
 
#define KGANTT_DECLARE_SWAP_SPECIALISATION_DERIVED(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  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 DateTimeSpan &s1, const DateTimeSpan &s2)
 
bool KGantt::operator!= (const Span &s1, const Span &s2)
 
QDebug KGANTT_EXPORT operator<< (QDebug dbg, const KGantt::DateTimeSpan &s)
 
QDebug KGANTT_EXPORT operator<< (QDebug dbg, const KGantt::Span &s)
 
QDebug KGANTT_EXPORT operator<< (QDebug dbg, KGantt::ItemDataRole r)
 
QDebug KGANTT_EXPORT operator<< (QDebug dbg, KGantt::ItemType t)
 
bool KGantt::operator== (const DateTimeSpan &s1, const DateTimeSpan &s2)
 
bool KGantt::operator== (const Span &s1, const Span &s2)
 
 Q_DECLARE_TYPEINFO (KGantt::DateTimeSpan, Q_MOVABLE_TYPE)
 
QT_BEGIN_NAMESPACE Q_DECLARE_TYPEINFO (KGantt::Span, Q_MOVABLE_TYPE)
 

Detailed Description

Contains KGantt macros.

Contains KGantt macros.

Definition in file kganttglobal.h.

Macro Definition Documentation

◆ KDAB_SET_OBJECT_NAME

#define KDAB_SET_OBJECT_NAME ( x)
Value:
__kdab__dereference_for_methodcall( x ).setObjectName( QLatin1String( #x ) )

Definition at line 40 of file kganttglobal.h.

◆ KGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC

#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.

◆ KGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC_QWIDGET

#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;

Definition at line 142 of file kganttglobal.h.

◆ KGANTT_DECLARE_PRIVATE_BASE_VALUE

#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;

Definition at line 92 of file kganttglobal.h.

◆ KGANTT_DECLARE_PRIVATE_DERIVED

#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();

Definition at line 55 of file kganttglobal.h.

◆ KGANTT_DECLARE_PRIVATE_DERIVED_PARENT

#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();

Definition at line 78 of file kganttglobal.h.

◆ KGANTT_DECLARE_PRIVATE_DERIVED_QWIDGET

#define KGANTT_DECLARE_PRIVATE_DERIVED_QWIDGET ( X)
Value:
KGANTT_DECLARE_PRIVATE_DERIVED_PARENT( X, QWidget* )

Definition at line 89 of file kganttglobal.h.

◆ KGANTT_DECLARE_SWAP_BASE

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

Definition at line 184 of file kganttglobal.h.

◆ KGANTT_DECLARE_SWAP_DERIVED

#define KGANTT_DECLARE_SWAP_DERIVED ( X)
Value:
void swap( X& other ) { doSwap( other ); }

Definition at line 189 of file kganttglobal.h.

◆ KGANTT_DECLARE_SWAP_SPECIALISATION

#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.

◆ KGANTT_DECLARE_SWAP_SPECIALISATION_DERIVED

#define KGANTT_DECLARE_SWAP_SPECIALISATION_DERIVED ( X)
Value:
KGANTT_DECLARE_SWAP_SPECIALISATION( X )

Definition at line 181 of file kganttglobal.h.

Function Documentation

◆ __kdab__dereference_for_methodcall() [1/2]

template<typename T >
T & __kdab__dereference_for_methodcall ( T & o)
inline

Definition at line 31 of file kganttglobal.h.

◆ __kdab__dereference_for_methodcall() [2/2]

template<typename T >
T & __kdab__dereference_for_methodcall ( T * o)
inline

Definition at line 36 of file kganttglobal.h.

◆ operator<<() [1/4]

QDebug KGANTT_EXPORT operator<< ( QDebug dbg,
const KGantt::DateTimeSpan & s )

Definition at line 85 of file kganttglobal.cpp.

◆ operator<<() [2/4]

QDebug KGANTT_EXPORT operator<< ( QDebug dbg,
const KGantt::Span & s )

Definition at line 80 of file kganttglobal.cpp.

◆ operator<<() [3/4]

QDebug KGANTT_EXPORT operator<< ( QDebug dbg,
KGantt::ItemDataRole r )

Definition at line 53 of file kganttglobal.cpp.

◆ operator<<() [4/4]

QDebug KGANTT_EXPORT operator<< ( QDebug dbg,
KGantt::ItemType t )

Definition at line 66 of file kganttglobal.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.