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
15namespace KChart {
16
17 class Chart;
18 class TextAttributes;
19
20/**
21 * @brief A header or footer displaying text above or below charts
22 */
23class KCHART_EXPORT HeaderFooter : public TextArea
24{
25 Q_OBJECT
26
27 KCHART_DECLARE_PRIVATE_DERIVED_PARENT( HeaderFooter, Chart* )
28
29public:
30 HeaderFooter( Chart* parent = nullptr );
31 ~HeaderFooter() override;
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
51Q_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 chart with one or more diagrams.
Definition KChartChart.h:85
A header or footer displaying text above or below charts.
Defines a position, using compass terminology.
A text area in the chart with a background, a frame, etc.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.