File indexing completed on 2022-12-06 18:50:17

0001 /*
0002     SPDX-License-Identifier: GPL-2.0-or-later
0003     SPDX-FileCopyrightText: 2012 Martin Kuettler <martin.kuettler@gmail.com>
0004 */
0005 
0006 #ifndef IMAGERESULTITEM_H
0007 #define IMAGERESULTITEM_H
0008 
0009 #include "resultitem.h"
0010 #include "worksheetimageitem.h"
0011 
0012 class CommandEntry;
0013 class EpsRenderer;
0014 
0015 class ImageResultItem : public WorksheetImageItem, public ResultItem
0016 {
0017   Q_OBJECT
0018   public:
0019     explicit ImageResultItem(QGraphicsObject* parent, Cantor::Result* result);
0020     ~ImageResultItem() override = default;
0021 
0022     using WorksheetImageItem::setGeometry;
0023     double setGeometry(double x, double y, double w) override;
0024     void populateMenu(QMenu* menu, QPointF pos) override;
0025 
0026     void update() override;
0027 
0028     QRectF boundingRect() const override;
0029     double width() const override;
0030     double height() const override;
0031 
0032     void deleteLater() override;
0033 
0034   protected Q_SLOTS:
0035     void saveResult();
0036 };
0037 
0038 #endif // IMAGERESULTITEM_H