Skip to content

Commit

Permalink
cleared slightely the monitoring of mapped nodes solving the clearNod…
Browse files Browse the repository at this point in the history
…e issue btheway
  • Loading branch information
LafCorentin committed Sep 16, 2020
1 parent 073ad38 commit edad210
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Expand Up @@ -193,7 +193,7 @@ CellMLZincMappingViewEditingWidget::CellMLZincMappingViewEditingWidget(const QSt
mZincWidget = new CellMLZincMappingViewZincWidget(this, mZincMeshFileNames, this);

connect(mClearNode, &QAction::triggered,
mZincWidget, &CellMLZincMappingViewZincWidget::eraseNode);
mZincWidget, &CellMLZincMappingViewZincWidget::eraseNodeSlot);
connect(mNodeSizeWidget, &QwtWheel::valueChanged,
mZincWidget, &CellMLZincMappingViewZincWidget::setNodeSizes);

Expand Down
Expand Up @@ -710,12 +710,15 @@ void CellMLZincMappingViewZincWidget:: setNodeSizes(int pSize) {

//==============================================================================

void CellMLZincMappingViewZincWidget::eraseNode(int pId)
void CellMLZincMappingViewZincWidget::eraseNodeSlot()
{
if (pId==-1) {
pId = mIdSelectedNode;
}
eraseNode(mIdSelectedNode);
}

//==============================================================================

void CellMLZincMappingViewZincWidget::eraseNode(int pId)
{
mEditingWidget->eraseNodeValue(pId);

// select and highlight the current node
Expand Down
Expand Up @@ -69,6 +69,7 @@ class CellMLZincMappingViewZincWidget : public ZincWidget::ZincWidget

bool hasNode(int pId);
void setNodeMapped(int pId, QString pComponent, QString pVariable);
void eraseNode(int pId);

QList<bool> getCheckedAction();
void setCheckedAction(QList<bool>);
Expand All @@ -78,7 +79,7 @@ class CellMLZincMappingViewZincWidget : public ZincWidget::ZincWidget

public slots:
void setNodeSizes(int pSize);
void eraseNode(int pId = -1);
void eraseNodeSlot();

protected:
void initializeGL() override;
Expand Down

0 comments on commit edad210

Please sign in to comment.