/* Form definition file generated with fdesign. */

#include "forms.h"
#include <stdlib.h>
#include "xfhdlcchpar.h"

FD_chpar *create_form_chpar(void)
{
  FL_OBJECT *obj;
  FD_chpar *fdui = (FD_chpar *) fl_calloc(1, sizeof(*fdui));

  fdui->chpar = fl_bgn_form(FL_NO_BOX, 390, 260);
  obj = fl_add_box(FL_UP_BOX,0,0,390,260,"");
  obj = fl_add_box(FL_DOWN_BOX,10,10,370,240,"");
    fl_set_object_resize(obj, FL_RESIZE_NONE);
  fdui->txdelay = obj = fl_add_valslider(FL_HOR_FILL_SLIDER,24,30,341,30,"Tx Delay (ms)");
    fl_set_object_callback(obj,cb_update,0);
    fl_set_slider_bounds(obj, 0.00, 2550.00);
    fl_set_slider_value(obj, 200.00);
  fdui->txtail = obj = fl_add_valslider(FL_HOR_FILL_SLIDER,24,80,341,30,"Tx Tail (ms)");
    fl_set_object_callback(obj,cb_update,0);
    fl_set_slider_bounds(obj, 0.00, 2550.00);
    fl_set_slider_value(obj, 30.00);
  fdui->slottime = obj = fl_add_valslider(FL_HOR_FILL_SLIDER,24,130,341,30,"Slottime (ms)");
    fl_set_object_callback(obj,cb_update,0);
    fl_set_slider_bounds(obj, 0.00, 2550.00);
    fl_set_slider_value(obj, 100.00);
  fdui->ppersist = obj = fl_add_valslider(FL_HOR_FILL_SLIDER,24,180,341,30,"P-Persistence");
    fl_set_object_callback(obj,cb_update,0);
    fl_set_slider_bounds(obj, 0.00, 255.00);
    fl_set_slider_value(obj, 40.00);
  fdui->fulldup = obj = fl_add_checkbutton(FL_PUSH_BUTTON,20,220,90,20,"Full Duplex");
    fl_set_object_callback(obj,cb_update,0);
  fdui->quit = obj = fl_add_button(FL_NORMAL_BUTTON,290,220,70,20,"Quit");
    fl_set_object_callback(obj,cb_quit,0);
  obj = fl_add_text(FL_NORMAL_TEXT,190,220,50,20,"Interface");
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  fdui->ifname = obj = fl_add_text(FL_NORMAL_TEXT,240,220,40,20,"");
    fl_set_object_boxtype(obj,FL_EMBOSSED_BOX);
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  fl_end_form();
  fdui->chpar->fdui = fdui;

  return fdui;
}
/*---------------------------------------*/

