mainmenu.h 659 B

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