24 #ifndef __SPIKEDETECTOREDITOR_H_F0BD2DD9__
25 #define __SPIKEDETECTOREDITOR_H_F0BD2DD9__
28 #include "../../../JuceLibraryCode/JuceHeader.h"
29 #include "GenericEditor.h"
39 setClickingTogglesState(
true);
41 setToggleState(
true,
false);
45 int getChannelNum() {
return chan;}
46 void setChannelNum(
int i) {chan = i;}
48 void paintButton(Graphics& g,
bool isMouseOver,
bool isButtonDown);
57 name(name_), font(font_)
59 if (name.equalsIgnoreCase(
"edit") || name.equalsIgnoreCase(
"monitor"))
60 setClickingTogglesState(
true);
64 void paintButton(Graphics& g,
bool isMouseOver,
bool isButtonDown);
80 void setValues(Array<double>);
83 void paint(Graphics& g);
85 Path makeRotaryPath(
double,
double,
double);
91 Array<double> valueArray;
96 public Label::Listener,
97 public ComboBox::Listener
103 void buttonEvent(Button* button);
104 void labelTextChanged(Label* label);
105 void comboBoxChanged(ComboBox* comboBox);
106 void sliderEvent(Slider* slider);
108 void channelChanged(
int chan);
112 void drawElectrodeButtons(
int);
114 void refreshElectrodeList();
116 ComboBox* electrodeTypes;
117 ComboBox* electrodeList;
118 Label* numElectrodes;
119 Label* thresholdLabel;
126 OwnedArray<ElectrodeButton> electrodeButtons;
127 Array<ElectrodeEditorButton*> electrodeEditorButtons;
129 bool addElectrode(
int nChans);
130 void removeElectrode(
int index);
131 void editElectrode(
int index,
int chan,
int newChan);
145 #endif // __SPIKEDETECTOREDITOR_H_F0BD2DD9__