mirror of https://github.com/CGAL/cgal
Change expected extension for polygon type.
This commit is contained in:
parent
cf86475a67
commit
76bd923003
|
|
@ -228,7 +228,7 @@ MainWindow::on_actionLoadPolygon_triggered()
|
|||
QString fileName = QFileDialog::getOpenFileName(this,
|
||||
tr("Open Polygon File"),
|
||||
".",
|
||||
tr( "Polyline files (*.polygon.cgal);;"
|
||||
tr( "Polyline files (*.polygons.cgal);;"
|
||||
"WSL files (*.wsl);;"
|
||||
"WKT files (*.wkt *.WKT);;"
|
||||
"All file (*)"));
|
||||
|
|
@ -267,7 +267,7 @@ MainWindow::on_actionSavePolygon_triggered()
|
|||
QString fileName = QFileDialog::getSaveFileName(this,
|
||||
tr("Save Polygon"),
|
||||
".",
|
||||
tr( "Polyline files (*.polygon.cgal);;"
|
||||
tr( "Polyline files (*.polygons.cgal);;"
|
||||
"WKT files (*.wkt *.WKT);;"
|
||||
"All file (*)"));
|
||||
if(! fileName.isEmpty()){
|
||||
|
|
|
|||
|
|
@ -238,7 +238,7 @@ void
|
|||
MainWindow::open(QString fileName)
|
||||
{
|
||||
if(! fileName.isEmpty()){
|
||||
if(fileName.endsWith(".polygon.cgal")){
|
||||
if(fileName.endsWith(".polygons.cgal")){
|
||||
loadPolygonConstraints(fileName);
|
||||
this->addToRecentFiles(fileName);
|
||||
} else if(fileName.endsWith(".edg")){
|
||||
|
|
@ -258,7 +258,7 @@ MainWindow::on_actionLoadSegments_triggered()
|
|||
tr("Open Constraint File"),
|
||||
".",
|
||||
tr("Edge files (*.edg);;"
|
||||
"Polyline files (*.polygon.cgal);;"
|
||||
"Polyline files (*.polygons.cgal);;"
|
||||
"WKT files (*.wkt *.WKT)"));
|
||||
open(fileName);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -253,7 +253,7 @@ void
|
|||
MainWindow::open(QString fileName)
|
||||
{
|
||||
if(! fileName.isEmpty()){
|
||||
if(fileName.endsWith(".polygon.cgal")){
|
||||
if(fileName.endsWith(".polygons.cgal")){
|
||||
loadPolygonConstraints(fileName);
|
||||
this->addToRecentFiles(fileName);
|
||||
} else if(fileName.endsWith(".edg")){
|
||||
|
|
@ -287,7 +287,7 @@ MainWindow::on_actionLoadSegments_triggered()
|
|||
"Pin files (*.pin);;"
|
||||
"Pts files (*.pts);;"
|
||||
"Edge files (*.edg);;"
|
||||
"Polylines files (*.polygon.cgal);;"
|
||||
"Polylines files (*.polygons.cgal);;"
|
||||
"WKT files (*.WKT *.wkt)"
|
||||
));
|
||||
open(fileName);
|
||||
|
|
|
|||
|
|
@ -514,7 +514,7 @@ MainWindow::open(QString fileName)
|
|||
else
|
||||
return;
|
||||
}
|
||||
if(fileName.endsWith(".polygon.cgal")){
|
||||
if(fileName.endsWith(".polygons.cgal")){
|
||||
loadPolygonConstraints(fileName);
|
||||
} else if(fileName.endsWith(".cpts.cgal")){
|
||||
loadFile(fileName);
|
||||
|
|
@ -538,7 +538,7 @@ MainWindow::on_actionLoadConstraints_triggered()
|
|||
tr("Open Constraint File"),
|
||||
".",
|
||||
tr("Edge files (*.edg);;"
|
||||
"Polyline files (*.polygon.cgal);;"
|
||||
"Polyline files (*.polygons.cgal);;"
|
||||
"Poly files (*.poly);;"
|
||||
"CGAL files (*.cpts.cgal);;"
|
||||
"WKT files (*.WKT *.wkt);;"
|
||||
|
|
|
|||
Loading…
Reference in New Issue