Can change step
This commit is contained in:
parent
d19946a779
commit
9ae7d4e834
@ -120,6 +120,21 @@ void MainWindow::loadPath(Path* p) {
|
||||
QString q = firstStep.getPersonnage().at(i) + ": " + firstStep.getTexte().at(i);
|
||||
ui->dialogEdit->appendPlainText(q);
|
||||
}
|
||||
|
||||
ui->stepNumber->setValue(1);
|
||||
ui->stepNumber->setSuffix("/" + QString::number(steps.length()));
|
||||
ui->stepNumber->setMaximum(steps.length());
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::loadStep(Step s) {
|
||||
ui->stepTitle->setText(s.getTitle());
|
||||
ui->LatitudeSpin->setValue(s.getLatitude());
|
||||
ui->longitudeSpin->setValue(s.getLongitude());
|
||||
|
||||
for(int i = 0; i < s.getTexte().length(); i++) {
|
||||
QString q = s.getPersonnage().at(i) + ": " + s.getTexte().at(i);
|
||||
ui->dialogEdit->appendPlainText(q);
|
||||
}
|
||||
}
|
||||
|
||||
@ -244,3 +259,9 @@ void MainWindow::on_pathNumber_valueChanged(int arg1)
|
||||
this->loadPath(path.at(ui->pathNumber->value()-1));
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::on_stepNumber_valueChanged(int arg1)
|
||||
{
|
||||
this->loadStep(currentPath->getStep().at(arg1-1));
|
||||
}
|
||||
|
||||
|
||||
@ -24,6 +24,7 @@ public:
|
||||
void onTextChanged();
|
||||
void loadNewPath();
|
||||
void loadPath(Path* p);
|
||||
void loadStep(Step s);
|
||||
void addNewPath();
|
||||
void addNewStep();
|
||||
void exportHTMLMap();
|
||||
@ -46,6 +47,8 @@ private slots:
|
||||
|
||||
void on_pathNumber_valueChanged(int arg1);
|
||||
|
||||
void on_stepNumber_valueChanged(int arg1);
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
QString currentFile;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user