@@ -488,7 +488,7 @@ void UiInspector::refresh() {
488488 MessageManager::transportNbGroups = Application::current->getCount (-2 );
489489 actionInfoLock = true ;
490490
491- quint16 counterTriggers = 0 , counterCurves = 0 , counterCurvePoints = 0 , counterCurveEquation = 0 , counterCursors = 0 , counterCursorsCurve = 0 ;
491+ quint16 counterTriggers = 0 , counterCurves = 0 , counterCurvePoints = 0 , counterCurveEllipse = 0 , counterCurveEquation = 0 , counterCursors = 0 , counterCursorsCurve = 0 ;
492492
493493 if ((render) && (ui->tab ->currentIndex () == 1 )) {
494494 UiRenderSelection *objects = render->getSelection ();
@@ -545,10 +545,13 @@ void UiInspector::refresh() {
545545 counterCursorsCurve++;
546546 if ((object->getType () == ObjectsTypeCurve) && (((NxCurve*)object)->getCurveType () == CurveTypePoints))
547547 counterCurvePoints++;
548+ if ((object->getType () == ObjectsTypeCurve) && (((NxCurve*)object)->getCurveType () == CurveTypeEllipse))
549+ counterCurveEllipse++;
548550 if ((object->getType () == ObjectsTypeCurve) && ((((NxCurve*)object)->getCurveType () == CurveTypeEquationCartesian) || (((NxCurve*)object)->getCurveType () == CurveTypeEquationPolar)))
549551 counterCurveEquation++;
550552
551553
554+
552555 if (objects->count () > 1 ) // //CG//// Don't allow ID change if more than one object selected
553556 ui->newIdButton ->setDisabled (true );
554557 else
@@ -658,13 +661,15 @@ void UiInspector::refresh() {
658661 typeLabelText.chop (2 );
659662 ui->typeLabel ->setText (typeLabelText);
660663
661- bool showCursorInfo = false , showTriggerInfo = false , showCurveInfo = false , showCurvePointsInfo = false , showCursorCurveInfo = false , showGenericInfo = false , showCurveEquationInfo = false ;
664+ bool showCursorInfo = false , showTriggerInfo = false , showCurveInfo = false , showCurvePointsInfo = false , showCurveEllipseInfo = false , showCursorCurveInfo = false , showGenericInfo = false , showCurveEquationInfo = false ;
662665 if (counterCurves > 0 )
663666 showCurveInfo = true ;
664667 if (counterCursors > 0 )
665668 showCursorInfo = true ;
666669 if (counterTriggers > 0 )
667670 showTriggerInfo = true ;
671+ if (counterCurveEllipse > 0 )
672+ showCurveEllipseInfo = true ;
668673 if (counterCursorsCurve > 0 )
669674 showCursorCurveInfo = true ;
670675 if (counterCurvePoints > 0 )
@@ -773,9 +778,9 @@ void UiInspector::refresh() {
773778 ui->triggerOffLabel ->setVisible (showTriggerInfo);
774779 ui->triggerOffSpin ->setVisible (showTriggerInfo);
775780
776- ui->sizeHSpin ->setVisible (showCurvePointsInfo);
777- ui->sizeWSpin ->setVisible (showCurvePointsInfo);
778- ui->sizeLabel ->setVisible (showCurvePointsInfo);
781+ ui->sizeHSpin ->setVisible (showCurvePointsInfo || showCurveEllipseInfo );
782+ ui->sizeWSpin ->setVisible (showCurvePointsInfo || showCurveEllipseInfo );
783+ ui->sizeLabel ->setVisible (showCurvePointsInfo || showCurveEllipseInfo );
779784 ui->intertiaSpin ->setVisible (showCurvePointsInfo);
780785 ui->intertiaLabel ->setVisible (showCurvePointsInfo);
781786 ui->pointsLabel ->setVisible (showCurvePointsInfo);
0 commit comments