add of automatique validate
This commit is contained in:
parent
1a53e15095
commit
b2457787b7
@ -482,6 +482,7 @@ void MainWindow::setCurrentPath(Path *newCurrentPath)
|
||||
}
|
||||
|
||||
void MainWindow::saveFile(){
|
||||
on_validateBtn_clicked();
|
||||
QString fileName;
|
||||
if (currentFile.isEmpty()) {
|
||||
fileName = QFileDialog::getSaveFileName(this, "Save");
|
||||
@ -605,6 +606,7 @@ void MainWindow::on_actionEditCut_triggered()
|
||||
|
||||
void MainWindow::on_pathNumber_valueChanged(int arg1)
|
||||
{
|
||||
on_validateBtn_clicked();
|
||||
this->loadPath(path.at(ui->pathNumber->value()-1));
|
||||
currentPath = path.at(arg1-1);
|
||||
}
|
||||
@ -612,12 +614,14 @@ void MainWindow::on_pathNumber_valueChanged(int arg1)
|
||||
|
||||
void MainWindow::on_stepNumber_valueChanged(int arg1)
|
||||
{
|
||||
on_validateBtn_clicked();
|
||||
this->loadStep(currentPath->getStep().at(arg1-1));
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::on_validateBtn_clicked()
|
||||
{
|
||||
std::cout << "ok" << std::endl;
|
||||
this->currentPath->setName(ui->titleEdit->text());
|
||||
this->currentPath->setCity(ui->locEdit->text());
|
||||
this->currentPath->setImage(ui->imagePath->text());
|
||||
@ -871,6 +875,7 @@ void MainWindow::on_actionFont_size_triggered()
|
||||
|
||||
|
||||
void MainWindow::saveAsFile(){
|
||||
on_validateBtn_clicked();
|
||||
QString fileName = QFileDialog::getSaveFileName(this, "Save as");
|
||||
QFile file(fileName);
|
||||
|
||||
@ -921,6 +926,7 @@ void MainWindow::on_actionSave_as_triggered()
|
||||
|
||||
void MainWindow::on_exportHTMLBtn_clicked()
|
||||
{
|
||||
on_validateBtn_clicked();
|
||||
for(int i = 0; i < path.length(); i++) {
|
||||
this->exportHTMLMap(i);
|
||||
}
|
||||
@ -988,3 +994,4 @@ void MainWindow::on_actionFont_color_triggered()
|
||||
{
|
||||
this->setColor();
|
||||
}
|
||||
|
||||
|
||||
@ -123,7 +123,6 @@ private slots:
|
||||
|
||||
void on_actionFont_color_triggered();
|
||||
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
QString currentFile;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user