Crossfire Server, Branch 1.12  R12190
CREAnimationControl.h
Go to the documentation of this file.
00001 #ifndef CREANIMATIONCONTROL_H
00002 #define CREANIMATIONCONTROL_H
00003 
00004 #include <QObject>
00005 #include <QtGui>
00006 
00007 extern "C" {
00008 #include "global.h"
00009 #include "face.h"
00010 }
00011 
00012 class CREAnimationWidget;
00013 
00014 class CREAnimationControl : public QWidget
00015 {
00016     Q_OBJECT
00017 
00018     public:
00019         CREAnimationControl(QWidget* parent);
00020         void setAnimation(const Animations* animation);
00021 
00022     protected:
00023         const Animations* myAnimation;
00024         int myStep;
00025         int myLastStep;
00026         int myFacings;
00027 
00028         void display(const Animations* animation);
00029         QList<CREAnimationWidget*> myWidgets;
00030 
00031     private slots:
00032         void step();
00033 };
00034 
00035 #endif // CREANIMATIONCONTROL_H