-
Notifications
You must be signed in to change notification settings - Fork 0
/
scene.h
51 lines (40 loc) · 1.04 KB
/
scene.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
45
46
47
48
49
50
51
#ifndef SCENE_H
#define SCENE_H
#include <QWidget>
#include <QMovie>
#include <QLabel>
#include "setlevel.h"
#include "loadprogress.h"
class MainWindow;
namespace Ui{
class welcome;
}
class Scene : public QLabel
{
Q_OBJECT
public:
explicit Scene(QWidget *parent = nullptr);
MainWindow* father;
signals:
public slots:
};
class WelcomeScene:public Scene{
Q_OBJECT
public:
explicit WelcomeScene(QWidget* parent=nullptr);
~WelcomeScene();
int row,col;//通过setlevel获取,传递给父窗口mainwindow
private slots:
void on_btnSetlevel_clicked();
void getRowCol(int,int);//获取来自setlevel的行列数
void getloadname(QString filename);//获取加载的进度名
signals:
void sendRowCol(int,int);//向父亲发送行列信息
void sendloadname(QString filename);//发送进度名
private:
Ui::welcome* ui;
QMovie* bg;//背景图片
setlevel* widgetSetlevel;//选择难度
loadprogress* loaddialog;//存档进度
};
#endif // SCENE_H