KReport

KReportDesignerItemWeb.h
1/* This file is part of the KDE project
2 Copyright Shreya Pandit <shreya@shreyapandit.com>
3 Copyright 2011 Adam Pigg <adam@piggz.co.uk>
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
27class QGraphicsScene;
28
29/**
30*/
31class KReportDesignerItemWeb : public KReportItemWeb, public KReportDesignerItemRectBase
32{
34public:
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
43private:
44 void init(QGraphicsScene *scene);
45
46private Q_SLOTS:
47 void slotPropertyChanged(KPropertySet &, KProperty &);
48};
49
50#endif
Base class for rectangular report items used within the designer GUI.
The ReportDesigner is the main widget for designing a report.
QPointF pos() const const
QGraphicsScene * scene() const const
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.