mainwindow.h 883 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);
21
    void slotAnimSpeedChanged(int);
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
22
    void slotUndo();
23
    void slotMoveFinished();
24
    void slotGameOver();
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
25
    void slotDemoMode(bool);
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
26 27
private:
    void setupActions();
28
    void loadSettings();
29

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

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