![]() |
Tulip
4.6.0
Better Visualization Through Research
|
00001 /* 00002 * 00003 * This file is part of Tulip (www.tulip-software.org) 00004 * 00005 * Authors: David Auber and the Tulip development Team 00006 * from LaBRI, University of Bordeaux 00007 * 00008 * Tulip is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU Lesser General Public License 00010 * as published by the Free Software Foundation, either version 3 00011 * of the License, or (at your option) any later version. 00012 * 00013 * Tulip is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 * See the GNU General Public License for more details. 00017 * 00018 */ 00019 ///@cond DOXYGEN_HIDDEN 00020 00021 #ifndef ANIMATION_H_ 00022 #define ANIMATION_H_ 00023 00024 #include <QPropertyAnimation> 00025 #include <tulip/tulipconf.h> 00026 00027 namespace tlp { 00028 class TLP_QT_SCOPE Animation: public QPropertyAnimation { 00029 Q_OBJECT 00030 Q_PROPERTY(int frame READ currentFrame WRITE frameChanged) 00031 Q_PROPERTY(int frameCount READ frameCount WRITE setFrameCount) 00032 00033 int _currentFrame; 00034 int _frameCount; 00035 00036 public: 00037 Animation(int frameCount=0,QObject* parent=0); 00038 virtual ~Animation(); 00039 00040 int currentFrame() const; 00041 int frameCount() const; 00042 00043 public slots: 00044 virtual void frameChanged(int)=0; 00045 virtual void setFrameCount(int); 00046 }; 00047 } 00048 00049 #endif /* ANIMATION_H_ */ 00050 ///@endcond