KChart

KChartValueTrackerAttributes.h
1 /*
2  * Copyright (C) 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
3  *
4  * This file is part of the KD Chart library.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <https://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef KCHARTVALUETRACKERATTRIBUTES_H
21 #define KCHARTVALUETRACKERATTRIBUTES_H
22 
23 #include <QDebug>
24 #include <QMetaType>
25 #include "KChartGlobal.h"
26 
27 namespace KChart {
28 
39  class KCHART_EXPORT ValueTrackerAttributes
40  {
41  public:
44  ValueTrackerAttributes &operator= ( const ValueTrackerAttributes& );
45 
47 
51  void setPen( const QPen& pen );
52 
56  QPen pen() const;
57 
58  void setLinePen( const QPen &pen );
59  QPen linePen() const;
60 
61  void setMarkerPen( const QPen &pen );
62  QPen markerPen() const;
63 
64  void setMarkerBrush( const QBrush &brush );
65  QBrush markerBrush() const;
66 
67  void setArrowBrush( const QBrush &brush );
68  QBrush arrowBrush() const;
69 
75  void setAreaBrush( const QBrush& brush );
76 
80  QBrush areaBrush() const;
81 
86  void setMarkerSize( const QSizeF& size );
87 
91  QSizeF markerSize() const;
92 
97  Qt::Orientations orientations() const;
98 
102  void setOrientations( Qt::Orientations orientations );
103 
108  void setEnabled( bool enabled );
109 
113  bool isEnabled() const;
114 
115  bool operator==( const ValueTrackerAttributes& ) const;
116  inline bool operator!=( const ValueTrackerAttributes& other ) const { return !operator==(other); }
117 
118  private:
119  KCHART_DECLARE_PRIVATE_BASE_VALUE( ValueTrackerAttributes )
120  }; // End of class ValueTrackerAttributes
121 
122 }
123 
124 #if !defined(QT_NO_DEBUG_STREAM)
126 #endif /* QT_NO_DEBUG_STREAM */
127 
128 KCHART_DECLARE_SWAP_SPECIALISATION( KChart::ValueTrackerAttributes )
129 
130 QT_BEGIN_NAMESPACE
131 Q_DECLARE_TYPEINFO( KChart::ValueTrackerAttributes, Q_MOVABLE_TYPE );
132 QT_END_NAMESPACE
133 
134 Q_DECLARE_METATYPE( KChart::ValueTrackerAttributes )
135 
136 #endif // KCHARTVALUETRACKERATTRIBUTES_H
Contains KChart macros.
Cell-specific attributes regarding value tracking.
QDataStream & operator<<(QDataStream &out, const KDateTime::Spec &spec)
typedef Orientations
Global namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 01:06:39 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.