~ubuntu-branches/ubuntu/oneiric/koffice/oneiric-updates

« back to all changes in this revision

Viewing changes to kchart/kdchart/src/KDChartAbstractAxis_p.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/****************************************************************************
2
 
 ** Copyright (C) 2007 Klarälvdalens Datakonsult AB.  All rights reserved.
3
 
 **
4
 
 ** This file is part of the KD Chart library.
5
 
 **
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).
13
 
 ** 
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.
18
 
 ** 
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.
21
 
 **
22
 
 **********************************************************************/
23
 
 
24
 
#ifndef KDCHARTAXIS_P_H
25
 
#define KDCHARTAXIS_P_H
26
 
 
27
 
//
28
 
//  W A R N I N G
29
 
//  -------------
30
 
//
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.
34
 
//
35
 
// We mean it.
36
 
//
37
 
 
38
 
#include <QQueue>
39
 
#include <QTimer>
40
 
 
41
 
#include "KDChartAbstractArea_p.h"
42
 
#include "KDChartAbstractDiagram.h"
43
 
#include <KDChartTextAttributes.h>
44
 
#include <KDChartRulerAttributes.h>
45
 
#include <KDChartDiagramObserver.h>
46
 
 
47
 
#include <KDABLibFakes>
48
 
 
49
 
 
50
 
namespace KDChart {
51
 
 
52
 
/**
53
 
 * \internal
54
 
 */
55
 
class AbstractAxis::Private : public AbstractArea::Private
56
 
{
57
 
    friend class AbstractAxis;
58
 
 
59
 
public:
60
 
    Private( AbstractDiagram* diagram, AbstractAxis* axis );
61
 
    ~Private();
62
 
 
63
 
    bool setDiagram(   AbstractDiagram* diagram, bool delayedInit = false );
64
 
    void unsetDiagram( AbstractDiagram* diagram );
65
 
    const AbstractDiagram* diagram() const
66
 
    {
67
 
        return mDiagram;
68
 
    }
69
 
    bool hasDiagram( AbstractDiagram* diagram ) const;
70
 
 
71
 
    DiagramObserver* observer;
72
 
 
73
 
    TextAttributes textAttributes;
74
 
    RulerAttributes rulerAttributes;
75
 
    QStringList hardLabels;
76
 
    QStringList hardShortLabels;
77
 
    QQueue<AbstractDiagram*> secondaryDiagrams;
78
 
 
79
 
protected:
80
 
    AbstractDiagram* mDiagram;
81
 
    AbstractAxis*    mAxis;
82
 
};
83
 
 
84
 
 
85
 
inline AbstractAxis::AbstractAxis( Private * p, AbstractDiagram* diagram )
86
 
    :  AbstractArea( p )
87
 
{
88
 
    Q_UNUSED( diagram );
89
 
    init();
90
 
    QTimer::singleShot(0, this, SLOT(delayedInit()));
91
 
}
92
 
 
93
 
inline AbstractAxis::Private * AbstractAxis::d_func()
94
 
{ return static_cast<Private*>( AbstractArea::d_func() ); }
95
 
inline const AbstractAxis::Private * AbstractAxis::d_func() const
96
 
{ return static_cast<const Private*>( AbstractArea::d_func() ); }
97
 
 
98
 
}
99
 
#endif /* KDCHARTAREA_P_H */
100