@@ -148,7 +148,7 @@ SpikeSorterEditor::SpikeSorterEditor(GenericProcessor* parentNode, bool useDefau
148148 channelSelector->paramButtonsToggledByDefault (false );
149149 // updateAdvancerList();
150150
151- dacAssignmentLabel= new Label (" DAC output" ," DAC output" );
151+ /* dacAssignmentLabel= new Label("DAC output","DAC output");
152152 dacAssignmentLabel->setFont(Font("Default", 10, Font::plain));
153153 dacAssignmentLabel->setEditable(false);
154154 dacAssignmentLabel->setBounds(210,115,80,20);
@@ -164,7 +164,7 @@ SpikeSorterEditor::SpikeSorterEditor(GenericProcessor* parentNode, bool useDefau
164164 dacCombo->addItem("DAC"+String(k+1),k+2);
165165 }
166166 dacCombo->setSelectedId(1);
167- addAndMakeVisible (dacCombo);
167+ addAndMakeVisible(dacCombo);*/
168168
169169}
170170
@@ -211,13 +211,13 @@ void SpikeSorterEditor::sliderEvent(Slider* slider)
211211
212212
213213
214- // Array<int> dacChannels = processor->getDACassignments;
214+ /* //Array<int> dacChannels = processor->getDACassignments;
215215 int dacChannel = dacCombo->getSelectedId()-2;
216216 if (dacChannel >= 0)
217217 {
218218 // update dac threshold.
219219 processor->updateDACthreshold(dacChannel, slider->getValue());
220- }
220+ }*/
221221
222222 }
223223 repaint ();
@@ -259,7 +259,7 @@ void SpikeSorterEditor::buttonEvent(Button* button)
259259 electrodeButtons.indexOf ((ElectrodeButton*) button)));
260260
261261
262- if (processor->getAutoDacAssignmentStatus ())
262+ /* if (processor->getAutoDacAssignmentStatus())
263263 {
264264 processor->assignDACtoChannel(0, channelNum);
265265 processor->assignDACtoChannel(1, channelNum);
@@ -274,7 +274,7 @@ void SpikeSorterEditor::buttonEvent(Button* button)
274274 dacCombo->setSelectedId(i+2, sendNotification);
275275 break;
276276 }
277- }
277+ }*/
278278
279279 }
280280 }
@@ -517,7 +517,7 @@ void SpikeSorterEditor::channelChanged (int channel, bool newState)
517517 i,
518518 channel - 1 );
519519
520- // if DAC is selected, update the mapping.
520+ /* // if DAC is selected, update the mapping.
521521 int dacchannel = dacCombo->getSelectedId() - 2;
522522 if (dacchannel >=0)
523523 {
@@ -528,7 +528,7 @@ void SpikeSorterEditor::channelChanged (int channel, bool newState)
528528 processor->assignDACtoChannel (0, channel - 1);
529529 processor->assignDACtoChannel (1, channel - 1);
530530 break;
531- }
531+ }*/
532532 }
533533 }
534534}
@@ -587,7 +587,7 @@ void SpikeSorterEditor::refreshElectrodeList(int selected)
587587 processor->assignDACtoChannel (0 , e->channels [0 ]);
588588 processor->assignDACtoChannel (1 , e->channels [0 ]);
589589 }
590- Array<int > dacAssignmentToChannels = processor->getDACassignments ();
590+ /* Array<int> dacAssignmentToChannels = processor->getDACassignments();
591591 // search for channel[0]. If found, set the combo box accordingly...
592592 dacCombo->setSelectedId(1, sendNotification);
593593 for (int i=0; i<dacAssignmentToChannels.size(); i++)
@@ -598,7 +598,7 @@ void SpikeSorterEditor::refreshElectrodeList(int selected)
598598 processor->updateDACthreshold(i+2, e->thresholds[0]);
599599 break;
600600 }
601- }
601+ }*/
602602
603603
604604
@@ -664,7 +664,7 @@ void SpikeSorterEditor::comboBoxChanged(ComboBox* comboBox)
664664{
665665 SpikeSorter* processor = (SpikeSorter*) getProcessor ();
666666
667- if (comboBox == dacCombo)
667+ /* if (comboBox == dacCombo)
668668 {
669669 int selection = dacCombo->getSelectedId();
670670 // modify the dac channel assignment...
@@ -688,7 +688,7 @@ void SpikeSorterEditor::comboBoxChanged(ComboBox* comboBox)
688688 }
689689
690690 }
691- else if (comboBox == electrodeList)
691+ else*/ if (comboBox == electrodeList)
692692 {
693693 int ID = comboBox->getSelectedId ();
694694
@@ -726,7 +726,7 @@ void SpikeSorterEditor::comboBoxChanged(ComboBox* comboBox)
726726 processor->assignDACtoChannel (0 , e->channels [0 ]);
727727 processor->assignDACtoChannel (1 , e->channels [0 ]);
728728 }
729- Array<int > dacAssignmentToChannels = processor->getDACassignments ();
729+ /* Array<int> dacAssignmentToChannels = processor->getDACassignments();
730730 // search for channel[0]. If found, set the combo box accordingly...
731731 dacCombo->setSelectedId(1, sendNotification);
732732 for (int i=0; i<dacAssignmentToChannels.size(); i++)
@@ -736,7 +736,7 @@ void SpikeSorterEditor::comboBoxChanged(ComboBox* comboBox)
736736 dacCombo->setSelectedId(i+2, sendNotification);
737737 break;
738738 }
739- }
739+ }*/
740740
741741 }
742742
0 commit comments