@@ -849,19 +849,6 @@ LfpDisplayOptions::LfpDisplayOptions(LfpDisplayCanvas* canvas_, LfpTimescale* ti
849849 selectedVoltageRangeValues[DataChannel::AUX_CHANNEL] = voltageRanges[DataChannel::AUX_CHANNEL][selectedVoltageRange[DataChannel::AUX_CHANNEL] - 1 ];
850850 selectedVoltageRangeValues[DataChannel::ADC_CHANNEL] = voltageRanges[DataChannel::ADC_CHANNEL][selectedVoltageRange[DataChannel::ADC_CHANNEL] - 1 ];
851851
852- channelZoomSlider = new Slider;
853- channelZoomSlider->setRange (0.1 , 4.0 );
854- channelZoomSlider->setValue (1.0 );
855- channelZoomSlider->setSkewFactor (0.75 );
856- channelZoomSlider->setTextBoxStyle (Slider::NoTextBox, false , 50 , 30 );
857- channelZoomSlider->addListener (this );
858- addAndMakeVisible (channelZoomSlider);
859-
860- channelZoomSliderLabel = new Label (" Channel Zoom" , " Channel Zoom" );
861- channelZoomSliderLabel->setFont (labelFont);
862- channelZoomSliderLabel->setColour (Label::textColourId, labelColour);
863- addAndMakeVisible (channelZoomSliderLabel);
864-
865852
866853
867854 // init channel display skipping options
@@ -1162,51 +1149,32 @@ void LfpDisplayOptions::resized()
11621149
11631150 colorGroupingSelection->setBounds (400 ,getHeight ()-90 ,60 ,25 );
11641151
1165- invertInputButton->setBounds (35 ,getHeight ()-180 ,100 ,22 );
1166- drawMethodButton->setBounds (35 ,getHeight ()-150 ,100 ,22 );
1152+ invertInputButton->setBounds (35 ,getHeight ()-190 ,100 ,22 );
1153+ drawMethodButton->setBounds (35 ,getHeight ()-160 ,100 ,22 );
11671154
11681155 pauseButton->setBounds (450 ,getHeight ()-50 ,50 ,44 );
11691156
11701157 // Channel Zoom Slider
1171- channelZoomSlider->setBounds (pauseButton->getRight () + 5 ,
1172- getHeight () - 30 ,
1173- 100 ,
1174- 22 );
1175- channelZoomSliderLabel->setBounds (channelZoomSlider->getX (),
1176- channelZoomSlider->getY () - 20 ,
1177- 180 ,
1178- 22 );
1179-
11801158 // Reverse Channels Display
1181- reverseChannelsDisplayButton->setBounds (channelZoomSlider-> getX () + channelZoomSlider-> getWidth () + 5 ,
1182- getHeight ()- 50 ,
1183- 20 ,
1184- 20 );
1159+ reverseChannelsDisplayButton->setBounds (pauseButton-> getRight () + 5 ,
1160+ getHeight () - 50 ,
1161+ 20 ,
1162+ 20 );
11851163 reverseChannelsDisplayLabel->setBounds (reverseChannelsDisplayButton->getRight (),
11861164 reverseChannelsDisplayButton->getY (),
11871165 120 ,
11881166 22 );
11891167
11901168 // Channel Display Skip Selector
1191- channelDisplaySkipSelection->setBounds (channelZoomSlider ->getX () + channelZoomSlider-> getWidth () + 5 ,
1192- channelZoomSlider-> getY (),
1169+ channelDisplaySkipSelection->setBounds (reverseChannelsDisplayButton ->getX (),
1170+ reverseChannelsDisplayButton-> getBottom (),
11931171 60 ,
11941172 25 );
11951173 channelDisplaySkipLabel->setBounds (channelDisplaySkipSelection->getRight (),
11961174 channelDisplaySkipSelection->getY () + 2 ,
11971175 100 ,
11981176 22 );
11991177
1200- // Stream Rate Displayed Selector
1201- // streamRateDisplayedSelection->setBounds(reverseChannelsDisplayButton->getX() + 130,
1202- // channelDisplaySkipSelection->getY(),
1203- // 60,
1204- // 25);
1205- // streamRateDisplayedLabel->setBounds(streamRateDisplayedSelection->getX() - 5,
1206- // reverseChannelsDisplayButton->getY(),
1207- // 150,
1208- // 22);
1209-
12101178 // Median Offset Plotting Button
12111179 medianOffsetPlottingButton->setBounds (reverseChannelsDisplayLabel->getRight () + 5 ,
12121180 reverseChannelsDisplayButton->getY (),
@@ -1228,12 +1196,12 @@ void LfpDisplayOptions::resized()
12281196 eventDisplayInterfaces[i]->repaint ();
12291197 }
12301198
1231- brightnessSliderA->setBounds (170 ,getHeight ()-180 ,100 ,22 );
1232- sliderALabel->setBounds (270 , getHeight ()-180 , 180 , 22 );
1199+ brightnessSliderA->setBounds (170 ,getHeight ()-190 ,100 ,22 );
1200+ sliderALabel->setBounds (270 , getHeight ()-190 , 180 , 22 );
12331201 brightnessSliderA->setValue (0.9 ); // set default value
12341202
1235- brightnessSliderB->setBounds (170 ,getHeight ()-150 ,100 ,22 );
1236- sliderBLabel->setBounds (270 , getHeight ()-150 , 180 , 22 );
1203+ brightnessSliderB->setBounds (170 ,getHeight ()-160 ,100 ,22 );
1204+ sliderBLabel->setBounds (270 , getHeight ()-160 , 180 , 22 );
12371205 brightnessSliderB->setValue (0.1 ); // set default value
12381206
12391207 showHideOptionsButton->setBounds (getWidth () - 28 , getHeight () - 28 , 20 , 20 );
@@ -1246,7 +1214,7 @@ void LfpDisplayOptions::resized()
12461214
12471215
12481216 colourSchemeOptionLabel->setBounds (medianOffsetPlottingButton->getX (),
1249- getHeight ()-180 ,
1217+ getHeight ()-190 ,
12501218 100 ,
12511219 22 );
12521220 colourSchemeOptionSelection->setBounds (colourSchemeOptionLabel->getRight (),
@@ -1260,7 +1228,7 @@ void LfpDisplayOptions::resized()
12601228 lfpDisplay->getColourSchemePtr ()->setBounds (colourSchemeOptionLabel->getX (),
12611229 colourSchemeOptionLabel->getBottom (),
12621230 200 ,
1263- 120 );
1231+ 110 );
12641232 }
12651233}
12661234
@@ -1487,7 +1455,7 @@ void LfpDisplayOptions::comboBoxChanged(ComboBox* cb)
14871455 lfpDisplay->getColourSchemePtr ()->setBounds (colourSchemeOptionLabel->getX (),
14881456 colourSchemeOptionLabel->getBottom (),
14891457 200 ,
1490- 100 );
1458+ 110 );
14911459 addAndMakeVisible (lfpDisplay->getColourSchemePtr ());
14921460 }
14931461
@@ -1705,16 +1673,7 @@ void LfpDisplayOptions::sliderValueChanged(Slider* sl)
17051673
17061674 if (sl == brightnessSliderB)
17071675 canvas->histogramParameterB = sl->getValue ();
1708-
1709- if (sl == channelZoomSlider)
1710- {
1711- lfpDisplay->cacheNewChannelHeight (canvas->getChannelHeight () * sl->getValue ());
1712-
1713- if (lfpDisplay->getSingleChannelState ()) return ;
1714-
1715- lfpDisplay->setChannelHeight (canvas->getChannelHeight () * sl->getValue ());
1716- canvas->resizeToChannels (true );
1717- }
1676+
17181677
17191678 canvas->fullredraw =true ;
17201679 // repaint();
0 commit comments