Sort layouts in the list
[kdegames.git] / kollision / mainwindow.h
blobaa171fc45ee299185037a5740768de30ba16e47f
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
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 */
10 #ifndef MAINWINDOW_H
11 #define MAINWINDOW_H
13 #include <KGameDifficulty>
14 #include <KXmlGuiWindow>
15 #include "ui_preferences.h"
17 class QLabel;
18 class MainArea;
20 class MainWindow : public KXmlGuiWindow
22 Q_OBJECT
23 QLabel* m_balls_label;
24 QLabel* m_time_label;
25 Ui_Preferences m_pref_ui;
26 MainArea* m_main;
27 QPair<QByteArray, QString> m_lastUsedDifficulty;
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);
39 void newGame();
40 void gameOver(int);
41 void highscores();
42 void changeState(bool);
43 void difficultyChanged(KGameDifficulty::standardLevel level);
44 void pause(bool);
48 #endif // MAINWINDOW_H