From c3b1eb11d59db9656c9fc69e3c7505b176e03a41 Mon Sep 17 00:00:00 2001
From: Aaron Cuevas Lopez <aacuelo@teleco.upv.es>
Date: Fri, 6 Mar 2015 19:35:34 +0100
Subject: [PATCH] Remove gain boxes

---
 Source/Processors/DataThreads/RHD2000Editor.cpp | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/Source/Processors/DataThreads/RHD2000Editor.cpp b/Source/Processors/DataThreads/RHD2000Editor.cpp
index 7a0a35897..7e1e3dd3f 100644
--- a/Source/Processors/DataThreads/RHD2000Editor.cpp
+++ b/Source/Processors/DataThreads/RHD2000Editor.cpp
@@ -122,7 +122,8 @@ void FPGAchannelList::buttonClicked(Button* btn)
 
 void FPGAchannelList::update()
 {
-    const int columnWidth = 330;
+   // const int columnWidth = 330;
+	const int columnWidth = 250;
     // Query processor for number of channels, types, gains, etc... and update the UI
     channelComponents.clear();
     staticLabels.clear();
@@ -333,7 +334,7 @@ FPGAchannelComponent::FPGAchannelComponent(FPGAchannelList* cl, int ch, int gain
     editName->setColour(Label::backgroundColourId,juce::Colours::lightgrey);
     editName->addListener(this);
     addAndMakeVisible(editName);
-    if (gainIndex > 0)
+/*    if (gainIndex > 0)
     {
 
         gainComboBox = new ComboBox("Gains");
@@ -353,9 +354,9 @@ FPGAchannelComponent::FPGAchannelComponent(FPGAchannelList* cl, int ch, int gain
         addAndMakeVisible(gainComboBox);
     }
     else
-    {
+    {*/
         gainComboBox = nullptr;
-    }
+    //}
 
     if (type == HEADSTAGE_CHANNEL)
     {
@@ -440,7 +441,8 @@ void FPGAchannelComponent::resized()
     }
     if (impedance != nullptr)
     {
-        impedance->setBounds(180,0,130,20);
+       // impedance->setBounds(180,0,130,20);
+		impedance->setBounds(100, 0, 130, 20);
     }
 
 }
-- 
GitLab