- 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:
+16
-3
@@ -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]
|
||||
|
||||
//==============================================================================
|
||||
|
||||
Reference in New Issue
Block a user