[TD]SectionView/ComplexSection - preview, direction selection

- add preview/live update to TaskSectionView & TaskComplexSection
- add view direction selector to uis
- use SectionNormal as Direction.  Make Direction read-only
- simplify section line end point calculation
- section group command in toolbar
- make section and complex section icons consistent
- fix compsolid cutting tool
- terminology: single/piecewise to offset/aligned
This commit is contained in:
wandererfan
2022-10-13 10:59:54 -04:00
committed by WandererFan
parent 5ddc6ce789
commit 99f67b8a40
27 changed files with 4104 additions and 1390 deletions

View File

@@ -36,10 +36,12 @@
#include <Gui/Control.h>
#include <Gui/Selection.h>
#include <Mod/TechDraw/App/DrawComplexSection.h>
#include <Mod/TechDraw/App/DrawGeomHatch.h>
#include <Mod/TechDraw/App/DrawHatch.h>
#include "TaskSectionView.h"
#include "TaskComplexSection.h"
#include "ViewProviderViewSection.h"
#include "QGIView.h"
@@ -123,6 +125,12 @@ bool ViewProviderViewSection::setEdit(int ModNum)
}
// clear the selection (convenience)
Gui::Selection().clearSelection();
auto dcs = dynamic_cast<TechDraw::DrawComplexSection*>(getViewObject());
if (dcs) {
Gui::Control().showDialog(new TaskDlgComplexSection(dcs));
return true;
}
Gui::Control().showDialog(new TaskDlgSectionView(getViewObject()));
return true;
}
@@ -133,7 +141,6 @@ bool ViewProviderViewSection::doubleClicked()
return true;
}
void ViewProviderViewSection::getParameters()
{
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()