Skip to content

Commit

Permalink
Rename function onMRML...Modifid to updateWidgetFrom...Node()
Browse files Browse the repository at this point in the history
See Issue #13636
  • Loading branch information
vovythevov committed Nov 2, 2012
1 parent 1c52d3b commit b8d3780
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions Modules/Loadable/Armatures/qSlicerArmaturesModuleWidget.cxx
Expand Up @@ -411,12 +411,12 @@ ::setMRMLArmatureNode(vtkMRMLArmatureNode* armatureNode)
{
Q_D(qSlicerArmaturesModuleWidget);
this->qvtkReconnect(d->ArmatureNode, armatureNode,
vtkCommand::ModifiedEvent, this, SLOT(onMRMLArmatureNodeModified()));
vtkCommand::ModifiedEvent, this, SLOT(updateWidgetFromArmatureNode()));
d->ArmatureNode = armatureNode;

d->logic()->SetActiveArmature(armatureNode);
this->onTreeNodeSelected(armatureNode);
this->onMRMLArmatureNodeModified();
this->updateWidgetFromArmatureNode();
}

//-----------------------------------------------------------------------------
Expand Down Expand Up @@ -530,7 +530,7 @@ void qSlicerArmaturesModuleWidget::updateWidgetFromLogic()
}

//-----------------------------------------------------------------------------
void qSlicerArmaturesModuleWidget::onMRMLArmatureNodeModified()
void qSlicerArmaturesModuleWidget::updateWidgetFromArmatureNode()
{
Q_D(qSlicerArmaturesModuleWidget);

Expand All @@ -543,7 +543,7 @@ void qSlicerArmaturesModuleWidget::onMRMLArmatureNodeModified()
}

//-----------------------------------------------------------------------------
void qSlicerArmaturesModuleWidget::onMRMLBoneNodeModified()
void qSlicerArmaturesModuleWidget::updateWidgetFromBoneNode()
{
Q_D(qSlicerArmaturesModuleWidget);
d->updateHierarchy(d->BoneNode);
Expand All @@ -560,7 +560,7 @@ void qSlicerArmaturesModuleWidget::onTreeNodeSelected(vtkMRMLNode* node)
if (boneNode)
{
this->qvtkReconnect(d->BoneNode, boneNode, vtkCommand::ModifiedEvent,
this, SLOT(onMRMLBoneNodeModified()));
this, SLOT(updateWidgetFromBoneNode()));
d->BoneNode = boneNode;
}

Expand Down
10 changes: 5 additions & 5 deletions Modules/Loadable/Armatures/qSlicerArmaturesModuleWidget.h
Expand Up @@ -85,15 +85,15 @@ protected slots:
void updateWidgetFromLogic();

/// Update the GUI from the \a the current armature node.
/// \sa onMRMLArmatureNodeModified()
void onMRMLArmatureNodeModified();
/// \sa updateWidgetFromBoneNode()
void updateWidgetFromArmatureNode();

/// Update the GUI from the \a the current bone node.
/// \sa onMRMLArmatureNodeModified()
void onMRMLBoneNodeModified();
/// \sa updateWidgetFromArmatureNode()
void updateWidgetFromBoneNode();

/// Update the GUI for the \a selected node.
/// \sa onMRMLArmatureNodeModified()
/// \sa updateWidgetFromArmatureNode(), updateWidgetFromBoneNode()
void onTreeNodeSelected(vtkMRMLNode* node);

void updateCurrentMRMLBoneNode();
Expand Down

0 comments on commit b8d3780

Please sign in to comment.