- added test button
- added sample slip for performance investigation
This commit is contained in:
@@ -270,6 +270,11 @@ ControlComponent::ControlComponent (ReceiverInterface *pReceiverControlListener,
|
||||
m_buttonResetReset->setButtonText (TRANS("Reset"));
|
||||
m_buttonResetReset->addListener (this);
|
||||
|
||||
addAndMakeVisible (m_buttonTest = new TextButton ("Test"));
|
||||
m_buttonTest->setTooltip (TRANS("Test button"));
|
||||
m_buttonTest->setButtonText (TRANS("Test"));
|
||||
m_buttonTest->addListener (this);
|
||||
|
||||
addAndMakeVisible (m_entryAgcMu_0 = new TextEditor ("AGC Adaption Rate 0"));
|
||||
m_entryAgcMu_0->setTooltip (TRANS("AGC Adaption Rate 0"));
|
||||
m_entryAgcMu_0->setMultiLine (false);
|
||||
@@ -782,6 +787,7 @@ ControlComponent::~ControlComponent()
|
||||
m_labelNoiseStr = nullptr;
|
||||
m_labelSymbolReceivedCount = nullptr;
|
||||
m_buttonResetReset = nullptr;
|
||||
m_buttonTest = nullptr;
|
||||
m_entryAgcMu_0 = nullptr;
|
||||
toggleButtonCmaTrainingEnable = nullptr;
|
||||
toggleButtonDfeTrainingEnable = nullptr;
|
||||
@@ -1200,6 +1206,7 @@ void ControlComponent::resized()
|
||||
m_labelNoiseStr->setBounds (576, 624, 58, 24);
|
||||
m_labelSymbolReceivedCount->setBounds (544, 288, 90, 24);
|
||||
m_buttonResetReset->setBounds (512, 792, 64, 24);
|
||||
m_buttonTest->setBounds (512, 692, 64, 24);
|
||||
m_entryAgcMu_0->setBounds (560, 104, 64, 24);
|
||||
toggleButtonCmaTrainingEnable->setBounds (24, 320, 64, 24);
|
||||
toggleButtonDfeTrainingEnable->setBounds (280, 320, 64, 24);
|
||||
@@ -1329,6 +1336,12 @@ void ControlComponent::buttonClicked (Button* buttonThatWasClicked)
|
||||
m_pReceiverControlListener->reset();
|
||||
//[/UserButtonCode_m_buttonResetReset]
|
||||
}
|
||||
else if (buttonThatWasClicked == m_buttonTest)
|
||||
{
|
||||
//[UserButtonCode_m_buttonResetReset] -- add your button handler code here..
|
||||
m_pReceiverControlListener->test();
|
||||
//[/UserButtonCode_m_buttonResetReset]
|
||||
}
|
||||
else if (buttonThatWasClicked == toggleButtonCmaTrainingEnable)
|
||||
{
|
||||
//[UserButtonCode_toggleButtonCmaTrainingEnable] -- add your button handler code here..
|
||||
|
||||
Reference in New Issue
Block a user