diff options
| author | manuel <manuel@mausz.at> | 2011-04-09 15:28:00 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-09 15:28:00 +0200 |
| commit | b0d6e4fcf33d21b24d2e9bbf7c5abf2065f0a4b3 (patch) | |
| tree | fecad081d78a75463be914f2a67ae80c9bc9da7c /pacman-c++/mainwidget.h | |
| parent | 13199a5212e210206b8d6b938f7c1683760cf226 (diff) | |
| download | foop-b0d6e4fcf33d21b24d2e9bbf7c5abf2065f0a4b3.tar.gz foop-b0d6e4fcf33d21b24d2e9bbf7c5abf2065f0a4b3.tar.bz2 foop-b0d6e4fcf33d21b24d2e9bbf7c5abf2065f0a4b3.zip | |
move sound toggle icon to mainwidget
Diffstat (limited to 'pacman-c++/mainwidget.h')
| -rw-r--r-- | pacman-c++/mainwidget.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pacman-c++/mainwidget.h b/pacman-c++/mainwidget.h index 27e901f..650a472 100644 --- a/pacman-c++/mainwidget.h +++ b/pacman-c++/mainwidget.h | |||
| @@ -7,7 +7,6 @@ | |||
| 7 | #include "pixmapitem.h" | 7 | #include "pixmapitem.h" |
| 8 | #include <QtGui> | 8 | #include <QtGui> |
| 9 | #include <QtCore> | 9 | #include <QtCore> |
| 10 | #include <phonon/MediaObject> | ||
| 11 | 10 | ||
| 12 | class Actor; | 11 | class Actor; |
| 13 | 12 | ||
| @@ -17,7 +16,7 @@ class MainWidget | |||
| 17 | Q_OBJECT | 16 | Q_OBJECT |
| 18 | 17 | ||
| 19 | public: | 18 | public: |
| 20 | MainWidget(QWidget *parent = 0); | 19 | MainWidget(QMainWindow *window = 0, QWidget *parent = 0); |
| 21 | 20 | ||
| 22 | protected: | 21 | protected: |
| 23 | // handling of current key | 22 | // handling of current key |
| @@ -28,6 +27,7 @@ protected: | |||
| 28 | 27 | ||
| 29 | private: | 28 | private: |
| 30 | void createGui(); | 29 | void createGui(); |
| 30 | void createMenu(); | ||
| 31 | void updateScore(); | 31 | void updateScore(); |
| 32 | bool isRunning(); | 32 | bool isRunning(); |
| 33 | 33 | ||
| @@ -35,8 +35,10 @@ private slots: | |||
| 35 | void startGame(); | 35 | void startGame(); |
| 36 | void playerScoreClicked(); | 36 | void playerScoreClicked(); |
| 37 | void tick(); | 37 | void tick(); |
| 38 | void toggleSound() const; | ||
| 38 | 39 | ||
| 39 | private: | 40 | private: |
| 41 | QMainWindow *m_mainwindow; | ||
| 40 | 42 | ||
| 41 | // GUI elements needed in the progress of the game | 43 | // GUI elements needed in the progress of the game |
| 42 | QList<QGridLayout*> m_playerScoreLayouts; | 44 | QList<QGridLayout*> m_playerScoreLayouts; |
