KReport

KReportDesignerItemBarcode.h
1/* This file is part of the KDE project
2 * Copyright (C) 2001-2007 by OpenMFG, LLC (info@openmfg.com)
3 * Copyright (C) 2007-2008 by 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 Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 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 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19
20#ifndef KREPORTDESIGNERITEMBARCODE_H
21#define KREPORTDESIGNERITEMBARCODE_H
22
23#include "KReportDesignerItemRectBase.h"
24#include "KReportItemBarcode.h"
25
26#include <KPropertySet>
27
28//
29// ReportEntityBarcode
30//
31class KReportDesignerItemBarcode : public KReportItemBarcode, public KReportDesignerItemRectBase
32{
34public:
35 KReportDesignerItemBarcode(KReportDesigner *designer, QGraphicsScene *scene,
36 const QPointF &pos);
37 KReportDesignerItemBarcode(const QDomNode &element, KReportDesigner *designer,
39 ~KReportDesignerItemBarcode() override;
40
41 void buildXML(QDomDocument *doc, QDomElement *parent) override;
42 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
43 QWidget *widget = nullptr) override;
44
45 KReportDesignerItemBarcode *clone() override;
46
47private:
48 void init(QGraphicsScene *scene);
49
50 QRectF getTextRect() const;
51
52private Q_SLOTS:
53 void slotPropertyChanged(KPropertySet &, KProperty &);
54};
55
56#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 Tue Mar 26 2024 11:21:31 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.