KChart

KChartGlobal.h File Reference
#include <qglobal.h>
#include "kchart_export.h"
#include <QtAlgorithms>
#include <algorithm>
#include <Qt>
Include dependency graph for KChartGlobal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  KChart
 

Macros

#define KCHART_DECLARE_DERIVED_DIAGRAM(X, PLANE)
 
#define KCHART_DECLARE_PRIVATE_BASE_POLYMORPHIC(X)
 
#define KCHART_DECLARE_PRIVATE_BASE_POLYMORPHIC_QWIDGET(X)
 
#define KCHART_DECLARE_PRIVATE_BASE_VALUE(X)
 
#define KCHART_DECLARE_PRIVATE_DERIVED(X)
 
#define KCHART_DECLARE_PRIVATE_DERIVED_PARENT(X, ParentType)
 
#define KCHART_DECLARE_PRIVATE_DERIVED_QWIDGET(X)    KCHART_DECLARE_PRIVATE_DERIVED_PARENT( X, QWidget* )
 
#define KCHART_DECLARE_SWAP_BASE(X)
 
#define KCHART_DECLARE_SWAP_DERIVED(X)    void swap( X& other ) { doSwap( other ); }
 
#define KCHART_DECLARE_SWAP_SPECIALISATION(X)
 
#define KCHART_DECLARE_SWAP_SPECIALISATION_DERIVED(X)    KCHART_DECLARE_SWAP_SPECIALISATION( X )
 
#define KCHART_DERIVED_PRIVATE_FOOTER(CLASS, PARENT)
 
#define KCHART_IMPL_DERIVED_DIAGRAM(CLASS, PARENT, PLANE)
 
#define KCHART_IMPL_DERIVED_PLANE(CLASS, BASEPLANE)
 
#define KDAB_SET_OBJECT_NAME(x)   __kdab__dereference_for_methodcall( x ).setObjectName( QLatin1String( #x ) )
 

Enumerations

enum  DisplayRoles {
  DatasetPenRole = 0x0A79EF95 , DatasetBrushRole , DataValueLabelAttributesRole , ThreeDAttributesRole ,
  LineAttributesRole , ThreeDLineAttributesRole , BarAttributesRole , StockBarAttributesRole ,
  ThreeDBarAttributesRole , PieAttributesRole , ThreeDPieAttributesRole , DataHiddenRole ,
  ValueTrackerAttributesRole , CommentRole
}
 

Functions

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

Detailed Description

Contains KChart macros.

Contains KChart macros.

Definition in file KChartGlobal.h.

Macro Definition Documentation

◆ KCHART_DECLARE_DERIVED_DIAGRAM

#define KCHART_DECLARE_DERIVED_DIAGRAM ( X,
PLANE )
Value:
public: \
class Private; \
protected: \
inline Private * d_func(); \
inline const Private * d_func() const; \
explicit inline X( Private * ); \
explicit inline X( Private *, QWidget *, PLANE * ); \
private: \
void init();

Definition at line 99 of file KChartGlobal.h.

◆ KCHART_DECLARE_PRIVATE_BASE_POLYMORPHIC

#define KCHART_DECLARE_PRIVATE_BASE_POLYMORPHIC ( X)
Value:
public: \
class Private; \
protected: \
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 68 of file KChartGlobal.h.

◆ KCHART_DECLARE_PRIVATE_BASE_POLYMORPHIC_QWIDGET

#define KCHART_DECLARE_PRIVATE_BASE_POLYMORPHIC_QWIDGET ( X)
Value:
public: \
class Private; \
protected: \
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 79 of file KChartGlobal.h.

◆ KCHART_DECLARE_PRIVATE_BASE_VALUE

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

Definition at line 57 of file KChartGlobal.h.

◆ KCHART_DECLARE_PRIVATE_DERIVED

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

Definition at line 34 of file KChartGlobal.h.

◆ KCHART_DECLARE_PRIVATE_DERIVED_PARENT

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

Definition at line 44 of file KChartGlobal.h.

◆ KCHART_DECLARE_PRIVATE_DERIVED_QWIDGET

#define KCHART_DECLARE_PRIVATE_DERIVED_QWIDGET ( X)     KCHART_DECLARE_PRIVATE_DERIVED_PARENT( X, QWidget* )

Definition at line 54 of file KChartGlobal.h.

◆ KCHART_DECLARE_SWAP_BASE

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

Definition at line 154 of file KChartGlobal.h.

◆ KCHART_DECLARE_SWAP_DERIVED

#define KCHART_DECLARE_SWAP_DERIVED ( X)     void swap( X& other ) { doSwap( other ); }

Definition at line 159 of file KChartGlobal.h.

◆ KCHART_DECLARE_SWAP_SPECIALISATION

#define KCHART_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 134 of file KChartGlobal.h.

◆ KCHART_DECLARE_SWAP_SPECIALISATION_DERIVED

#define KCHART_DECLARE_SWAP_SPECIALISATION_DERIVED ( X)     KCHART_DECLARE_SWAP_SPECIALISATION( X )

Definition at line 151 of file KChartGlobal.h.

◆ KCHART_DERIVED_PRIVATE_FOOTER

#define KCHART_DERIVED_PRIVATE_FOOTER ( CLASS,
PARENT )
Value:
inline CLASS::CLASS( Private * p ) \
: PARENT( p ) { init(); } \
inline CLASS::Private * CLASS::d_func() \
{ return static_cast<Private*>( PARENT::d_func() ); } \
inline const CLASS::Private * CLASS::d_func() const \
{ return static_cast<const Private*>( PARENT::d_func() ); }

Definition at line 90 of file KChartGlobal.h.

◆ KCHART_IMPL_DERIVED_DIAGRAM

#define KCHART_IMPL_DERIVED_DIAGRAM ( CLASS,
PARENT,
PLANE )
Value:
inline CLASS::CLASS( Private * p ) \
: PARENT( p ) { init(); } \
inline CLASS::CLASS( \
Private * p, QWidget* parent, PLANE * plane ) \
: PARENT( p, parent, plane ) { init(); } \
inline CLASS::Private * CLASS::d_func() \
{ return static_cast<Private *>( PARENT::d_func() ); } \
inline const CLASS::Private * CLASS::d_func() const \
{ return static_cast<const Private *>( PARENT::d_func() ); }

Definition at line 110 of file KChartGlobal.h.

◆ KCHART_IMPL_DERIVED_PLANE

#define KCHART_IMPL_DERIVED_PLANE ( CLASS,
BASEPLANE )
Value:
inline CLASS::CLASS( Private * p, Chart* parent ) \
: BASEPLANE( p, parent ) { init(); } \
inline CLASS::Private * CLASS::d_func() \
{ return static_cast<Private *>( BASEPLANE::d_func() ); } \
inline const CLASS::Private * CLASS::d_func() const \
{ return static_cast<const Private *>( BASEPLANE::d_func() ); }

Definition at line 122 of file KChartGlobal.h.

◆ KDAB_SET_OBJECT_NAME

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

Definition at line 31 of file KChartGlobal.h.

Function Documentation

◆ __kdab__dereference_for_methodcall() [1/2]

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

Definition at line 22 of file KChartGlobal.h.

◆ __kdab__dereference_for_methodcall() [2/2]

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

Definition at line 27 of file KChartGlobal.h.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.