/* Form definition file generated with fdesign. */

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

FD_scope *create_form_scope(void)
{
  FL_OBJECT *obj;
  FD_scope *fdui = (FD_scope *) fl_calloc(1, sizeof(*fdui));

  fdui->scope = fl_bgn_form(FL_NO_BOX, 680, 540);
  obj = fl_add_box(FL_UP_BOX,0,0,680,540,"");
  fdui->scdisp = obj = fl_add_canvas(FL_NORMAL_CANVAS,10,10,520,520,"");
    fl_set_object_resize(obj, FL_RESIZE_NONE);
  fdui->cleargr = obj = fl_add_button(FL_NORMAL_BUTTON,630,150,40,60,"Clear\nGraph");
    fl_set_object_callback(obj,cb_cleargr,0);
  obj = fl_add_text(FL_NORMAL_TEXT,540,310,130,50,"(C) 1996 by\nTom Sailer\nHB9JNX/AE4WA");
    fl_set_object_boxtype(obj,FL_EMBOSSED_BOX);
    fl_set_object_lsize(obj,FL_MEDIUM_SIZE);
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
    fl_set_object_lstyle(obj,FL_NORMAL_STYLE+FL_EMBOSSED_STYLE);

  fdui->scopemode = fl_bgn_group();
  obj = fl_add_box(FL_DOWN_BOX,540,10,130,130,"");
    fl_set_object_resize(obj, FL_RESIZE_NONE);
  fdui->sm_off = obj = fl_add_checkbutton(FL_RADIO_BUTTON,550,20,110,20,"Off");
    fl_set_object_callback(obj,cb_mode,0);
    fl_set_button(obj, 1);
  fdui->sm_input = obj = fl_add_checkbutton(FL_RADIO_BUTTON,550,40,110,20,"Input");
    fl_set_object_callback(obj,cb_mode,0);
  fdui->sm_demod = obj = fl_add_checkbutton(FL_RADIO_BUTTON,550,60,110,20,"Demodulator");
    fl_set_object_callback(obj,cb_mode,0);
  fdui->sm_constell = obj = fl_add_checkbutton(FL_RADIO_BUTTON,550,80,110,20,"Constellation");
    fl_set_object_callback(obj,cb_mode,0);
  fdui->sm_dcd = obj = fl_add_checkbutton(FL_PUSH_BUTTON,550,110,110,20,"Gated with DCD");
    fl_set_object_callback(obj,cb_mode,0);
  fl_end_group();

  fdui->quit = obj = fl_add_button(FL_NORMAL_BUTTON,540,270,130,30,"Quit");
    fl_set_object_callback(obj,cb_quit,0);
  fdui->timer = obj = fl_add_timer(FL_HIDDEN_TIMER,630,320,40,30,"");
    fl_set_object_callback(obj,cb_timer,0);
  obj = fl_add_box(FL_DOWN_BOX,540,150,80,60,"");
    fl_set_object_resize(obj, FL_RESIZE_NONE);
  fdui->st_dcd = obj = fl_add_roundbutton(FL_NORMAL_BUTTON,590,160,20,20,"");
    fl_set_object_resize(obj, FL_RESIZE_NONE);
  fdui->st_ptt = obj = fl_add_roundbutton(FL_NORMAL_BUTTON,590,180,20,20,"");
    fl_set_object_color(obj,FL_MCOL,FL_RED);
  obj = fl_add_text(FL_NORMAL_TEXT,550,180,40,20,"PTT");
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  obj = fl_add_text(FL_NORMAL_TEXT,550,160,40,20,"DCD");
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  fdui->modename = obj = fl_add_text(FL_NORMAL_TEXT,540,220,130,20,"");
    fl_set_object_boxtype(obj,FL_EMBOSSED_BOX);
    fl_set_object_lalign(obj,FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
    fl_set_object_resize(obj, FL_RESIZE_NONE);
  fdui->drivername = obj = fl_add_text(FL_NORMAL_TEXT,540,240,130,20,"");
    fl_set_object_boxtype(obj,FL_EMBOSSED_BOX);
    fl_set_object_lalign(obj,FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
  fl_end_form();

  fdui->scope->fdui = fdui;

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

