diff options
| author | manuel <manuel@mausz.at> | 2011-04-05 01:29:33 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-05 01:29:33 +0200 |
| commit | 4232f8450d896068713d988cf5541835c3818682 (patch) | |
| tree | 470916a3e1978419d41115eb1e87a0928769e03c /pacman-c++/animationmanager.h | |
| parent | 3dba415cd9741874cdaf0781d7e725808c8a2b8d (diff) | |
| download | foop-4232f8450d896068713d988cf5541835c3818682.tar.gz foop-4232f8450d896068713d988cf5541835c3818682.tar.bz2 foop-4232f8450d896068713d988cf5541835c3818682.zip | |
- we love ogg, we hate mp3/wav
- a lot of coding style/intent fix
- add constant.h to pro files
Diffstat (limited to 'pacman-c++/animationmanager.h')
| -rw-r--r-- | pacman-c++/animationmanager.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/pacman-c++/animationmanager.h b/pacman-c++/animationmanager.h index eb5b7d0..408395b 100644 --- a/pacman-c++/animationmanager.h +++ b/pacman-c++/animationmanager.h | |||
| @@ -8,26 +8,26 @@ class QAbstractAnimation; | |||
| 8 | QT_END_NAMESPACE | 8 | QT_END_NAMESPACE |
| 9 | 9 | ||
| 10 | class AnimationManager | 10 | class AnimationManager |
| 11 | : public QObject | 11 | : public QObject |
| 12 | { | 12 | { |
| 13 | Q_OBJECT | 13 | Q_OBJECT |
| 14 | public: | 14 | public: |
| 15 | AnimationManager(); | 15 | AnimationManager(); |
| 16 | void registerAnimation(QAbstractAnimation *anim); | 16 | void registerAnimation(QAbstractAnimation *anim); |
| 17 | void unregisterAnimation(QAbstractAnimation *anim); | 17 | void unregisterAnimation(QAbstractAnimation *anim); |
| 18 | void unregisterAllAnimations(); | 18 | void unregisterAllAnimations(); |
| 19 | static AnimationManager *self(); | 19 | static AnimationManager *self(); |
| 20 | 20 | ||
| 21 | public slots: | 21 | public slots: |
| 22 | void pauseAll(); | 22 | void pauseAll(); |
| 23 | void resumeAll(); | 23 | void resumeAll(); |
| 24 | 24 | ||
| 25 | private slots: | 25 | private slots: |
| 26 | void unregisterAnimation_helper(QObject *obj); | 26 | void unregisterAnimation_helper(QObject *obj); |
| 27 | 27 | ||
| 28 | private: | 28 | private: |
| 29 | static AnimationManager *instance; | 29 | static AnimationManager *instance; |
| 30 | QList<QAbstractAnimation *> animations; | 30 | QList<QAbstractAnimation *> animations; |
| 31 | }; | 31 | }; |
| 32 | 32 | ||
| 33 | #endif // ANIMATIONMANAGER_H | 33 | #endif // ANIMATIONMANAGER_H |
