mainwindow.h 1.09 KB
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 13
class QListWidget;
class QLabel;
14

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

Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
35
    KReversiScene *m_scene;
36
    KReversiView  *m_view;
37 38 39
    KReversiGame  *m_game;
    QListWidget   *m_historyView;
    QLabel        *m_historyLabel;
40 41

    KAction* m_undoAct;
42
    KAction* m_hintAct;
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
43
    KAction* m_demoAct;
44
    KSelectAction* m_animSpeedAct;
45 46
    KSelectAction* m_bkgndAct;
    KSelectAction* m_skillAct;
47
    KToggleAction* m_coloredChipsAct;
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
48 49
};
#endif