-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainmenu.h
44 lines (37 loc) · 947 Bytes
/
mainmenu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef MAINMENU_H
#define MAINMENU_H
#include <QWidget>
#include <QPushButton>
#include <QDesktopWidget>
#include <QParallelAnimationGroup>
#include "playerfirst.h"
#include "robotfirst.h"
#include "playerplayer.h"
#include <QSound>
class mainmenu : public QMainWindow
{
Q_OBJECT
public:
explicit mainmenu(QWidget *parent = nullptr);
~mainmenu();
protected:
void paintEvent(QPaintEvent* event);
private:
void setBackground();
void openOrCloseFunction();
private:
QPushButton *btnPlayerFirst,*btnRobotFirst,*btnPlayerPlayer;
//功能模块
PlayerFirst m_playerfirst ;
RobotFirst m_robotfirst ;
PlayerPlayer m_playerplayer ;
QSound *sound;
void ChangeWindow_to_playerfirst();
void ChangeWindow_to_robotfirst();
void ChangeWindow_to_playerplayer();
void appear_playerfirst();
void appear_robotfirst();
void appear_playerplayer();
void run();
};
#endif // MAINMENU_H