KChart

KChartHeaderFooter.h
1 /*
2  * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
3  *
4  * This file is part of the KD Chart library.
5  *
6  * SPDX-License-Identifier: GPL-2.0-or-later
7  */
8 
9 #ifndef KCHARTHEADERFOOTER_H
10 #define KCHARTHEADERFOOTER_H
11 
12 #include "KChartTextArea.h"
13 #include "KChartPosition.h"
14 
15 namespace KChart {
16 
17  class Chart;
18  class TextAttributes;
19 
20 /**
21  * @brief A header or footer displaying text above or below charts
22  */
23 class KCHART_EXPORT HeaderFooter : public TextArea
24 {
25  Q_OBJECT
26 
27  KCHART_DECLARE_PRIVATE_DERIVED_PARENT( HeaderFooter, Chart* )
28 
29 public:
30  HeaderFooter( Chart* parent = nullptr );
31  virtual ~HeaderFooter();
32 
33  /**
34  * Creates an exact copy of this header/footer.
35  */
36  virtual HeaderFooter * clone() const;
37 
38  bool compare( const HeaderFooter& other ) const;
39 
40  enum HeaderFooterType{ Header,
41  Footer };
42 
43  void setType( HeaderFooterType type );
44  HeaderFooterType type() const;
45 
46  void setPosition( Position position );
47  Position position() const;
48 
49  void setParent( QObject* parent );
50 
51 Q_SIGNALS:
52  void destroyedHeaderFooter( KChart::HeaderFooter* );
53  void positionChanged( KChart::HeaderFooter* );
54 
55 }; // End of class HeaderFooter
56 
57 }
58 
59 
60 #endif // KCHARTHEADERFOOTER_H
A text area in the chart with a background, a frame, etc.
Defines a position, using compass terminology.
Class only listed here to document inheritance of some KChart classes.
A header or footer displaying text above or below charts.
A chart with one or more diagrams.
Definition: KChartChart.h:84
Global namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Sep 19 2021 22:37:21 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.