KDChartWidget.cpp File Reference

#include <KDChartWidget.h>
#include <KDChartWidget_p.h>
#include <KDChartAbstractDiagram.h>
#include <KDChartBarDiagram.h>
#include <KDChartChart.h>
#include <KDChartAbstractCoordinatePlane.h>
#include <KDChartLineDiagram.h>
#include <KDChartPlotter.h>
#include <KDChartPieDiagram.h>
#include <KDChartPolarDiagram.h>
#include <KDChartRingDiagram.h>
#include <KDChartLegend.h>
#include <QDebug>
#include <KDABLibFakes>

Include dependency graph for KDChartWidget.cpp:

Go to the source code of this file.

Defines

#define d   d_func()
#define SET_SUB_TYPE(DIAGRAM, SUBTYPE)
#define TEST_SUB_TYPE(DIAGRAM, INTERNALSUBTYPE, SUBTYPE)

Functions

static bool isCartesian (KDChart::Widget::ChartType type)
static bool isPolar (KDChart::Widget::ChartType type)


Define Documentation

#define d   d_func()

Definition at line 48 of file KDChartWidget.cpp.

#define SET_SUB_TYPE ( DIAGRAM,
SUBTYPE   ) 

Value:

{ \
    if( DIAGRAM ) \
        DIAGRAM->setType( SUBTYPE ); \
}

Referenced by KDChart::Widget::setSubType().

#define TEST_SUB_TYPE ( DIAGRAM,
INTERNALSUBTYPE,
SUBTYPE   ) 

Value:

{ \
    if( DIAGRAM && DIAGRAM->type() == INTERNALSUBTYPE ) \
        retVal = SUBTYPE; \
}

Referenced by KDChart::Widget::subType().


Function Documentation

static bool isCartesian ( KDChart::Widget::ChartType  type  )  [static]

Definition at line 389 of file KDChartWidget.cpp.

References KDChart::Widget::Bar, and KDChart::Widget::Line.

Referenced by KDChart::Widget::setType().

00390 {
00391     return (type == KDChart::Widget::Bar) || (type == KDChart::Widget::Line);
00392 }

static bool isPolar ( KDChart::Widget::ChartType  type  )  [static]

Definition at line 394 of file KDChartWidget.cpp.

References KDChart::Widget::Pie, KDChart::Widget::Polar, and KDChart::Widget::Ring.

Referenced by KDChart::Widget::setType().

00395 {
00396     return     (type == KDChart::Widget::Pie)
00397             || (type == KDChart::Widget::Ring)
00398             || (type == KDChart::Widget::Polar);
00399 }


Generated on Thu Mar 4 23:23:39 2010 for KD Chart 2 by  doxygen 1.5.4