Warning, file /education/cantor/src/animationresultitem.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-License-Identifier: GPL-2.0-or-later 0003 SPDX-FileCopyrightText: 2012 Martin Kuettler <martin.kuettler@gmail.com> 0004 */ 0005 0006 #ifndef ANIMATIONRESULTITEM_H 0007 #define ANIMATIONRESULTITEM_H 0008 0009 #include "resultitem.h" 0010 #include "worksheetimageitem.h" 0011 0012 class QMovie; 0013 0014 class CommandEntry; 0015 class WorksheetEntry; 0016 0017 class AnimationResultItem : public WorksheetImageItem, public ResultItem 0018 { 0019 Q_OBJECT 0020 0021 public: 0022 explicit AnimationResultItem(QGraphicsObject*, Cantor::Result*); 0023 ~AnimationResultItem() override = default; 0024 0025 using WorksheetImageItem::setGeometry; 0026 double setGeometry(double x, double y, double w) override; 0027 void populateMenu(QMenu*, QPointF) override; 0028 0029 void update() override; 0030 0031 void deleteLater() override; 0032 0033 QRectF boundingRect() const override; 0034 double width() const override; 0035 double height() const override; 0036 0037 protected Q_SLOTS: 0038 void saveResult(); 0039 void stopMovie(); 0040 void pauseMovie(); 0041 0042 private: 0043 void setMovie(QMovie*); 0044 0045 private Q_SLOTS: 0046 void updateFrame(); 0047 void updateSize(QSize); 0048 0049 private: 0050 double m_height{0.}; 0051 QMovie* m_movie{nullptr}; 0052 }; 0053 0054 #endif //ANIMATIONRESULTITEM_H 0055