- added clear button for clearing the stack

- create: use numHidden from prev. layer for numVisible of layer to be created
- fixed enable/disable of layers

git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@665 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2019-11-13 18:53:04 +00:00
parent 24f253e892
commit fecf93a012
3 changed files with 40 additions and 9 deletions
+14 -3
View File
@@ -203,10 +203,21 @@ void RbmComponent::buttonClicked(Button* buttonThatWasClicked)
if (buttonThatWasClicked == m_toggleEnable)
{
bool state = buttonThatWasClicked->getToggleState();
if (next)
if (state)
{
RbmComponent *pComp = static_cast<RbmComponent*> (next);
pComp->m_toggleEnable->setToggleState(state, NotificationType::sendNotification);
if (prev)
{
RbmComponent *pComp = static_cast<RbmComponent*> (prev);
pComp->m_toggleEnable->setToggleState(state, NotificationType::sendNotification);
}
}
else
{
if (next)
{
RbmComponent *pComp = static_cast<RbmComponent*> (next);
pComp->m_toggleEnable->setToggleState(state, NotificationType::sendNotification);
}
}
redrawReconstruction();
}