mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
fix polyline curve tablewidget edition: avoid deselection and table hide at each modification, fix order by colummns
This commit is contained in:
parent
951250adc1
commit
1f28437543
@ -219,7 +219,7 @@ void CurveCreator_TableView::OnHeaderClick( int theLogicalId )
|
||||
int point = item( r, 1 )->data( Qt::UserRole ).toInt();
|
||||
selected.push_back( CurveCreator_ICurve::SectionToPoint( section, point ) );
|
||||
}
|
||||
myWidget->setSelectedPoints( selected );
|
||||
//myWidget->setSelectedPoints( selected ); // seems unneeded and breaks the sorting
|
||||
|
||||
myCurrentSortId = theLogicalId;
|
||||
}
|
||||
|
@ -1526,17 +1526,18 @@ void CurveCreator_Widget::moveSelectedPoints( const int theXPosition,
|
||||
finishCurveModification( myDragPoints );
|
||||
}
|
||||
|
||||
void CurveCreator_Widget::updateLocalPointView()
|
||||
void CurveCreator_Widget::updateLocalPointView(bool isGetSelected)
|
||||
{
|
||||
if ( myDragStarted )
|
||||
return;
|
||||
Handle(AIS_InteractiveContext) aContext = getAISContext();
|
||||
if ( aContext.IsNull() )
|
||||
return;
|
||||
|
||||
CurveCreator_Utils::getSelectedPoints( aContext, myCurve, myLocalPoints );
|
||||
if (isGetSelected)
|
||||
{
|
||||
CurveCreator_Utils::getSelectedPoints( aContext, myCurve, myLocalPoints );
|
||||
}
|
||||
int aNbPoints = myLocalPoints.size();
|
||||
|
||||
//bool isRowLimit = aNbPoints > myLocalPointRowLimit;
|
||||
myLocalPointView->setVisible( getActionMode() == ModificationMode/* && !isRowLimit */);
|
||||
|
||||
@ -1606,8 +1607,8 @@ void CurveCreator_Widget::setSelectedPoints( const CurveCreator_ICurve::SectionT
|
||||
return;
|
||||
|
||||
CurveCreator_Utils::setSelectedPoints( aContext, myCurve, thePoints );
|
||||
|
||||
updateLocalPointView();
|
||||
bool keepSelected = (thePoints.size() != 0) && (getActionMode() == ModificationMode);
|
||||
updateLocalPointView(!keepSelected);
|
||||
}
|
||||
|
||||
void CurveCreator_Widget::stopActionMode()
|
||||
|
@ -98,7 +98,7 @@ public:
|
||||
void setSelectedPoints( const CurveCreator_ICurve::SectionToPointList& =
|
||||
CurveCreator_ICurve::SectionToPointList() );
|
||||
|
||||
void updateLocalPointView();
|
||||
void updateLocalPointView(bool isGetSelected = true);
|
||||
void setLocalPointContext( const bool theOpen, const bool isUpdateTable = false );
|
||||
|
||||
signals:
|
||||
|
Loading…
Reference in New Issue
Block a user