From 57be0bda00b6a6595a9da96a7e8641d3e6ece656 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Thu, 6 Oct 2016 10:08:21 +0200 Subject: [PATCH 1/3] Fix the Erase_all action. --- Polyhedron/demo/Polyhedron/MainWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Polyhedron/demo/Polyhedron/MainWindow.cpp b/Polyhedron/demo/Polyhedron/MainWindow.cpp index b55b4f340da..59e50f37d28 100644 --- a/Polyhedron/demo/Polyhedron/MainWindow.cpp +++ b/Polyhedron/demo/Polyhedron/MainWindow.cpp @@ -1520,6 +1520,7 @@ bool MainWindow::on_actionErase_triggered() void MainWindow::on_actionEraseAll_triggered() { + scene->setSelectedItem(0); while(on_actionErase_triggered()) { } } From aacaeabd670a6524d2d62e5beb4d06549d56347e Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Thu, 6 Oct 2016 10:05:29 +0200 Subject: [PATCH 2/3] Set all the plugins DockWidgets size policy to `Fixed` so they won't expand when another is killed. --- Polyhedron/demo/Polyhedron/MainWindow.ui | 14 +++++++++++++- .../Polyhedron/Polyhedron_demo_plugin_helper.cpp | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Polyhedron/demo/Polyhedron/MainWindow.ui b/Polyhedron/demo/Polyhedron/MainWindow.ui index b49869d2820..2cb16d8bfe3 100644 --- a/Polyhedron/demo/Polyhedron/MainWindow.ui +++ b/Polyhedron/demo/Polyhedron/MainWindow.ui @@ -107,6 +107,12 @@ + + + 0 + 0 + + @@ -201,6 +207,12 @@ + + + 0 + 0 + + QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed|QAbstractItemView::SelectedClicked @@ -282,7 +294,7 @@ 0 0 541 - 175 + 176 diff --git a/Polyhedron/demo/Polyhedron/Polyhedron_demo_plugin_helper.cpp b/Polyhedron/demo/Polyhedron/Polyhedron_demo_plugin_helper.cpp index cf9cf1e054e..0883de288cf 100644 --- a/Polyhedron/demo/Polyhedron/Polyhedron_demo_plugin_helper.cpp +++ b/Polyhedron/demo/Polyhedron/Polyhedron_demo_plugin_helper.cpp @@ -8,6 +8,7 @@ void CGAL::Three::Polyhedron_demo_plugin_helper::addDockWidget(QDockWidget* dock_widget) { mw->addDockWidget(::Qt::LeftDockWidgetArea, dock_widget); + dock_widget->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed)); QList dockWidgets = mw->findChildren(); int counter = 0; From d522337f915734b5d928cc4b1175bf43906c8bed Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Thu, 6 Oct 2016 12:01:19 +0200 Subject: [PATCH 3/3] Add spacers to dockwidgets. --- .../Camera_position/Camera_positions_list.ui | 22 ++-- .../Clip_polyhedron_plugin.ui | 17 ++- .../Plugins/PMP/Hole_filling_widget.ui | 15 ++- .../Mean_curvature_flow_skeleton_plugin.ui | 15 ++- .../Plugins/PMP/Selection_widget.ui | 13 +++ .../Point_set_normal_estimation_plugin.ui | 13 +++ .../Point_set_outliers_removal_plugin.ui | 104 ++++++++++-------- 7 files changed, 139 insertions(+), 60 deletions(-) diff --git a/Polyhedron/demo/Polyhedron/Plugins/Camera_position/Camera_positions_list.ui b/Polyhedron/demo/Polyhedron/Plugins/Camera_position/Camera_positions_list.ui index bcc151f918c..d1b910addf4 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Camera_position/Camera_positions_list.ui +++ b/Polyhedron/demo/Polyhedron/Plugins/Camera_position/Camera_positions_list.ui @@ -43,7 +43,7 @@ ... - + :/cgal/icons/plus:/cgal/icons/plus @@ -54,7 +54,7 @@ ... - + :/cgal/icons/minus:/cgal/icons/minus @@ -72,7 +72,7 @@ &Up - + :/cgal/icons/resources/up.png:/cgal/icons/resources/up.png @@ -86,7 +86,7 @@ &Down - + :/cgal/icons/resources/down.png:/cgal/icons/resources/down.png @@ -120,7 +120,7 @@ PushButton - + :/cgal/icons/resources/front.png:/cgal/icons/resources/front.png @@ -134,7 +134,7 @@ PushButton - + :/cgal/icons/resources/back.png:/cgal/icons/resources/back.png @@ -148,7 +148,7 @@ PushButton - + :/cgal/icons/resources/top.png:/cgal/icons/resources/top.png @@ -162,7 +162,7 @@ PushButton - + :/cgal/icons/resources/bot.png:/cgal/icons/resources/bot.png @@ -176,7 +176,7 @@ PushButton - + :/cgal/icons/resources/left.png:/cgal/icons/resources/left.png @@ -190,7 +190,7 @@ PushButton - + :/cgal/icons/resources/right.png:/cgal/icons/resources/right.png @@ -217,7 +217,7 @@ - + diff --git a/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Clip_polyhedron_plugin.ui b/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Clip_polyhedron_plugin.ui index d849b58ff97..3f219eeacf0 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Clip_polyhedron_plugin.ui +++ b/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Clip_polyhedron_plugin.ui @@ -6,8 +6,8 @@ 0 0 - 312 - 307 + 313 + 313 @@ -125,6 +125,19 @@ + + + + Qt::Vertical + + + + 20 + 40 + + + + diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Hole_filling_widget.ui b/Polyhedron/demo/Polyhedron/Plugins/PMP/Hole_filling_widget.ui index c880eabe75d..ad17dfd5c0b 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Hole_filling_widget.ui +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Hole_filling_widget.ui @@ -10,7 +10,7 @@ 0 0 477 - 596 + 602 @@ -306,6 +306,19 @@ + + + + Qt::Vertical + + + + 20 + 40 + + + + diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Mean_curvature_flow_skeleton_plugin.ui b/Polyhedron/demo/Polyhedron/Plugins/PMP/Mean_curvature_flow_skeleton_plugin.ui index cc0715755b2..b7f19399841 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Mean_curvature_flow_skeleton_plugin.ui +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Mean_curvature_flow_skeleton_plugin.ui @@ -7,7 +7,7 @@ 0 0 461 - 242 + 248 @@ -163,6 +163,19 @@ + + + + Qt::Vertical + + + + 20 + 40 + + + + diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Selection_widget.ui b/Polyhedron/demo/Polyhedron/Plugins/PMP/Selection_widget.ui index 3971a896a3e..dfec5bccaca 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Selection_widget.ui +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Selection_widget.ui @@ -559,6 +559,19 @@ + + + + Qt::Vertical + + + + 20 + 40 + + + + diff --git a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_normal_estimation_plugin.ui b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_normal_estimation_plugin.ui index 9d0d9928992..905ba695a9d 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_normal_estimation_plugin.ui +++ b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_normal_estimation_plugin.ui @@ -279,6 +279,19 @@ + + + + Qt::Vertical + + + + 20 + 40 + + + + diff --git a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_outliers_removal_plugin.ui b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_outliers_removal_plugin.ui index b0705d10e6f..03e80ef2996 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_outliers_removal_plugin.ui +++ b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_outliers_removal_plugin.ui @@ -1,7 +1,8 @@ - + + OutlierRemovalDialog - - + + 0 0 @@ -9,66 +10,79 @@ 120 - + Outlier Removal - - - - + + + + Removed Percentage: - - - - % - - - 0.010000000000000 - - - 100.000000000000000 - - - 0.100000000000000 - - - 5.000000000000000 - - - - - - + + + Neighbors - - - + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + 6 - + 9999 - + 24 - - - - Qt::Horizontal + + + + % - - QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok + + 0.010000000000000 + + + 100.000000000000000 + + + 0.100000000000000 + + + 5.000000000000000 + + + + Qt::Vertical + + + + 20 + 40 + + + + @@ -79,11 +93,11 @@ OutlierRemovalDialog accept() - + 248 254 - + 157 274 @@ -95,11 +109,11 @@ OutlierRemovalDialog reject() - + 316 260 - + 286 274