mirror of https://github.com/CGAL/cgal
change fake poly format to .polygon.cgal
This commit is contained in:
parent
a4b2773879
commit
80c7ddd254
|
|
@ -227,7 +227,7 @@ MainWindow::on_actionLoadPolygon_triggered()
|
|||
QString fileName = QFileDialog::getOpenFileName(this,
|
||||
tr("Open Polygon File"),
|
||||
".",
|
||||
tr( "Poly files (*.poly);;"
|
||||
tr( "Polyline files (*.polygon.cgal);;"
|
||||
"WSL files (*.wsl);;"
|
||||
"All file (*)"));
|
||||
if(! fileName.isEmpty()){
|
||||
|
|
@ -255,7 +255,7 @@ MainWindow::on_actionSavePolygon_triggered()
|
|||
QString fileName = QFileDialog::getSaveFileName(this,
|
||||
tr("Save Polygon"),
|
||||
".",
|
||||
tr( "Poly files (*.poly);;"
|
||||
tr( "Polyline files (*.polygon.cgal);;"
|
||||
"All file (*)"));
|
||||
if(! fileName.isEmpty()){
|
||||
std::ofstream ofs(qPrintable(fileName));
|
||||
|
|
|
|||
|
|
@ -253,7 +253,7 @@ MainWindow::on_actionLoadSegments_triggered()
|
|||
tr("Open Constraint File"),
|
||||
".",
|
||||
tr("Edge files (*.edg)\n"
|
||||
"Poly files (*.plg)"));
|
||||
"Polygon files (*.polygon.cgal)"));
|
||||
open(fileName);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -281,7 +281,7 @@ MainWindow::on_actionLoadSegments_triggered()
|
|||
"Pin files (*.pin)\n"
|
||||
"Pts files (*.pts)\n"
|
||||
"Edge files (*.edg)\n"
|
||||
"Poly files (*.plg)"
|
||||
"Polygon files (*.polygon.cgal)"
|
||||
));
|
||||
open(fileName);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ MainWindow::open(QString fileName)
|
|||
ifs >> x_samples;
|
||||
ifs >> y_samples;
|
||||
regular_grid = new Regular_grid(x_samples, y_samples, iXSize, iYSize);
|
||||
/*fill the grid with the appropreate values*/
|
||||
/*fill the grid with the appropriate values*/
|
||||
for (unsigned int i=0;i<x_samples;i++)
|
||||
for (unsigned int j=0;j<y_samples;j++)
|
||||
{
|
||||
|
|
@ -200,7 +200,6 @@ MainWindow::open(QString fileName)
|
|||
// default cursor
|
||||
QApplication::restoreOverrideCursor();
|
||||
this->addToRecentFiles(fileName);
|
||||
// actionRecenter->trigger();
|
||||
generate();
|
||||
Q_EMIT( changed());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue