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,
|
QString fileName = QFileDialog::getOpenFileName(this,
|
||||||
tr("Open Polygon File"),
|
tr("Open Polygon File"),
|
||||||
".",
|
".",
|
||||||
tr( "Poly files (*.poly);;"
|
tr( "Polyline files (*.polygon.cgal);;"
|
||||||
"WSL files (*.wsl);;"
|
"WSL files (*.wsl);;"
|
||||||
"All file (*)"));
|
"All file (*)"));
|
||||||
if(! fileName.isEmpty()){
|
if(! fileName.isEmpty()){
|
||||||
|
|
@ -255,7 +255,7 @@ MainWindow::on_actionSavePolygon_triggered()
|
||||||
QString fileName = QFileDialog::getSaveFileName(this,
|
QString fileName = QFileDialog::getSaveFileName(this,
|
||||||
tr("Save Polygon"),
|
tr("Save Polygon"),
|
||||||
".",
|
".",
|
||||||
tr( "Poly files (*.poly);;"
|
tr( "Polyline files (*.polygon.cgal);;"
|
||||||
"All file (*)"));
|
"All file (*)"));
|
||||||
if(! fileName.isEmpty()){
|
if(! fileName.isEmpty()){
|
||||||
std::ofstream ofs(qPrintable(fileName));
|
std::ofstream ofs(qPrintable(fileName));
|
||||||
|
|
|
||||||
|
|
@ -253,7 +253,7 @@ MainWindow::on_actionLoadSegments_triggered()
|
||||||
tr("Open Constraint File"),
|
tr("Open Constraint File"),
|
||||||
".",
|
".",
|
||||||
tr("Edge files (*.edg)\n"
|
tr("Edge files (*.edg)\n"
|
||||||
"Poly files (*.plg)"));
|
"Polygon files (*.polygon.cgal)"));
|
||||||
open(fileName);
|
open(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -281,7 +281,7 @@ MainWindow::on_actionLoadSegments_triggered()
|
||||||
"Pin files (*.pin)\n"
|
"Pin files (*.pin)\n"
|
||||||
"Pts files (*.pts)\n"
|
"Pts files (*.pts)\n"
|
||||||
"Edge files (*.edg)\n"
|
"Edge files (*.edg)\n"
|
||||||
"Poly files (*.plg)"
|
"Polygon files (*.polygon.cgal)"
|
||||||
));
|
));
|
||||||
open(fileName);
|
open(fileName);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@ MainWindow::open(QString fileName)
|
||||||
ifs >> x_samples;
|
ifs >> x_samples;
|
||||||
ifs >> y_samples;
|
ifs >> y_samples;
|
||||||
regular_grid = new Regular_grid(x_samples, y_samples, iXSize, iYSize);
|
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 i=0;i<x_samples;i++)
|
||||||
for (unsigned int j=0;j<y_samples;j++)
|
for (unsigned int j=0;j<y_samples;j++)
|
||||||
{
|
{
|
||||||
|
|
@ -200,7 +200,6 @@ MainWindow::open(QString fileName)
|
||||||
// default cursor
|
// default cursor
|
||||||
QApplication::restoreOverrideCursor();
|
QApplication::restoreOverrideCursor();
|
||||||
this->addToRecentFiles(fileName);
|
this->addToRecentFiles(fileName);
|
||||||
// actionRecenter->trigger();
|
|
||||||
generate();
|
generate();
|
||||||
Q_EMIT( changed());
|
Q_EMIT( changed());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue