mainwindow.h 516 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();
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
20 21
private:
    void setupActions();
22

Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
23
    KReversiScene *m_scene;
24
    KReversiView  *m_view;
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
25
    KReversiGame *m_game;
Dmitry Suzdalev's avatar
Dmitry Suzdalev committed
26 27
};
#endif