- 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:
+14
-3
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user