/* Form definition file generated with fdesign. */

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

FD_rtty_form *create_form_rtty_form(void)
{
  FL_OBJECT *obj;
  FD_rtty_form *fdui = (FD_rtty_form *) fl_calloc(1, sizeof(*fdui));

  fdui->rtty_form = fl_bgn_form(FL_NO_BOX, 390, 500);
  obj = fl_add_box(FL_UP_BOX,0,0,390,500,"");
    fl_set_object_resize(obj, FL_RESIZE_NONE);
  obj = fl_add_frame(FL_ENGRAVED_FRAME,170,450,60,40,"");
  obj = fl_add_frame(FL_ENGRAVED_FRAME,10,320,220,90,"");
  obj = fl_add_frame(FL_ENGRAVED_FRAME,10,410,220,40,"");
  obj = fl_add_frame(FL_ENGRAVED_FRAME,10,450,60,40,"");
  obj = fl_add_frame(FL_ENGRAVED_FRAME,10,290,370,30,"");
  fdui->canvasw = obj = fl_add_canvas(FL_NORMAL_CANVAS,10,10,370,270,"");

  fdui->set_bit_gr = fl_bgn_group();
  fdui->sd5 = obj = fl_add_round3dbutton(FL_RADIO_BUTTON,60,340,30,30,"5");
    fl_set_object_color(obj,FL_COL1,FL_YELLOW);
    fl_set_object_callback(obj,set_data_bits,5);
    fl_set_button(obj, 1);
  fdui->sd7 = obj = fl_add_round3dbutton(FL_RADIO_BUTTON,60,360,30,30,"7");
    fl_set_object_color(obj,FL_COL1,FL_YELLOW);
    fl_set_object_callback(obj,set_data_bits,7);
  fdui->sd8 = obj = fl_add_round3dbutton(FL_RADIO_BUTTON,60,380,30,30,"8");
    fl_set_object_color(obj,FL_COL1,FL_YELLOW);
    fl_set_object_callback(obj,set_data_bits,8);
  fl_end_group();


  fdui->set_stop_gr = fl_bgn_group();
  fdui->ssb1 = obj = fl_add_round3dbutton(FL_RADIO_BUTTON,110,340,30,30,"1");
    fl_set_object_color(obj,FL_COL1,FL_YELLOW);
    fl_set_object_callback(obj,set_stop_bits,1);
  fdui->ssb15 = obj = fl_add_round3dbutton(FL_RADIO_BUTTON,110,360,30,30,"1.5");
    fl_set_object_color(obj,FL_COL1,FL_YELLOW);
    fl_set_object_callback(obj,set_stop_bits,3);
    fl_set_button(obj, 1);
  fdui->ssb2 = obj = fl_add_round3dbutton(FL_RADIO_BUTTON,110,380,30,30,"2");
    fl_set_object_color(obj,FL_COL1,FL_YELLOW);
    fl_set_object_callback(obj,set_stop_bits,2);
  fl_end_group();


  fdui->set_par_gr = fl_bgn_group();
  fdui->sp0 = obj = fl_add_round3dbutton(FL_RADIO_BUTTON,160,340,30,30,"NONE");
    fl_set_object_color(obj,FL_COL1,FL_YELLOW);
    fl_set_object_callback(obj,set_parity,0);
    fl_set_button(obj, 1);
  fdui->sp1 = obj = fl_add_round3dbutton(FL_RADIO_BUTTON,160,360,30,30,"EVEN");
    fl_set_object_color(obj,FL_COL1,FL_YELLOW);
    fl_set_object_callback(obj,set_parity,1);
  fdui->sp2 = obj = fl_add_round3dbutton(FL_RADIO_BUTTON,160,380,30,30,"ODD");
    fl_set_object_color(obj,FL_COL1,FL_YELLOW);
    fl_set_object_callback(obj,set_parity,2);
  fl_end_group();

  fdui->sbaud = obj = fl_add_input(FL_NORMAL_INPUT,300,330,50,30,"");
    fl_set_object_lsize(obj,FL_NORMAL_SIZE);
    fl_set_object_callback(obj,set_baud,0);
  obj = fl_add_text(FL_NORMAL_TEXT,230,330,40,30,"BAUD");
    fl_set_object_lsize(obj,FL_NORMAL_SIZE);
    fl_set_object_lalign(obj,FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
  fdui->sbaudu = obj = fl_add_button(FL_NORMAL_BUTTON,350,330,30,30,"@>");
    fl_set_object_lcolor(obj,FL_BLUE);
    fl_set_object_callback(obj,set_baud_st,1);
  fdui->sbaudd = obj = fl_add_button(FL_NORMAL_BUTTON,270,330,30,30,"@<");
    fl_set_object_lcolor(obj,FL_BLUE);
    fl_set_object_callback(obj,set_baud_st,-1);
  fdui->sspace = obj = fl_add_counter(FL_NORMAL_COUNTER,240,390,140,30,"SPACE FREQ");
    fl_set_object_color(obj,FL_COL1,FL_RED);
    fl_set_object_lsize(obj,FL_NORMAL_SIZE);
    fl_set_object_lalign(obj,FL_ALIGN_TOP_LEFT);
    fl_set_object_callback(obj,set_space,0);
    fl_set_counter_precision(obj, 0);
    fl_set_counter_bounds(obj, 200, 4000);
    fl_set_counter_value(obj, 200);
    fl_set_counter_step(obj, 10, 100);
  fdui->smark = obj = fl_add_counter(FL_NORMAL_COUNTER,240,460,140,30,"MARK FREQ");
    fl_set_object_color(obj,FL_COL1,FL_GREEN);
    fl_set_object_lsize(obj,FL_NORMAL_SIZE);
    fl_set_object_lalign(obj,FL_ALIGN_TOP_LEFT);
    fl_set_object_callback(obj,set_mark,0);
    fl_set_counter_precision(obj, 0);
    fl_set_counter_bounds(obj, 200, 4000);
    fl_set_counter_value(obj, 200);
    fl_set_counter_step(obj, 10, 100);

  fdui->disp_b = fl_bgn_group();
  fdui->disp_spec = obj = fl_add_checkbutton(FL_RADIO_BUTTON,90,290,30,30,"SPECT");
    fl_set_object_callback(obj,display_mode,1);
    fl_set_button(obj, 1);
  fdui->disp_in = obj = fl_add_checkbutton(FL_RADIO_BUTTON,160,290,30,30,"INPUT");
    fl_set_object_callback(obj,display_mode,2);
  fdui->disp_demod = obj = fl_add_checkbutton(FL_RADIO_BUTTON,230,290,30,30,"DEMOD");
    fl_set_object_callback(obj,display_mode,3);
    fl_set_button(obj, 1);
  fdui->disp_off = obj = fl_add_checkbutton(FL_RADIO_BUTTON,10,290,30,30,"DISP OFF");
    fl_set_object_callback(obj,display_mode,0);
    fl_set_button(obj, 1);
  fdui->disp_eye = obj = fl_add_checkbutton(FL_RADIO_BUTTON,310,290,30,30,"EYE");
    fl_set_object_callback(obj,display_mode,4);
  fl_end_group();

  fdui->swap = obj = fl_add_button(FL_NORMAL_BUTTON,330,430,50,20,"SWAP");
    fl_set_object_callback(obj,swap_but,0);
  fdui->atim_but = obj = fl_add_button(FL_PUSH_BUTTON,70,420,30,20,"ATim");
    fl_set_object_callback(obj,atim_but,0);
  fdui->tim_sl = obj = fl_add_valslider(FL_HOR_NICE_SLIDER,100,420,120,20,"");
    fl_set_object_callback(obj,tim_sl,0);
    fl_set_slider_precision(obj, 0);
    fl_set_slider_bounds(obj, 4, 20);
    fl_set_slider_value(obj, 10);
    fl_set_slider_size(obj, 0.15);

  fdui->mode_grp = fl_bgn_group();
  fdui->cw_but = obj = fl_add_button(FL_RADIO_BUTTON,20,420,40,20,"CW");
    fl_set_object_callback(obj,set_mode,1);
  fdui->hdlc_but = obj = fl_add_button(FL_RADIO_BUTTON,20,460,40,20,"AX25");
    fl_set_object_callback(obj,set_mode,2);
  fdui->rtty_but = obj = fl_add_button(FL_RADIO_BUTTON,20,330,40,20,"RTTY");
    fl_set_object_callback(obj,set_mode,0);
    fl_set_button(obj, 1);
  fl_end_group();

  obj = fl_add_text(FL_NORMAL_TEXT,60,320,40,20,"DATA");
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  obj = fl_add_text(FL_NORMAL_TEXT,110,320,40,20,"STOP");
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  obj = fl_add_text(FL_NORMAL_TEXT,150,320,50,20,"PARITY");
    fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  fdui->save_but = obj = fl_add_button(FL_NORMAL_BUTTON,180,460,40,20,"SAVE");
    fl_set_object_callback(obj,save_but,0);
  fl_end_form();

  fdui->rtty_form->fdui = fdui;

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

