-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmainmenuwidget2.h
71 lines (63 loc) · 1.38 KB
/
mainmenuwidget2.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef MAINMENUWIDGET2_H
#define MAINMENUWIDGET2_H
#include "abstractpixmapwidget.h"
// File must include
#include <QVector>
// Forward declaration
class QTimer;
class AbstractItem;
/**
* @brief A class of main menu.
*/
class MainMenuWidget2 : public AbstractPixmapWidget
{
Q_OBJECT
public:
/**
* @brief Constructor.
*/
MainMenuWidget2();
/**
* @brief Destructor.
*/
~MainMenuWidget2();
virtual void makePixmap(
#ifdef USE_PIXMAP
QPixmap& pixmap,
#else
QPainter* painter,
#endif
int width,
int height);
virtual void makeBasicPixmap(
#ifdef USE_PIXMAP
QPixmap& pixmap,
#else
QPainter* painter,
#endif
int width,
int height);
virtual void addEffect(
#ifdef USE_PIXMAP
QPixmap& pixmap,
#else
QPainter* painter,
#endif
int width,
int height);
virtual QPointF toScene(double xRate, double yRate);
virtual void dealPressed(QPointF mousePos, Qt::MouseButton button);
virtual void dealMoved(QPointF mousePos, Qt::MouseButton button);
virtual void dealReleased(QPointF mousePos, Qt::MouseButton button);
virtual void getForcus(){}
virtual void loseForcus(){}
private:
// Items of the game
AbstractItem *helpItem;
AbstractItem *achievementItem;
AbstractItem *exitItem;
AbstractItem *singleItem;
AbstractItem *multipleItem;
QVector <AbstractItem *> myItems;
};
#endif // MAINMENUWIDGET2_H