Crossfire Server, Trunk  R20513
CREAnimationControl.h
Go to the documentation of this file.
1 #ifndef CREANIMATIONCONTROL_H
2 #define CREANIMATIONCONTROL_H
3 
4 #include <QObject>
5 #include <QtGui>
6 
7 extern "C" {
8 #include "global.h"
9 #include "face.h"
10 }
11 
12 class CREAnimationWidget;
13 
14 class CREAnimationControl : public QWidget
15 {
16  Q_OBJECT
17 
18  public:
19  CREAnimationControl(QWidget* parent);
20 
26  void setAnimation(const Animations* animation, int facings = -1);
27 
28  protected:
30  int myStep;
32  int myFacings;
33 
34  void display(const Animations* animation, int facings = -1);
35  QList<CREAnimationWidget*> myWidgets;
36 
37  private slots:
38  void step();
39 };
40 
41 #endif // CREANIMATIONCONTROL_H
const Animations * myAnimation
void display(const Animations *animation, int facings=-1)
Global type definitions and header inclusions.
This represents one animation.
Definition: face.h:26
Face-related structures.
void setAnimation(const Animations *animation, int facings=-1)
Define the animation to display.
CREAnimationControl(QWidget *parent)
QList< CREAnimationWidget * > myWidgets