Merge branch 'feature/automatiqueValidate' into 'dev'
add of automatique validate See merge request p2406187/sae201!31
This commit is contained in:
commit
4ab0b1a6f4
@ -487,6 +487,7 @@ void MainWindow::setCurrentPath(Path *newCurrentPath)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::saveFile(){
|
void MainWindow::saveFile(){
|
||||||
|
on_validateBtn_clicked();
|
||||||
QString fileName;
|
QString fileName;
|
||||||
if (currentFile.isEmpty()) {
|
if (currentFile.isEmpty()) {
|
||||||
fileName = QFileDialog::getSaveFileName(this, "Save");
|
fileName = QFileDialog::getSaveFileName(this, "Save");
|
||||||
@ -610,6 +611,7 @@ void MainWindow::on_actionEditCut_triggered()
|
|||||||
|
|
||||||
void MainWindow::on_pathNumber_valueChanged(int arg1)
|
void MainWindow::on_pathNumber_valueChanged(int arg1)
|
||||||
{
|
{
|
||||||
|
on_validateBtn_clicked();
|
||||||
this->loadPath(path.at(ui->pathNumber->value()-1));
|
this->loadPath(path.at(ui->pathNumber->value()-1));
|
||||||
currentPath = path.at(arg1-1);
|
currentPath = path.at(arg1-1);
|
||||||
}
|
}
|
||||||
@ -617,12 +619,14 @@ void MainWindow::on_pathNumber_valueChanged(int arg1)
|
|||||||
|
|
||||||
void MainWindow::on_stepNumber_valueChanged(int arg1)
|
void MainWindow::on_stepNumber_valueChanged(int arg1)
|
||||||
{
|
{
|
||||||
|
on_validateBtn_clicked();
|
||||||
this->loadStep(currentPath->getStep().at(arg1-1));
|
this->loadStep(currentPath->getStep().at(arg1-1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void MainWindow::on_validateBtn_clicked()
|
void MainWindow::on_validateBtn_clicked()
|
||||||
{
|
{
|
||||||
|
std::cout << "ok" << std::endl;
|
||||||
this->currentPath->setName(ui->titleEdit->text());
|
this->currentPath->setName(ui->titleEdit->text());
|
||||||
this->currentPath->setCity(ui->locEdit->text());
|
this->currentPath->setCity(ui->locEdit->text());
|
||||||
this->currentPath->setImage(ui->imagePath->text());
|
this->currentPath->setImage(ui->imagePath->text());
|
||||||
@ -876,6 +880,7 @@ void MainWindow::on_actionFont_size_triggered()
|
|||||||
|
|
||||||
|
|
||||||
void MainWindow::saveAsFile(){
|
void MainWindow::saveAsFile(){
|
||||||
|
on_validateBtn_clicked();
|
||||||
QString fileName = QFileDialog::getSaveFileName(this, "Save as");
|
QString fileName = QFileDialog::getSaveFileName(this, "Save as");
|
||||||
QFile file(fileName);
|
QFile file(fileName);
|
||||||
|
|
||||||
@ -926,6 +931,7 @@ void MainWindow::on_actionSave_as_triggered()
|
|||||||
|
|
||||||
void MainWindow::on_exportHTMLBtn_clicked()
|
void MainWindow::on_exportHTMLBtn_clicked()
|
||||||
{
|
{
|
||||||
|
on_validateBtn_clicked();
|
||||||
for(int i = 0; i < path.length(); i++) {
|
for(int i = 0; i < path.length(); i++) {
|
||||||
this->exportHTMLMap(i);
|
this->exportHTMLMap(i);
|
||||||
}
|
}
|
||||||
@ -994,7 +1000,8 @@ void MainWindow::on_actionFont_color_triggered()
|
|||||||
this->setColor();
|
this->setColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void MainWindow::on_addStep_clicked()
|
void MainWindow::on_addStep_clicked()
|
||||||
{
|
{
|
||||||
this->addNewStep();
|
this->addNewStep();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user