KReport

KReportDesignerItemMaps.h
1 /*
2  * Copyright (C) 2001-2007 by OpenMFG, LLC ([email protected])
3  * Copyright (C) 2007-2008 by Adam Pigg ([email protected])
4  * Copyright (C) 2011 by Radoslaw Wicik ([email protected])
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library 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 GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef __REPORTENTITYIMAGE_H__
21 #define __REPORTENTITYIMAGE_H__
22 
23 
24 #include <KPropertySet>
25 
26 #include <KReportDesignerItemRectBase.h>
27 #include "KReportItemMaps.h"
28 
29 class KReportDesignerItemMaps : public KReportItemMaps, public KReportDesignerItemRectBase
30 {
31  Q_OBJECT
32 public:
33  KReportDesignerItemMaps(KReportDesigner *designer, QGraphicsScene *scene, const QPointF &pos);
34  KReportDesignerItemMaps(const QDomNode &element, KReportDesigner *designer,
35  QGraphicsScene *scene);
36  ~KReportDesignerItemMaps() override;
37 
38  void buildXML(QDomDocument *doc, QDomElement *parent) override;
39  void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
40  QWidget *widget = nullptr) override;
41  KReportDesignerItemMaps *clone() override;
42 
43 private:
44  void init(QGraphicsScene *scene);
45 
46 private Q_SLOTS:
47  void slotPropertyChanged(KPropertySet &, KProperty &);
48 
49 };
50 
51 #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.