- add enable button for up down pass abort

git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@655 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2019-11-11 17:42:29 +00:00
parent 5bb8d7a442
commit 12f08b38bc
2 changed files with 49 additions and 11 deletions
+16 -3
View File
@@ -34,9 +34,10 @@
Describe your class and how it works here!
//[/Comments]
*/
class RbmComponent : public Component
, public Layer
, public DrawListener
class RbmComponent : public Component
, public Layer
, public DrawListener
, public ButtonListener
{
public:
//==============================================================================
@@ -76,8 +77,20 @@ private:
//[UserVariables] -- You can add your own custom variables in this section.
ScopedPointer<DrawComponent> DrawReconstruction;
ScopedPointer<DrawComponent> DrawWeights;
ScopedPointer<ToggleButton> m_toggleEnable;
bool isEnabled()
{
return m_toggleEnable->getToggleState();
}
void enable(bool state)
{
m_toggleEnable->setToggleState(state, NotificationType::sendNotification);
}
size_t m_currWeightIndexToDraw;
void onDraw(DrawComponent &obj) override;
void buttonClicked(Button* buttonThatWasClicked) override;
//[/UserVariables]
//==============================================================================