mainwindow.h 812 Bytes
Newer Older
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
1 2 3 4 5
#ifndef KREVERSI_MAIN_WINDOW_H
#define KREVERSI_MAIN_WINDOW_H

#include <kmainwindow.h>

6
class KReversiScene;
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
7
class KReversiGame;
8
class KReversiView;
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
9
class KAction;
10
class KSelectAction;
11

Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
12 13
class KReversiMainWindow : public KMainWindow
{
14
    Q_OBJECT
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
15 16
public:
    KReversiMainWindow(QWidget* parent=0);
17
public slots:
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
18
    void slotNewGame();
19
    void slotBackgroundChanged(const QString& text);
20
    void slotSkillChanged(int);
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
21
    void slotUndo();
22
    void slotMoveFinished();
23
    void slotGameOver();
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
24
    void slotDemoMode(bool);
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
25 26
private:
    void setupActions();
27
    void loadSettings();
28

Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
29
    KReversiScene *m_scene;
30
    KReversiView  *m_view;
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
31
    KReversiGame *m_game;
32 33

    KAction* m_undoAct;
34
    KAction* m_hintAct;
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
35
    KAction* m_demoAct;
36 37
    KSelectAction* m_bkgndAct;
    KSelectAction* m_skillAct;
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
38 39
};
#endif