/* Form definition file generated with fdesign. */

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

FD_hdlcst *create_form_hdlcst(void)
{
  FL_OBJECT *obj;
  FD_hdlcst *fdui = (FD_hdlcst *) fl_calloc(1, sizeof(*fdui));

  fdui->hdlcst = fl_bgn_form(FL_NO_BOX, 220, 290);
  obj = fl_add_box(FL_UP_BOX,0,0,220,290,"");
  fdui->timer = obj = fl_add_timer(FL_HIDDEN_TIMER,0,230,220,60,"");
  obj = fl_add_box(FL_DOWN_BOX,10,10,200,220,"");
    fl_set_object_resize(obj, FL_RESIZE_NONE);
  obj = fl_add_text(FL_NORMAL_TEXT,20,60,110,20,"Transmit Packets");
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  fdui->txpacket = obj = fl_add_text(FL_NORMAL_TEXT,130,60,70,20,"0");
    fl_set_object_boxtype(obj,FL_EMBOSSED_BOX);
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
    fl_set_object_resize(obj, FL_RESIZE_NONE);
  fdui->dcd = obj = fl_add_roundbutton(FL_NORMAL_BUTTON,130,20,20,20,"");
    fl_set_object_resize(obj, FL_RESIZE_NONE);
  fdui->ptt = obj = fl_add_roundbutton(FL_NORMAL_BUTTON,130,40,20,20,"");
    fl_set_object_color(obj,FL_MCOL,FL_RED);
  fdui->txerror = obj = fl_add_text(FL_NORMAL_TEXT,130,80,70,20,"0");
    fl_set_object_boxtype(obj,FL_EMBOSSED_BOX);
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  fdui->rxpacket = obj = fl_add_text(FL_NORMAL_TEXT,130,100,70,20,"0");
    fl_set_object_boxtype(obj,FL_EMBOSSED_BOX);
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  fdui->rxerror = obj = fl_add_text(FL_NORMAL_TEXT,130,120,70,20,"0");
    fl_set_object_boxtype(obj,FL_EMBOSSED_BOX);
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  fdui->modcyc = obj = fl_add_text(FL_NORMAL_TEXT,130,140,70,20,"0");
    fl_set_object_boxtype(obj,FL_EMBOSSED_BOX);
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  fdui->demodcyc = obj = fl_add_text(FL_NORMAL_TEXT,130,160,70,20,"0");
    fl_set_object_boxtype(obj,FL_EMBOSSED_BOX);
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  fdui->intfreq = obj = fl_add_text(FL_NORMAL_TEXT,130,180,70,20,"0");
    fl_set_object_boxtype(obj,FL_EMBOSSED_BOX);
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  obj = fl_add_text(FL_NORMAL_TEXT,20,80,110,20,"Transmit Errors");
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  obj = fl_add_text(FL_NORMAL_TEXT,20,100,110,20,"Receive Packets");
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  obj = fl_add_text(FL_NORMAL_TEXT,20,120,110,20,"Receive Errors");
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  fdui->tmodcyc = obj = fl_add_text(FL_NORMAL_TEXT,20,140,110,20,"Modulator Cycles");
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  fdui->tdemodcyc = obj = fl_add_text(FL_NORMAL_TEXT,20,160,110,20,"Demodulator Cycles");
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  fdui->tintfreq = obj = fl_add_text(FL_NORMAL_TEXT,20,180,110,20,"Interrupt Frequency");
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  obj = fl_add_text(FL_NORMAL_TEXT,20,40,110,20,"PTT");
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  obj = fl_add_text(FL_NORMAL_TEXT,20,20,110,20,"DCD");
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  fdui->dmares = obj = fl_add_text(FL_NORMAL_TEXT,130,200,70,20,"0");
    fl_set_object_boxtype(obj,FL_EMBOSSED_BOX);
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  fdui->tdmares = obj = fl_add_text(FL_NORMAL_TEXT,20,200,110,20,"DMA residue");
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  fdui->modename = obj = fl_add_text(FL_NORMAL_TEXT,10,240,200,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,10,260,200,20,"");
    fl_set_object_boxtype(obj,FL_EMBOSSED_BOX);
    fl_set_object_lalign(obj,FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
  fdui->quit = obj = fl_add_button(FL_NORMAL_BUTTON,160,20,40,30,"Quit");
    fl_set_object_callback(obj,cb_quit,0);
  fl_end_form();
  fdui->hdlcst->fdui = fdui;

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

