- added ToolTips for RBM windows
This commit is contained in:
@@ -44,7 +44,7 @@ public:
|
||||
Describe your class and how it works here!
|
||||
//[/Comments]
|
||||
*/
|
||||
class DrawComponent : public Component
|
||||
class DrawComponent : public Component, public SettableTooltipClient
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
+10
-2
@@ -35,29 +35,37 @@ RbmComponent::RbmComponent (DeepStack &stack, const std::string &name, size_t id
|
||||
, m_sizeX(430)
|
||||
, m_sizeY(190)
|
||||
{
|
||||
|
||||
addAndMakeVisible (DrawVisibleTrain = new DrawComponent (numVisibleX, numVisibleY));
|
||||
DrawVisibleTrain->setTooltip (Layer::name() + TRANS(": ") + TRANS("Visible Training"));
|
||||
DrawVisibleTrain->setListener(this);
|
||||
|
||||
addAndMakeVisible (DrawHidden = new DrawComponent (numHidden, 1));
|
||||
DrawHidden->setTooltip (TRANS(Layer::name() + TRANS(": ") + "Hidden"));
|
||||
DrawHidden->setListener(this);
|
||||
|
||||
addAndMakeVisible (DrawContextTrain = new DrawComponent (numContext, 1));
|
||||
DrawContextTrain->setTooltip (TRANS(Layer::name() + TRANS(": ") + "Context Training"));
|
||||
DrawContextTrain->setListener(this);
|
||||
|
||||
addAndMakeVisible (DrawContextReconst = new DrawComponent (numContext, 1));
|
||||
DrawContextReconst->setTooltip (TRANS(Layer::name() + TRANS(": ") + "Context Reconstruction"));
|
||||
DrawContextReconst->setListener(this);
|
||||
|
||||
addAndMakeVisible (DrawVisibleReconst = new DrawComponent (numVisibleX, numVisibleY));
|
||||
DrawVisibleReconst->setTooltip (TRANS(Layer::name() + TRANS(": ") + "Visibe Reconstruction"));
|
||||
|
||||
addAndMakeVisible (DrawWeights = new DrawComponent (numVisibleX, numVisibleY, 0.5, 0.5));
|
||||
DrawWeights->setTooltip (TRANS(Layer::name() + TRANS(": ") + "Weights"));
|
||||
|
||||
addAndMakeVisible (m_toggleEnable = new ToggleButton ("Enable layer"));
|
||||
m_toggleEnable->setTooltip (TRANS("Enable layer for up pass"));
|
||||
m_toggleEnable->setTooltip (Layer::name() + TRANS(": ") + TRANS("Enable layer for up pass"));
|
||||
m_toggleEnable->setButtonText (TRANS("Enable"));
|
||||
m_toggleEnable->addListener (this);
|
||||
m_toggleEnable->setToggleState(true, NotificationType::dontSendNotification);
|
||||
|
||||
addChildComponent (m_buttonCopyH2C = new TextButton ("Copy hidden state to context"));
|
||||
m_buttonCopyH2C->setTooltip (TRANS("Copy hidden state to context input"));
|
||||
m_buttonCopyH2C->setTooltip (Layer::name() + TRANS(": ") + TRANS("Copy hidden state to context input"));
|
||||
m_buttonCopyH2C->setButtonText (TRANS("H2C"));
|
||||
m_buttonCopyH2C->addListener (this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user