From: isn Date: Wed, 8 Nov 2017 12:12:27 +0000 (+0300) Subject: refs #1373 comment out the limit of selected points in the local-point-list X-Git-Tag: v2.1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=190ad709e40fe26daaecb81dcd1b875a2d235b17;p=modules%2Fgeom.git refs #1373 comment out the limit of selected points in the local-point-list --- diff --git a/src/CurveCreator/CurveCreator_Widget.cxx b/src/CurveCreator/CurveCreator_Widget.cxx index 1906c758d..5d000b1f8 100644 --- a/src/CurveCreator/CurveCreator_Widget.cxx +++ b/src/CurveCreator/CurveCreator_Widget.cxx @@ -80,11 +80,10 @@ CurveCreator_Widget::CurveCreator_Widget(QWidget* parent, CurveCreator_ICurve *theCurve, const int theActionFlags, const QStringList& theCoordTitles, - Qt::WindowFlags fl, - int theLocalPointRowLimit ) + Qt::WindowFlags fl ) : QWidget(parent), myNewSectionEditor(NULL), myCurve(theCurve), mySection(0), myDragStarted( false ), myDragInteractionStyle( SUIT_ViewModel::STANDARD ), - myOCCViewer( 0 ), myLocalPointRowLimit( theLocalPointRowLimit ), + myOCCViewer( 0 ), myOld2DMode(OCCViewer_ViewWindow::No2dMode) { bool isToEnableClosed = !( theActionFlags & DisableClosedSection ); @@ -1460,16 +1459,16 @@ void CurveCreator_Widget::updateLocalPointView() CurveCreator_Utils::getSelectedPoints( aContext, myCurve, myLocalPoints ); int aNbPoints = myLocalPoints.size(); - bool isRowLimit = aNbPoints > myLocalPointRowLimit; - myLocalPointView->setVisible( getActionMode() == ModificationMode && !isRowLimit ); + //bool isRowLimit = aNbPoints > myLocalPointRowLimit; + myLocalPointView->setVisible( getActionMode() == ModificationMode/* && !isRowLimit */); - if ( !isRowLimit ) { - bool isBlocked = myLocalPointView->blockSignals(true); + //if ( !isRowLimit ) { + bool isBlocked = myLocalPointView->blockSignals(true); - myLocalPointView->setLocalPointsToTable( myLocalPoints ); + myLocalPointView->setLocalPointsToTable( myLocalPoints ); - myLocalPointView->blockSignals( isBlocked ); - } + myLocalPointView->blockSignals( isBlocked ); + //} } /** diff --git a/src/CurveCreator/CurveCreator_Widget.h b/src/CurveCreator/CurveCreator_Widget.h index d72d842e8..e91e50249 100644 --- a/src/CurveCreator/CurveCreator_Widget.h +++ b/src/CurveCreator/CurveCreator_Widget.h @@ -71,8 +71,7 @@ public: CurveCreator_ICurve *theCurve, const int theActionFlags = NoFlags, const QStringList& theCoordTitles = QStringList(), - Qt::WindowFlags fl=0, - int theLocalPointRowLimit = 20); + Qt::WindowFlags fl=0); // OCC viewer manipulation void setOCCViewer( OCCViewer_Viewer* theViewer );