@@ -14,6 +14,8 @@ AlgorithmWidget::AlgorithmWidget(Algorithm::modes _mode, QWidget *parent) :
14
14
connect (this ->ui ->playButton ,SIGNAL (clicked ()),this ,SLOT (emitPlay ()));
15
15
connect (this ->ui ->stopButton ,SIGNAL (clicked ()),this ,SIGNAL (stopPressed ()));
16
16
connect (this ->ui ->checkButton ,SIGNAL (clicked ()),this ,SIGNAL (checkSolutionPressed ()));
17
+ connect (this ->ui ->beginButton ,SIGNAL (clicked ()), this , SIGNAl (beginPressed ()));
18
+ connect (this ->ui ->endButton ,SIGNAL (clicked ()),this , SIGNAL (endPressed ()));
17
19
setWidgets (mode);
18
20
}
19
21
@@ -48,12 +50,12 @@ void AlgorithmWidget::setWidgets(Algorithm::modes mode)
48
50
showWidgets (QList<QWidget*>() << ui->checkButton << ui->showButton );
49
51
showSpacer (ui->checkSpacer );
50
52
hideWidgets (QList<QWidget*>()
51
- << ui->prewButton << ui->nextButton << ui->playButton << ui->stopButton << ui->spinBox << ui->delay_label
53
+ << ui->prewButton << ui->nextButton << ui->playButton << ui->stopButton << ui->spinBox << ui->delay_label << ui-> beginButton << ui-> endButton
52
54
<< ui->prew_stepButton << ui->next_stepButton );
53
55
hideSpacer (ui->stepSpacer );
54
56
break ;
55
57
case Algorithm::PLAY_MODE:
56
- showWidgets (QList<QWidget*>() << ui->prewButton << ui->nextButton << ui->playButton << ui->stopButton << ui->spinBox << ui->delay_label );
58
+ showWidgets (QList<QWidget*>() << ui->prewButton << ui->nextButton << ui->playButton << ui->stopButton << ui->spinBox << ui->delay_label << ui-> beginButton << ui-> endButton );
57
59
hideWidgets (QList<QWidget*>()
58
60
<< ui->checkButton << ui->showButton
59
61
<< ui->prew_stepButton << ui->next_stepButton );
@@ -64,7 +66,7 @@ void AlgorithmWidget::setWidgets(Algorithm::modes mode)
64
66
showWidgets (QList<QWidget*>()<< ui->prew_stepButton << ui->next_stepButton );
65
67
hideWidgets (QList<QWidget*>()
66
68
<< ui->checkButton << ui->showButton
67
- << ui->prewButton << ui->nextButton << ui->playButton << ui->stopButton << ui->spinBox << ui->delay_label );
69
+ << ui->prewButton << ui->nextButton << ui->playButton << ui->stopButton << ui->spinBox << ui->delay_label << ui-> beginButton << ui-> endButton );
68
70
showSpacer (ui->stepSpacer );
69
71
hideSpacer (ui->checkSpacer );
70
72
break ;
0 commit comments