~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to kchart/kdchart/src/KDChartBarAttributes.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 KDCHARTBARATTRIBUTES_H
25
 
#define KDCHARTBARATTRIBUTES_H
26
 
 
27
 
#include <QMetaType>
28
 
#include "KDChartGlobal.h"
29
 
 
30
 
namespace KDChart {
31
 
 
32
 
/**
33
 
  * @brief Set of attributes for changing the appearance of bar charts
34
 
  */
35
 
class KDCHART_EXPORT BarAttributes
36
 
{
37
 
public:
38
 
    BarAttributes();
39
 
    BarAttributes( const BarAttributes& );
40
 
    BarAttributes &operator= ( const BarAttributes& );
41
 
 
42
 
    ~BarAttributes();
43
 
 
44
 
    void setFixedDataValueGap( qreal gap );
45
 
    qreal fixedDataValueGap() const;
46
 
 
47
 
    void setUseFixedDataValueGap( bool gapIsFixed );
48
 
    bool useFixedDataValueGap() const;
49
 
 
50
 
    void setFixedValueBlockGap( qreal gap );
51
 
    qreal fixedValueBlockGap() const;
52
 
 
53
 
    void setUseFixedValueBlockGap( bool gapIsFixed );
54
 
    bool useFixedValueBlockGap() const;
55
 
 
56
 
    void setFixedBarWidth( qreal width );
57
 
    qreal fixedBarWidth() const;
58
 
 
59
 
    void setUseFixedBarWidth( bool useFixedBarWidth );
60
 
    bool useFixedBarWidth() const;
61
 
 
62
 
    void setGroupGapFactor ( qreal gapFactor );
63
 
    qreal groupGapFactor() const;
64
 
 
65
 
    void setBarGapFactor( qreal gapFactor );
66
 
    qreal barGapFactor() const;
67
 
 
68
 
    void setDrawSolidExcessArrows( bool solidArrows );
69
 
    bool drawSolidExcessArrows() const;
70
 
 
71
 
    bool operator==( const BarAttributes& ) const;
72
 
    inline bool operator!=( const BarAttributes& other ) const { return !operator==(other); }
73
 
 
74
 
private:
75
 
    class Private;
76
 
    Private * _d;
77
 
    Private * d_func() { return _d; }
78
 
    const Private * d_func() const { return _d; }
79
 
}; // End of class BarAttributes
80
 
 
81
 
}
82
 
 
83
 
Q_DECLARE_METATYPE( KDChart::BarAttributes )
84
 
 
85
 
#endif // KDCHARTBARATTRIBUTES_H