1 | /* |
2 | Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com> |
3 | |
4 | This program is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by |
6 | the Free Software Foundation; either version 2 of the License, or |
7 | (at your option) any later version. |
8 | */ |
9 | |
10 | #ifndef MAINWINDOW_H |
11 | #define MAINWINDOW_H |
12 | |
13 | class KgDifficultyLevel; |
14 | #include <KXmlGuiWindow> |
15 | #include "ui_preferences.h" |
16 | |
17 | class QLabel; |
18 | class MainArea; |
19 | |
20 | class MainWindow : public KXmlGuiWindow |
21 | { |
22 | Q_OBJECT |
23 | QLabel* m_balls_label; |
24 | QLabel* m_time_label; |
25 | Ui_Preferences m_pref_ui; |
26 | MainArea* m_main; |
27 | const KgDifficultyLevel* m_lastUsedDifficulty; |
28 | |
29 | void showCursor(bool show); |
30 | public: |
31 | MainWindow(); |
32 | ~MainWindow(); |
33 | protected: |
34 | void setupActions(); |
35 | protected slots: |
36 | void setGameTime(int time); |
37 | void setBallNumber(int number); |
38 | |
39 | void newGame(); |
40 | void gameOver(int); |
41 | void highscores(); |
42 | void changeState(bool); |
43 | void pause(bool); |
44 | }; |
45 | |
46 | |
47 | #endif // MAINWINDOW_H |
48 | |
49 | |