mainwindow.h 1.15 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);
31
    void slotComputerCantMove();
32
    void slotHighscores();
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
33 34
private:
    void setupActions();
35
    void loadSettings();
36

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

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