You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
598 B
26 lines
598 B
#ifndef LIGHTSOUT_MAINWINDOW_H |
|
#define LIGHTSOUT_MAINWINDOW_H |
|
|
|
#include <QMainWindow> |
|
|
|
class BoardWidget; |
|
class QLabel; |
|
|
|
// Главное окно игры: доска, кнопки «Новая игра»/«Подсказка», счётчик ходов. |
|
class MainWindow : public QMainWindow { |
|
Q_OBJECT |
|
public: |
|
explicit MainWindow(int size, QWidget *parent = nullptr); |
|
|
|
private slots: |
|
void newGame(); |
|
void toggleHint(); |
|
void onBoardStateChanged(bool solved); |
|
|
|
private: |
|
int m_size; |
|
BoardWidget *m_board; |
|
QLabel *m_movesLabel; |
|
}; |
|
|
|
#endif // LIGHTSOUT_MAINWINDOW_H
|
|
|