KD Chart 2  [rev.2.7]
Namespaces | Macros | Enumerations | Functions
KDChartGlobal.h File Reference
#include <qglobal.h>
#include "kdchart_export.h"
#include <QtAlgorithms>
#include <algorithm>
#include <Qt>

Go to the source code of this file.

Namespaces

 KDChart
 

Macros

#define KDAB_SET_OBJECT_NAME(x)   __kdab__dereference_for_methodcall( x ).setObjectName( QLatin1String( #x ) )
 
#define KDCHART_DECLARE_DERIVED_DIAGRAM(X, PLANE)
 
#define KDCHART_DECLARE_PRIVATE_BASE_POLYMORPHIC(X)
 
#define KDCHART_DECLARE_PRIVATE_BASE_POLYMORPHIC_QWIDGET(X)
 
#define KDCHART_DECLARE_PRIVATE_BASE_VALUE(X)
 
#define KDCHART_DECLARE_PRIVATE_DERIVED(X)
 
#define KDCHART_DECLARE_PRIVATE_DERIVED_PARENT(X, ParentType)
 
#define KDCHART_DECLARE_PRIVATE_DERIVED_QWIDGET(X)   KDCHART_DECLARE_PRIVATE_DERIVED_PARENT( X, QWidget* )
 
#define KDCHART_DECLARE_SWAP_BASE(X)
 
#define KDCHART_DECLARE_SWAP_DERIVED(X)   void swap( X& other ) { doSwap( other ); }
 
#define KDCHART_DECLARE_SWAP_SPECIALISATION(X)
 
#define KDCHART_DECLARE_SWAP_SPECIALISATION_DERIVED(X)   KDCHART_DECLARE_SWAP_SPECIALISATION( X )
 
#define KDCHART_DERIVED_PRIVATE_FOOTER(CLASS, PARENT)
 
#define KDCHART_IMPL_DERIVED_DIAGRAM(CLASS, PARENT, PLANE)
 
#define KDCHART_IMPL_DERIVED_PLANE(CLASS, BASEPLANE)
 

Enumerations

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

Functions

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

Macro Definition Documentation

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

Definition at line 45 of file KDChartGlobal.h.

#define KDCHART_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();
Class only listed here to document inheritance of some KDChart classes.

Definition at line 113 of file KDChartGlobal.h.

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

Definition at line 82 of file KDChartGlobal.h.

Referenced by KDChart::AbstractThreeDAttributes::operator!=().

#define KDCHART_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;
Class only listed here to document inheritance of some KDChart classes.

Definition at line 93 of file KDChartGlobal.h.

#define KDCHART_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 71 of file KDChartGlobal.h.

Referenced by KDChart::TextAttributes::operator!=(), KDChart::FrameAttributes::operator!=(), KDChart::BackgroundAttributes::operator!=(), KDChart::LeveyJenningsGridAttributes::operator!=(), KDChart::PieAttributes::operator!=(), KDChart::LineAttributes::operator!=(), KDChart::GridAttributes::operator!=(), KDChart::ValueTrackerAttributes::operator!=(), KDChart::RulerAttributes::operator!=(), and KDChart::DataValueAttributes::position().

#define KDCHART_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 48 of file KDChartGlobal.h.

Referenced by KDChart::ThreeDPieAttributes::operator!=(), KDChart::ThreeDLineAttributes::operator!=(), and KDChart::ThreeDBarAttributes::operator!=().

#define KDCHART_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 58 of file KDChartGlobal.h.

#define KDCHART_DECLARE_PRIVATE_DERIVED_QWIDGET (   X)    KDCHART_DECLARE_PRIVATE_DERIVED_PARENT( X, QWidget* )

Definition at line 68 of file KDChartGlobal.h.

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

Definition at line 168 of file KDChartGlobal.h.

Referenced by KDChart::AbstractThreeDAttributes::operator!=().

#define KDCHART_DECLARE_SWAP_DERIVED (   X)    void swap( X& other ) { doSwap( other ); }
#define KDCHART_DECLARE_SWAP_SPECIALISATION (   X)
#define KDCHART_DECLARE_SWAP_SPECIALISATION_DERIVED (   X)    KDCHART_DECLARE_SWAP_SPECIALISATION( X )
#define KDCHART_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 104 of file KDChartGlobal.h.

#define KDCHART_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() ); }
Class only listed here to document inheritance of some KDChart classes.

Definition at line 124 of file KDChartGlobal.h.

#define KDCHART_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 136 of file KDChartGlobal.h.

Function Documentation

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

Definition at line 36 of file KDChartGlobal.h.

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

Definition at line 41 of file KDChartGlobal.h.


Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/

https://www.kdab.com/development-resources/qt-tools/kd-chart/