summaryrefslogtreecommitdiff
path: root/gui/src/ofApp.h
diff options
context:
space:
mode:
authorTim Redfern <tim@getdrop.com>2018-06-26 11:11:35 +0100
committerTim Redfern <tim@getdrop.com>2018-06-26 11:11:35 +0100
commitefda4fd446da89ccd3909c988b6c1e932efa24bb (patch)
tree753e13bcf097a9468aecef9ecd8aacd9d1b07720 /gui/src/ofApp.h
parent3baf7e68c29a5a37f9317aeb0f4e75252a9e4530 (diff)
multi chaos panel WIP
Diffstat (limited to 'gui/src/ofApp.h')
-rw-r--r--gui/src/ofApp.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/gui/src/ofApp.h b/gui/src/ofApp.h
index 29c6929..4d766e9 100644
--- a/gui/src/ofApp.h
+++ b/gui/src/ofApp.h
@@ -37,9 +37,9 @@ enum Source{
};
-class mouseSelectPanel : public ofxPanel {
+class chaosPanel : public ofxPanel {
public:
- mouseSelectPanel(){
+ chaosPanel(){
ofRegisterKeyEvents(this, defaultEventsPriority);
}
bool isSelected;
@@ -67,11 +67,14 @@ class mouseSelectPanel : public ofxPanel {
//ofLog()<<"KEY> "<<args.key;
switch(args.key){
case 3812:{
- //previous
+ chaosloader.previous();
+ update_sliders();
break;
}
case 3814:{
- //next
+ chaosloader.next();
+ update_sliders();
+ break;
}
}
}
@@ -79,7 +82,12 @@ class mouseSelectPanel : public ofxPanel {
bool keyReleased(ofKeyEventArgs & args){
//required in order to call ofRegisterKeyEvents
}
-
+ void update_sliders(){
+ //delete sliders
+ //get number of params
+ //create sliders with stored values, names
+ }
+ Chaos chaosloader;
};
@@ -176,7 +184,7 @@ class ofApp: public ofBaseApp, public ofxMidiListener {
//======== chaos gui
- mouseSelectPanel chaosgui;
+ chaosPanel chaosgui;
ofxLabel plugin_label;
ofParameter<string> plugin_name;