Crossfire Server, Branch 1.12
R12190
|
00001 #ifndef CREANIMATIONWIDGET_H_ 00002 #define CREANIMATIONWIDGET_H_ 00003 00004 #include <QObject> 00005 #include <QtGui> 00006 00007 class CREAnimationWidget : public QWidget 00008 { 00009 Q_OBJECT 00010 00011 public: 00012 CREAnimationWidget(QWidget* parent); 00013 00014 void setAnimation(QList<int> faces); 00015 void step(); 00016 //virtual QSize sizeHint () const { return QSize(32, 32); } 00017 00018 protected: 00019 int myStep; 00020 QList<int> myFaces; 00021 00022 virtual void paintEvent(QPaintEvent* event); 00023 }; 00024 00025 #endif // CREANIMATIONWIDGET_H_