-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockwindow.h
54 lines (45 loc) · 1.23 KB
/
dockwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef DOCKWINDOW_H
#define DOCKWINDOW_H
#include <QDockWidget>
namespace Ui {
class DockWindow;
}
class DockWindow : public QDockWidget
{
Q_OBJECT
public:
explicit DockWindow(QWidget *parent = nullptr);
~DockWindow();
const static size_t HINTLIMIT = 3; // Hint limit
private:
Ui::DockWindow *ui;
size_t hintCount = 0;
void resetHint();
void setHintBtnText();
void setPauseBtnText(QString text = "Pause");
signals:
void changedGameStarted(bool started);
void clickedSolutionBtn();
void clickedHintBtn();
void clickedResetBtn();
void clickedNewGameBtn();
void hintBtnEnabledChanged(bool enabled);
void solutionBtnEnabledChanged(bool enabled);
void pauseBtnEnabledChanged(bool enabled);
void pauseBtnTextChanged(QString text);
public slots:
void gameStarted();
void setStep(QString steps);
void setTime(QString totalTime);
void newGameStarted();
void setHintCount();
void clickPauseBtn();
void clickHintBtn();
void clickSolutionBtn();
void clickNewGameBtn();
void clickResetBtn();
void setHintBtnEnabled(bool enabled);
void setSolutionBtnEnabled(bool enabled);
void setPauseBtnEnabled(bool enabled);
};
#endif // DOCKWINDOW_H