File indexing completed on 2024-05-12 04:43:21

0001 /*
0002  * Copyright (C) 2001-2007 by OpenMFG, LLC (info@openmfg.com)
0003  * Copyright (C) 2007-2008 by Adam Pigg (adam@piggz.co.uk)
0004  * Copyright (C) 2011 by Radoslaw Wicik (radoslaw@wicik.pl)
0005  *
0006  * This library is free software; you can redistribute it and/or
0007  * modify it under the terms of the GNU Lesser General Public
0008  * License as published by the Free Software Foundation; either
0009  * version 2.1 of the License, or (at your option) any later version.
0010  *
0011  * This library is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0014  * Lesser General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU Lesser General Public
0017  * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
0018  */
0019 
0020 #ifndef __REPORTENTITYIMAGE_H__
0021 #define __REPORTENTITYIMAGE_H__
0022 
0023 
0024 #include <KPropertySet>
0025 
0026 #include <KReportDesignerItemRectBase.h>
0027 #include "KReportItemMaps.h"
0028 
0029 class KReportDesignerItemMaps : public KReportItemMaps, public KReportDesignerItemRectBase
0030 {
0031   Q_OBJECT
0032 public:
0033     KReportDesignerItemMaps(KReportDesigner *designer, QGraphicsScene *scene, const QPointF &pos);
0034     KReportDesignerItemMaps(const QDomNode &element, KReportDesigner *designer,
0035                             QGraphicsScene *scene);
0036     ~KReportDesignerItemMaps() override;
0037 
0038     void buildXML(QDomDocument *doc, QDomElement *parent) override;
0039     void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
0040                QWidget *widget = nullptr) override;
0041     KReportDesignerItemMaps *clone() override;
0042 
0043 private:
0044     void init(QGraphicsScene *scene);
0045 
0046 private Q_SLOTS:
0047     void slotPropertyChanged(KPropertySet &, KProperty &);
0048 
0049 };
0050 
0051 #endif