24 #ifndef __GENERICEDITOR_H_DD406E71__
25 #define __GENERICEDITOR_H_DD406E71__
27 #include "../../../JuceLibraryCode/JuceHeader.h"
28 #include "../GenericProcessor.h"
29 #include "../../AccessClass.h"
55 public Button::Listener,
56 public Slider::Listener
63 void paint (Graphics& g);
65 bool keyPressed (
const KeyPress& key);
67 void switchSelectedState();
71 bool getSelectionState();
75 bool getEnabledState();
76 void setEnabledState(
bool);
78 String getName() {
return name;}
83 virtual void tabNumber(
int t) {tNum = t;}
84 int tabNumber() {
return tNum;}
86 virtual void switchSource(
int) { }
87 virtual void switchSource() { };
97 virtual void switchDest() { }
98 virtual void switchIO(
int) { }
100 virtual void buttonClicked(Button* button);
101 virtual void buttonEvent(Button* button) {}
102 virtual void sliderValueChanged(Slider* slider);
103 virtual void sliderEvent(Slider* slider) {}
104 virtual void editorWasClicked() {}
106 bool checkDrawerButton(Button* button);
109 bool getRecordStatus(
int chan);
110 bool getAudioStatus(
int chan);
112 void selectChannels(Array<int>);
114 void refreshColors();
116 virtual void update();
117 virtual void updateSettings() {}
118 virtual void updateVisualizer() {}
120 virtual void channelChanged(
int chan) {}
122 Array<int> getActiveChannels();
126 int getStartChannel();
132 virtual void addParameterEditors();
138 virtual void timerCallback();
140 virtual void resized();
142 Colour backgroundColor;
143 ColourGradient backgroundGradient;
152 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (
GenericEditor);
163 void paintButton(Graphics& g,
bool isMouseOver,
bool isButtonDown);
172 {direction = direction_;}
175 void paintButton(Graphics& g,
bool isMouseOver,
bool isButtonDown);
186 void setCorners(
bool UL,
bool UR,
bool LL,
bool LR);
187 void setRadius(
float r);
189 void setEnabledState(
bool);
190 bool getEnabledState() {
return isEnabled;}
193 void paintButton(Graphics& g,
bool isMouseOver,
bool isButtonDown);
197 bool roundUL, roundUR, roundLL, roundLR;
199 ColourGradient selectedGrad, selectedOverGrad, neutralGrad, neutralOverGrad;
210 #endif // __GENERICEDITOR_H_DD406E71__