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(){
|
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");
|
||||||
@ -605,6 +606,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);
|
||||||
}
|
}
|
||||||
@ -612,12 +614,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());
|
||||||
@ -871,6 +875,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);
|
||||||
|
|
||||||
@ -921,6 +926,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);
|
||||||
}
|
}
|
||||||
@ -988,3 +994,4 @@ void MainWindow::on_actionFont_color_triggered()
|
|||||||
{
|
{
|
||||||
this->setColor();
|
this->setColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -123,7 +123,6 @@ private slots:
|
|||||||
|
|
||||||
void on_actionFont_color_triggered();
|
void on_actionFont_color_triggered();
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::MainWindow *ui;
|
Ui::MainWindow *ui;
|
||||||
QString currentFile;
|
QString currentFile;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user