MeshPart: use of TaskDialog::addTaskBox

This commit is contained in:
wmayer
2024-03-26 12:10:27 +01:00
committed by wwmayer
parent 793685de3c
commit b283316571
5 changed files with 3 additions and 18 deletions

View File

@@ -627,12 +627,7 @@ void CrossSections::makePlanes(Plane type, const std::vector<double>& d, double
TaskCrossSections::TaskCrossSections(const Base::BoundBox3d& bb)
{
widget = new CrossSections(bb);
taskbox = new Gui::TaskView::TaskBox(Gui::BitmapFactory().pixmap("Mesh_CrossSections"),
widget->windowTitle(),
true,
nullptr);
taskbox->groupLayout()->addWidget(widget);
Content.push_back(taskbox);
addTaskBox(Gui::BitmapFactory().pixmap("Mesh_CrossSections"), widget, true);
}
bool TaskCrossSections::accept()

View File

@@ -107,7 +107,6 @@ public:
private:
CrossSections* widget;
Gui::TaskView::TaskBox* taskbox;
};
} // namespace MeshPartGui

View File

@@ -97,9 +97,7 @@ void CurveOnMeshWidget::reject()
TaskCurveOnMesh::TaskCurveOnMesh(Gui::View3DInventor* view)
{
widget = new CurveOnMeshWidget(view);
taskbox = new Gui::TaskView::TaskBox(QPixmap(), widget->windowTitle(), true, nullptr);
taskbox->groupLayout()->addWidget(widget);
Content.push_back(taskbox);
addTaskBox(widget);
}
bool TaskCurveOnMesh::reject()

View File

@@ -80,7 +80,6 @@ public:
private:
CurveOnMeshWidget* widget;
Gui::TaskView::TaskBox* taskbox;
};
} // namespace MeshPartGui

View File

@@ -646,13 +646,7 @@ bool Mesh2ShapeGmsh::loadOutput()
TaskTessellation::TaskTessellation()
{
widget = new Tessellation();
Gui::TaskView::TaskBox* taskbox =
new Gui::TaskView::TaskBox(QPixmap() /*Gui::BitmapFactory().pixmap("MeshPart_Mesher")*/,
widget->windowTitle(),
true,
nullptr);
taskbox->groupLayout()->addWidget(widget);
Content.push_back(taskbox);
addTaskBox(widget);
}
void TaskTessellation::open()