playervsplayerintro.h 792 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef PLAYERVSPLAYERINTRO_H
  2. #define PLAYERVSPLAYERINTRO_H
  3. #include "gui/scene.h"
  4. #include <QWidget>
  5. namespace Ui {
  6. class PlayerVsPlayerIntro;
  7. }
  8. class PvPIntroButtonHoverWatcher : public QObject
  9. {
  10. Q_OBJECT
  11. public:
  12. explicit PvPIntroButtonHoverWatcher(QObject * parent = Q_NULLPTR);
  13. virtual bool eventFilter(QObject * watched, QEvent * event) Q_DECL_OVERRIDE;
  14. };
  15. class PlayerVsPlayerIntro : public Scene
  16. {
  17. Q_OBJECT
  18. public:
  19. explicit PlayerVsPlayerIntro(QWidget *parent = 0);
  20. virtual void init() override;
  21. ~PlayerVsPlayerIntro();
  22. private slots:
  23. void on_back_button_clicked();
  24. void on_continue_button_clicked();
  25. private:
  26. QMovie *movie;
  27. Ui::PlayerVsPlayerIntro *ui;
  28. PvPIntroButtonHoverWatcher *watcher;
  29. };
  30. #endif // PLAYERVSPLAYERINTRO_H