[TD]make detail highlight interactive

- drag detail highlight to change detail anchor point
- change detail reference position using HighlightAdjust property
This commit is contained in:
wandererfan
2022-12-27 07:55:26 -05:00
committed by WandererFan
parent 8b0df1dc93
commit af3c057f99
8 changed files with 144 additions and 38 deletions

View File

@@ -132,6 +132,16 @@ ViewProviderViewPart::~ViewProviderViewPart()
void ViewProviderViewPart::onChanged(const App::Property* prop)
{
if (getViewPart()->isDerivedFrom(TechDraw::DrawViewDetail::getClassTypeId()) &&
prop == &(HighlightAdjust)) {
auto detail = static_cast<DrawViewDetail*>(getViewPart());
auto baseDvp = dynamic_cast<DrawViewPart*>(detail->BaseView.getValue());
if (baseDvp) {
baseDvp->requestPaint();
}
return;
}
if (prop == &(LineWidth) ||
prop == &(HiddenWidth) ||
prop == &(IsoWidth) ||