File indexing completed on 2024-06-09 04:18:33

0001 /*
0002  * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
0003  *
0004  * This file is part of the KD Chart library.
0005  *
0006  * SPDX-License-Identifier: GPL-2.0-or-later
0007  */
0008 
0009 #ifndef KCHARTTHREEDPIEATTRIBUTES_H
0010 #define KCHARTTHREEDPIEATTRIBUTES_H
0011 
0012 #include <QMetaType>
0013 #include "KChartAbstractThreeDAttributes.h"
0014 #include "KChartGlobal.h"
0015 
0016 namespace KChart {
0017 
0018   /**
0019     * @brief A set of 3D pie attributes
0020     */
0021   class KCHART_EXPORT ThreeDPieAttributes : public AbstractThreeDAttributes
0022   {
0023   public:
0024     ThreeDPieAttributes();
0025     ThreeDPieAttributes( const ThreeDPieAttributes& );
0026     ThreeDPieAttributes &operator= ( const ThreeDPieAttributes& );
0027 
0028     ~ThreeDPieAttributes() override;
0029 
0030     /* threeD Pies specific */
0031     void setUseShadowColors( bool useShadowColors );
0032     bool useShadowColors() const;
0033 
0034     bool operator==( const ThreeDPieAttributes& ) const;
0035     inline bool operator!=( const ThreeDPieAttributes& other ) const { return !operator==(other); }
0036 
0037     KCHART_DECLARE_SWAP_DERIVED(ThreeDPieAttributes)
0038 
0039 private:
0040     KCHART_DECLARE_PRIVATE_DERIVED(ThreeDPieAttributes)
0041 
0042   }; // End of class ThreeDPieAttributes
0043 
0044 }
0045 
0046 #if !defined(QT_NO_DEBUG_STREAM)
0047 KCHART_EXPORT QDebug operator<<(QDebug, const KChart::ThreeDPieAttributes& );
0048 #endif /* QT_NO_DEBUG_STREAM */
0049 
0050 KCHART_DECLARE_SWAP_SPECIALISATION_DERIVED( KChart::ThreeDPieAttributes )
0051 
0052 QT_BEGIN_NAMESPACE
0053 Q_DECLARE_TYPEINFO( KChart::ThreeDPieAttributes, Q_MOVABLE_TYPE );
0054 QT_END_NAMESPACE
0055 
0056 Q_DECLARE_METATYPE( KChart::ThreeDPieAttributes )
0057 
0058 #endif // KCHARTTHREEDPIEATTRIBUTES_H