commit ff673e524e677703cca5606e9c665068d2ffbfee
parent 4189b19880d30841d0a5510d49a3b921882c86e8
Author: Christopher A. Oliver <caowasteland@gmail.com>
Date: Sat, 10 Oct 2015 05:40:15 -0400
The add and delete free mode buttons MUST be able to be rebased.
Diffstat:
1 file changed, 19 insertions(+), 4 deletions(-)
diff --git a/src/UI/EnvelopeUI.fl b/src/UI/EnvelopeUI.fl
@@ -56,6 +56,21 @@ decl {\#include "common.H"} {public local
decl {\#include "EnvelopeFreeEdit.h"} {public local
}
+class PointButton {open : {public Fl_Button, public Fl_Osc_Widget}}
+{
+ Function {PointButton(int x,int y, int w, int h, const char *label=0):Fl_Button(x,y,w,h,label),Fl_Osc_Widget(this)} {open
+ } {
+ code {} {}
+ }
+ Function {Osc_value(bool v)} {open
+ } {
+ code {Fl_Button::value(v);} {}
+ }
+ Function {init(std::string path_)} {open
+ } {
+ code {ext = path_; oscRegister(ext.c_str());} {}
+ }
+}
class EnvelopeUI {open : {public Fl_Osc_Group,PresetsUI_}
} {
Function {EnvelopeUI(int x,int y, int w, int h, const char *label=0):Fl_Osc_Group(x,y,w,h,label)} {} {
@@ -104,8 +119,8 @@ sustaincounter->update();
//sustaincounter->value(Penvsustain);
//sustaincounter->maximum(Penvpoints-2);}
xywh {115 155 80 20} box THIN_UP_BOX labelsize 11
- code0 {(void)o;//if (Pfreemode==0) o->hide();}
- class Fl_Osc_Button
+ code0 {(void)o->init("addPoint");}
+ class PointButton
}
Fl_Box freeedit {
label Envelope
@@ -124,8 +139,8 @@ sustaincounter->update();
//sustaincounter->value(Penvsustain);
//sustaincounter->maximum(Penvpoints-2);}
xywh {200 155 80 20} box THIN_UP_BOX labelsize 11
- code0 {(void)o;//if (Pfreemode==0) o->hide();}
- class Fl_Osc_Button
+ code0 {(void)o->init("delPoint");}
+ class PointButton
}
Fl_Check_Button forcedreleasecheck {
label frcR