// generated by Fast Light User Interface Designer (fluid) version 1.0300

#include "/build/infamousplugins/src/build/src/cheapdist/cheapdist_ui.h"

void CheapDistUI::cb_aggression_i(Dial*, void*) {
  write_function(controller,AGGRESSION,sizeof(float),0,&aggression->floatvalue);
}
void CheapDistUI::cb_aggression(Dial* o, void* v) {
  ((CheapDistUI*)(o->parent()->parent()->user_data()))->cb_aggression_i(o,v);
}

Fl_Double_Window* CheapDistUI::show() {
  { Fl_Double_Window* o = ui = new Fl_Double_Window(252, 193, "the infamous envelope follower");
    ui->box(FL_UP_BOX);
    ui->user_data((void*)(this));
    { Fl_Group* o = new Fl_Group(0, 0, 252, 193);
      { Background* o = bg = new Background(0, 0, 252, 193);
        bg->box(FL_NO_BOX);
        bg->color(FL_BACKGROUND_COLOR);
        bg->selection_color(FL_BACKGROUND_COLOR);
        bg->labeltype(FL_NORMAL_LABEL);
        bg->labelfont(0);
        bg->labelsize(14);
        bg->labelcolor(FL_FOREGROUND_COLOR);
        bg->align(Fl_Align(FL_ALIGN_CENTER));
        bg->when(FL_WHEN_RELEASE);
        o->drawing_h = cairo_code_draw_white_get_height(); o->drawing_w = cairo_code_draw_white_get_width(); o->drawing_f = &cairo_code_draw_white_render;
      } // Background* bg
      { Background* o = title = new Background(0, 0, 252, 54);
        title->box(FL_NO_BOX);
        title->color(FL_BACKGROUND_COLOR);
        title->selection_color(FL_BACKGROUND_COLOR);
        title->labeltype(FL_NORMAL_LABEL);
        title->labelfont(0);
        title->labelsize(14);
        title->labelcolor(FL_FOREGROUND_COLOR);
        title->align(Fl_Align(FL_ALIGN_CENTER));
        title->when(FL_WHEN_RELEASE);
        o->drawing_h = cairo_code_draw_cheapTitle_get_height(); o->drawing_w = cairo_code_draw_cheapTitle_get_width(); o->drawing_f = &cairo_code_draw_cheapTitle_render;
        o->stretch = false;
      } // Background* title
      { Background* o = aglab = new Background(95, 175, 98, 18);
        aglab->box(FL_NO_BOX);
        aglab->color(FL_BACKGROUND_COLOR);
        aglab->selection_color(FL_BACKGROUND_COLOR);
        aglab->labeltype(FL_NORMAL_LABEL);
        aglab->labelfont(0);
        aglab->labelsize(14);
        aglab->labelcolor(FL_FOREGROUND_COLOR);
        aglab->align(Fl_Align(FL_ALIGN_CENTER));
        aglab->when(FL_WHEN_RELEASE);
        o->drawing_h = cairo_code_draw_cheapAggression_get_height(); o->drawing_w = cairo_code_draw_cheapAggression_get_width(); o->drawing_f = &cairo_code_draw_cheapAggression_render;
        o->stretch = false;
      } // Background* aglab
      { Background* o = logo = new Background(5, 55, 67, 133);
        logo->box(FL_NO_BOX);
        logo->color(FL_BACKGROUND_COLOR);
        logo->selection_color(FL_BACKGROUND_COLOR);
        logo->labeltype(FL_NORMAL_LABEL);
        logo->labelfont(0);
        logo->labelsize(14);
        logo->labelcolor(FL_FOREGROUND_COLOR);
        logo->align(Fl_Align(FL_ALIGN_CENTER));
        logo->when(FL_WHEN_RELEASE);
        o->drawing_h = cairo_code_draw_infamousLogoBW_get_height(); o->drawing_w = cairo_code_draw_infamousLogoBW_get_width(); o->drawing_f = &cairo_code_draw_infamousLogoBW_render;
        o->stretch = false;
      } // Background* logo
      { Dial* o = aggression = new Dial(95, 55, 99, 119);
        aggression->tooltip("gain");
        aggression->box(FL_NO_BOX);
        aggression->color(FL_BACKGROUND_COLOR);
        aggression->selection_color(FL_INACTIVE_COLOR);
        aggression->labeltype(FL_NORMAL_LABEL);
        aggression->labelfont(0);
        aggression->labelsize(14);
        aggression->labelcolor(FL_FOREGROUND_COLOR);
        aggression->minimum(1);
        aggression->maximum(3);
        aggression->step(0.01);
        aggression->value(1);
        aggression->callback((Fl_Callback*)cb_aggression);
        aggression->align(Fl_Align(FL_ALIGN_BOTTOM));
        aggression->when(FL_WHEN_CHANGED);
        o->drawing_h = cairo_code_draw_cheapDial_get_height(); o->drawing_w = cairo_code_draw_cheapDial_get_width(); o->drawing_f = &cairo_code_draw_cheapDial_render;
        o->lock2int = true;
      } // Dial* aggression
      o->end();
      Fl_Group::current()->resizable(o);
    } // Fl_Group* o
    o->show();
    ui->end();
  } // Fl_Double_Window* ui
  return ui;
}

void CheapDistUI::idle() {
  Fl::check();
  Fl::flush();
}
