From 80c7ddd2546ff293d4ed9490e5a636bb619db5b1 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Tue, 6 Feb 2018 16:42:42 +0100 Subject: [PATCH] change fake poly format to .polygon.cgal --- GraphicsView/demo/Polygon/Polygon_2.cpp | 4 ++-- .../demo/Segment_Delaunay_graph_2/Segment_voronoi_2.cpp | 2 +- .../Segment_Delaunay_graph_Linf_2/Segment_voronoi_linf_2.cpp | 2 +- GraphicsView/demo/Stream_lines_2/Stream_lines_2.cpp | 3 +-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/GraphicsView/demo/Polygon/Polygon_2.cpp b/GraphicsView/demo/Polygon/Polygon_2.cpp index 504d0f02dee..190552a1a38 100644 --- a/GraphicsView/demo/Polygon/Polygon_2.cpp +++ b/GraphicsView/demo/Polygon/Polygon_2.cpp @@ -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)); diff --git a/GraphicsView/demo/Segment_Delaunay_graph_2/Segment_voronoi_2.cpp b/GraphicsView/demo/Segment_Delaunay_graph_2/Segment_voronoi_2.cpp index 6c3489dcd0e..8b7ffb9a63e 100644 --- a/GraphicsView/demo/Segment_Delaunay_graph_2/Segment_voronoi_2.cpp +++ b/GraphicsView/demo/Segment_Delaunay_graph_2/Segment_voronoi_2.cpp @@ -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); } diff --git a/GraphicsView/demo/Segment_Delaunay_graph_Linf_2/Segment_voronoi_linf_2.cpp b/GraphicsView/demo/Segment_Delaunay_graph_Linf_2/Segment_voronoi_linf_2.cpp index de7f04b4b74..5d0d33014ba 100644 --- a/GraphicsView/demo/Segment_Delaunay_graph_Linf_2/Segment_voronoi_linf_2.cpp +++ b/GraphicsView/demo/Segment_Delaunay_graph_Linf_2/Segment_voronoi_linf_2.cpp @@ -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); } diff --git a/GraphicsView/demo/Stream_lines_2/Stream_lines_2.cpp b/GraphicsView/demo/Stream_lines_2/Stream_lines_2.cpp index 52b0ea247c4..b9e04b1a428 100644 --- a/GraphicsView/demo/Stream_lines_2/Stream_lines_2.cpp +++ b/GraphicsView/demo/Stream_lines_2/Stream_lines_2.cpp @@ -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;iaddToRecentFiles(fileName); - // actionRecenter->trigger(); generate(); Q_EMIT( changed());