1
/****************************************************************************
2
** Copyright (C) 2007 Klarälvdalens Datakonsult AB. All rights reserved.
4
** This file is part of the KD Chart library.
6
** This file may be used under the terms of the GNU General Public
7
** License versions 2.0 or 3.0 as published by the Free Software
8
** Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
9
** included in the packaging of this file. Alternatively you may (at
10
** your option) use any later version of the GNU General Public
11
** License if such license has been publicly approved by
12
** Klarälvdalens Datakonsult AB (or its successors, if any).
14
** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
15
** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
16
** A PARTICULAR PURPOSE. Klarälvdalens Datakonsult AB reserves all rights
17
** not expressly granted herein.
19
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22
**********************************************************************/
24
#ifndef KDCHARTABSTRCOORDINATEPLANE_P_H
25
#define KDCHARTABSTRCOORDINATEPLANE_P_H
31
// This file is not part of the KD Chart API. It exists purely as an
32
// implementation detail. This header file may change from version to
33
// version without notice, or even be removed.
38
#include "KDChartAbstractArea_p.h"
39
#include <KDChartAbstractCoordinatePlane.h>
40
#include <KDChartGridAttributes.h>
41
#include <KDChartAbstractGrid.h>
42
#include <KDChartZoomParameters.h>
44
#include <KDABLibFakes>
56
class AbstractCoordinatePlane::Private : public AbstractArea::Private
58
friend class AbstractCoordinatePlane;
65
virtual void initialize()
67
qDebug("ERROR: Calling AbstractCoordinatePlane::Private::initialize()");
68
// can not call the base class: grid = new AbstractGrid();
71
virtual bool isVisiblePoint(
72
const AbstractCoordinatePlane * plane,
73
const QPointF& point ) const
80
KDChart::Chart* parent;
83
AbstractDiagramList diagrams;
84
GridAttributes gridAttributes;
85
AbstractCoordinatePlane *referenceCoordinatePlane;
87
bool enableRubberBandZooming;
88
QRubberBand* rubberBand;
89
QPoint rubberBandOrigin;
91
QStack< ZoomParameters > rubberBandZoomConfigHistory;
95
inline AbstractCoordinatePlane::AbstractCoordinatePlane( Private * p, KDChart::Chart* parent )
102
inline AbstractCoordinatePlane::Private * AbstractCoordinatePlane::d_func()
104
return static_cast<Private*>( AbstractArea::d_func() );
106
inline const AbstractCoordinatePlane::Private * AbstractCoordinatePlane::d_func() const
108
return static_cast<const Private*>( AbstractArea::d_func() );
114
#endif /* KDCHARTABSTRACTCOORDINATEPLANE_P_H*/