Crossfire Server, Trunk
AnimationWidget.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2022 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #ifndef ANIMATION_WIDGET_H_
14 #define ANIMATION_WIDGET_H_
15 
16 #include <QObject>
17 #include <QtWidgets>
18 
19 class AnimationWidget : public QWidget {
20  Q_OBJECT
21 
22 public:
23  AnimationWidget(QWidget* parent);
24 
25  void setAnimation(QList<int> faces);
26  void step();
27  //virtual QSize sizeHint () const { return QSize(32, 32); }
28 
29 protected:
30  int myStep;
31  QList<int> myFaces;
32 
33  virtual void paintEvent(QPaintEvent* event);
34 };
35 
36 #endif // ANIMATION_WIDGET_H_
AnimationWidget::setAnimation
void setAnimation(QList< int > faces)
Definition: AnimationWidget.cpp:25
AnimationWidget::myStep
int myStep
Definition: AnimationWidget.h:30
AnimationWidget::myFaces
QList< int > myFaces
Definition: AnimationWidget.h:31
AnimationWidget::step
void step()
Definition: AnimationWidget.cpp:31
AnimationWidget
Definition: AnimationWidget.h:19
dragon_attune.faces
dictionary faces
Definition: dragon_attune.py:31
AnimationWidget::paintEvent
virtual void paintEvent(QPaintEvent *event)
Definition: AnimationWidget.cpp:43
animate.event
event
DIALOGCHECK MINARGS 1 MAXARGS 2
Definition: animate.py:17
AnimationWidget::AnimationWidget
AnimationWidget(QWidget *parent)
Definition: AnimationWidget.cpp:18