mainwindow.h 672 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

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

Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
26
    KReversiScene *m_scene;
27
    KReversiView  *m_view;
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
28
    KReversiGame *m_game;
29 30

    KAction* m_undoAct;
31
    KAction* m_hintAct;
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
32
    KAction* m_demoAct;
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
33 34
};
#endif