mirror of https://github.com/CGAL/cgal
Add filters to Polygon demo
This commit is contained in:
parent
ab29df058d
commit
d8b6cbd7af
|
|
@ -227,7 +227,9 @@ MainWindow::on_actionLoadPolygon_triggered()
|
||||||
QString fileName = QFileDialog::getOpenFileName(this,
|
QString fileName = QFileDialog::getOpenFileName(this,
|
||||||
tr("Open Polygon File"),
|
tr("Open Polygon File"),
|
||||||
".",
|
".",
|
||||||
tr( "Any file (*.*)"));
|
tr( "Poly files (*.poly);;"
|
||||||
|
"WSL files (*.wsl);;"
|
||||||
|
"All file (*)"));
|
||||||
if(! fileName.isEmpty()){
|
if(! fileName.isEmpty()){
|
||||||
open(fileName);
|
open(fileName);
|
||||||
}
|
}
|
||||||
|
|
@ -253,7 +255,8 @@ MainWindow::on_actionSavePolygon_triggered()
|
||||||
QString fileName = QFileDialog::getSaveFileName(this,
|
QString fileName = QFileDialog::getSaveFileName(this,
|
||||||
tr("Save Polygon"),
|
tr("Save Polygon"),
|
||||||
".",
|
".",
|
||||||
tr("Any files (*.*)"));
|
tr( "Poly files (*.poly);;"
|
||||||
|
"All file (*)"));
|
||||||
if(! fileName.isEmpty()){
|
if(! fileName.isEmpty()){
|
||||||
std::ofstream ofs(qPrintable(fileName));
|
std::ofstream ofs(qPrintable(fileName));
|
||||||
ofs << poly;
|
ofs << poly;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue