KReport

KReportDesignerItemWeb.h
1 /* This file is part of the KDE project
2  Copyright Shreya Pandit <[email protected]>
3  Copyright 2011 Adam Pigg <[email protected]>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef KREPORTDESIGNERITEMWEB_H
22 #define KREPORTDESIGNERITEMWEB_H
23 
24 #include <KReportDesignerItemRectBase.h>
25 #include "KReportItemWeb.h"
26 
27 class QGraphicsScene;
28 
29 /**
30 */
31 class KReportDesignerItemWeb : public KReportItemWeb, public KReportDesignerItemRectBase
32 {
33  Q_OBJECT
34 public:
35  KReportDesignerItemWeb(KReportDesigner *rw, QGraphicsScene *scene, const QPointF &pos);
36  KReportDesignerItemWeb(const QDomNode &element, KReportDesigner *rw, QGraphicsScene *scene);
37  ~KReportDesignerItemWeb() override;
38 
39  void buildXML(QDomDocument *doc, QDomElement *parent) override;
40  void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override;
41  KReportDesignerItemWeb *clone() override;
42 
43 private:
44  void init(QGraphicsScene *scene);
45 
46 private Q_SLOTS:
47  void slotPropertyChanged(KPropertySet &, KProperty &);
48 };
49 
50 #endif
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QCA_EXPORT void init()
Base class for rectangular report items used within the designer GUI.
The ReportDesigner is the main widget for designing a report.
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:17:37 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.