mainwindow.h 978 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
class KToggleAction;
12

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

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

    KAction* m_undoAct;
37
    KAction* m_hintAct;
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
38
    KAction* m_demoAct;
39
    KSelectAction* m_animSpeedAct;
40 41
    KSelectAction* m_bkgndAct;
    KSelectAction* m_skillAct;
42
    KToggleAction* m_coloredChipsAct;
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
43 44
};
#endif