/* Form definition file generated with fdesign. */

#include "forms.h"
#include "eb_forms.h"

FL_FORM *mainform;

FL_OBJECT
        *orderbut,
        *prevbut,
        *nextbut,
        *fileobj,
        *saveobj,
        *slidobj,
        *viewbut,
        *editgroup,
        *addbut,
        *insertbut,
        *deletebut,
        *undeletebut,
        *clearbut,
        *restorebut,
        *maingroup,
        *textobj,
        *inpobj[20],
        *fobj[20];

void create_form_mainform(void)
{
  FL_OBJECT *obj;
  mainform = fl_bgn_form(FL_NO_BOX,940.0,545.0);
  obj = fl_add_box(FL_UP_BOX,0.0,0.0,940.0,545.0,"");
  obj = fl_add_box(FL_FRAME_BOX,10.0,10.0,920.0,75.0,"");
  orderbut = obj = fl_add_button(FL_NORMAL_BUTTON,320.0,50.0,90.0,30.0,"Order   ^O");
    fl_set_call_back(obj,sort_cb,0);
  obj = fl_add_button(FL_NORMAL_BUTTON,835.0,15.0,90.0,30.0,"Exit");
    fl_set_call_back(obj,exit_cb,0);
  prevbut = obj = fl_add_button(FL_TOUCH_BUTTON,890.0,470.0,40.0,30.0,"@8->");
    fl_set_object_boxtype(obj,FL_FRAME_BOX);
    fl_set_object_lcol(obj,47);
    fl_set_call_back(obj,previous_cb,0);
  nextbut = obj = fl_add_button(FL_TOUCH_BUTTON,890.0,90.0,40.0,30.0,"@2->");
    fl_set_object_boxtype(obj,FL_FRAME_BOX);
    fl_set_object_lcol(obj,47);
    fl_set_call_back(obj,next_cb,0);
  fileobj = obj = fl_add_text(FL_NORMAL_TEXT,740.0,505.0,190.0,30.0,"Filename");
    fl_set_object_boxtype(obj,FL_FRAME_BOX);
    fl_set_object_align(obj,FL_ALIGN_CENTER);
    fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  obj = fl_add_button(FL_NORMAL_BUTTON,630.0,50.0,90.0,30.0,"Load");
    fl_set_call_back(obj,load_cb,0);
  saveobj = obj = fl_add_button(FL_NORMAL_BUTTON,730.0,50.0,90.0,30.0,"Save    ^S");
    fl_set_call_back(obj,saveall_cb,0);
  obj = fl_add_button(FL_NORMAL_BUTTON,730.0,15.0,90.0,30.0,"Save Sel.");
    fl_set_call_back(obj,saveselect_cb,0);
  obj = fl_add_button(FL_NORMAL_BUTTON,525.0,50.0,90.0,30.0,"Print");
    fl_set_call_back(obj,print_cb,0);
  slidobj = obj = fl_add_slider(FL_VERT_SLIDER,890.0,120.0,40.0,350.0,"");
    fl_set_object_boxtype(obj,FL_FRAME_BOX);
    fl_set_object_lsize(obj,FL_SMALL_FONT);
    fl_set_object_align(obj,FL_ALIGN_CENTER);
    fl_set_call_back(obj,slid_cb,0);
  obj = fl_add_box(FL_FRAME_BOX,10.0,505.0,310.0,30.0,"Easy Base");
    fl_set_object_color(obj,12,47);
    fl_set_object_lcol(obj,4);
    fl_set_object_lsize(obj,FL_LARGE_FONT);
    fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  obj = fl_add_text(FL_NORMAL_TEXT,250.0,515.0,80.0,20.0,"version 1.1");
    fl_set_object_lsize(obj,FL_SMALL_FONT);
  viewbut = obj = fl_add_button(FL_NORMAL_BUTTON,420.0,50.0,90.0,30.0,"View   ^V");
    fl_set_call_back(obj,view_cb,0);
  obj = fl_add_box(FL_FRAME_BOX,10.0,90.0,875.0,410.0,"");
  editgroup = fl_bgn_group();
  addbut = obj = fl_add_button(FL_NORMAL_BUTTON,15.0,50.0,90.0,30.0,"  New    ^N");
    fl_set_call_back(obj,append_cb,0);
  insertbut = obj = fl_add_button(FL_NORMAL_BUTTON,15.0,15.0,90.0,30.0,"Insert   ^I");
    fl_set_call_back(obj,insert_cb,0);
  deletebut = obj = fl_add_button(FL_NORMAL_BUTTON,115.0,50.0,90.0,30.0,"Delete   ^X");
    fl_set_call_back(obj,delete_cb,0);
  undeletebut = obj = fl_add_button(FL_NORMAL_BUTTON,115.0,15.0,90.0,30.0,"Undel.   ^U");
    fl_set_call_back(obj,undelete_cb,0);
  clearbut = obj = fl_add_button(FL_NORMAL_BUTTON,215.0,50.0,90.0,30.0," Erase    ^E");
    fl_set_call_back(obj,clear_cb,0);
  restorebut = obj = fl_add_button(FL_NORMAL_BUTTON,215.0,15.0,90.0,30.0,"Restore  ^R");
    fl_set_call_back(obj,restore_cb,0);
  fl_end_group();
  maingroup = fl_bgn_group();
  inpobj[0] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,475.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  inpobj[1] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,455.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  inpobj[2] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,435.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  inpobj[3] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,415.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  inpobj[4] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,395.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  inpobj[5] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,375.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  inpobj[6] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,355.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  inpobj[7] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,335.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  inpobj[8] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,315.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  inpobj[9] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,295.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  inpobj[10] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,275.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  inpobj[11] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,255.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  inpobj[12] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,235.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  inpobj[13] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,215.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  inpobj[14] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,195.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  inpobj[15] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,175.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  fobj[0] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,475.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  fobj[1] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,455.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  fobj[2] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,435.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  fobj[3] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,415.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  fobj[4] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,395.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  fobj[5] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,375.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  fobj[6] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,355.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  fobj[7] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,335.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  fobj[8] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,315.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  fobj[9] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,295.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  fobj[10] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,275.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  fobj[11] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,255.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  fobj[12] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,235.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  fobj[13] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,215.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  fobj[14] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,195.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  fobj[15] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,175.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  inpobj[16] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,155.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  inpobj[17] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,135.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  fobj[16] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,155.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  fobj[17] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,135.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  inpobj[18] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,115.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  fobj[18] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,115.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  inpobj[19] = obj = fl_add_input(FL_NORMAL_INPUT,130.0,95.0,750.0,20.0,"");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_color(obj,52,9);
  fobj[19] = obj = fl_add_text(FL_NORMAL_TEXT,50.0,95.0,80.0,20.0,"Field");
    fl_set_object_boxtype(obj,FL_FLAT_BOX);
    fl_set_object_align(obj,FL_ALIGN_RIGHT);
  fl_end_group();
  obj = fl_add_button(FL_NORMAL_BUTTON,835.0,50.0,90.0,30.0,"Change");
    fl_set_call_back(obj,change_cb,0);
  textobj = obj = fl_add_text(FL_NORMAL_TEXT,330.0,505.0,400.0,30.0,"Text");
    fl_set_object_boxtype(obj,FL_FRAME_BOX);
    fl_set_object_align(obj,FL_ALIGN_CENTER);
  obj = fl_add_button(FL_NORMAL_BUTTON,630.0,15.0,90.0,30.0,"Merge");
    fl_set_call_back(obj,merge_cb,0);
  fl_end_form();
}

/*---------------------------------------*/

FL_FORM *selectform;

FL_OBJECT
        *sfieldobj,
        *soperobj,
        *svalueobj,
        *sinverseobj;

void create_form_selectform(void)
{
  FL_OBJECT *obj;
  selectform = fl_bgn_form(FL_NO_BOX,940.0,95.0);
  obj = fl_add_box(FL_UP_BOX,0.0,0.0,940.0,95.0,"");
  obj = fl_add_box(FL_FRAME_BOX,10.0,45.0,920.0,40.0,"");
    fl_set_object_color(obj,12,47);
  obj = fl_add_box(FL_FRAME_BOX,15.0,50.0,150.0,30.0,"Selection:");
    fl_set_object_lcol(obj,4);
    fl_set_object_lsize(obj,FL_LARGE_FONT);
    fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  sfieldobj = obj = fl_add_choice(FL_NORMAL_CHOICE,180.0,50.0,165.0,30.0,"");
    fl_set_object_boxtype(obj,FL_FRAME_BOX);
  soperobj = obj = fl_add_choice(FL_NORMAL_CHOICE,435.0,50.0,205.0,30.0,"");
    fl_set_object_boxtype(obj,FL_FRAME_BOX);
  svalueobj = obj = fl_add_input(FL_NORMAL_INPUT,645.0,50.0,280.0,30.0,"");
    fl_set_object_boxtype(obj,FL_FRAME_BOX);
    fl_set_object_color(obj,47,47);
  obj = fl_add_button(FL_NORMAL_BUTTON,550.0,10.0,90.0,30.0,"Extend");
    fl_set_call_back(obj,doselect_cb,0);
  obj = fl_add_button(FL_RETURN_BUTTON,435.0,10.0,90.0,30.0,"Restrict");
    fl_set_call_back(obj,doselect_cb,1);
  sinverseobj = obj = fl_add_choice(FL_NORMAL_CHOICE,350.0,50.0,80.0,30.0,"");
    fl_set_object_boxtype(obj,FL_FRAME_BOX);
  obj = fl_add_button(FL_NORMAL_BUTTON,730.0,10.0,90.0,30.0,"Level Up");
    fl_set_call_back(obj,back_cb,0);
  obj = fl_add_button(FL_NORMAL_BUTTON,840.0,10.0,90.0,30.0,"Show All");
    fl_set_call_back(obj,backzero_cb,0);
  fl_end_form();
}

/*---------------------------------------*/

FL_FORM *sortform;

FL_OBJECT
        *ofieldobj,
        *odecrobj,
        *ocaseobj;

void create_form_sortform(void)
{
  FL_OBJECT *obj;
  sortform = fl_bgn_form(FL_NO_BOX,440.0,135.0);
  obj = fl_add_box(FL_UP_BOX,0.0,0.0,440.0,135.0,"");
  obj = fl_add_box(FL_FRAME_BOX,140.0,95.0,170.0,30.0,"Sorting");
    fl_set_object_lcol(obj,4);
    fl_set_object_lsize(obj,FL_LARGE_FONT);
    fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  obj = fl_add_box(FL_FLAT_BOX,10.0,55.0,40.0,30.0,"Sort");
  ofieldobj = obj = fl_add_choice(FL_NORMAL_CHOICE,60.0,55.0,120.0,30.0,"");
    fl_set_object_boxtype(obj,FL_FRAME_BOX);
  odecrobj = obj = fl_add_choice(FL_NORMAL_CHOICE,190.0,55.0,100.0,30.0,"");
    fl_set_object_boxtype(obj,FL_FRAME_BOX);
    fl_set_object_align(obj,FL_ALIGN_CENTER);
  obj = fl_add_button(FL_RETURN_BUTTON,110.0,15.0,90.0,30.0,"OK");
    fl_set_call_back(obj,dosort_cb,0);
  obj = fl_add_button(FL_NORMAL_BUTTON,260.0,15.0,90.0,30.0,"Cancel");
    fl_set_call_back(obj,dosort_cb,1);
  ocaseobj = obj = fl_add_choice(FL_NORMAL_CHOICE,300.0,55.0,130.0,30.0,"");
    fl_set_object_boxtype(obj,FL_FRAME_BOX);
    fl_set_object_align(obj,FL_ALIGN_CENTER);
  fl_end_form();
}

/*---------------------------------------*/

FL_FORM *changeform;

FL_OBJECT
        *ch_fieldsobj,
        *ch_cancelobj,
        *ch_readyobj;

void create_form_changeform(void)
{
  FL_OBJECT *obj;
  changeform = fl_bgn_form(FL_NO_BOX,330.0,440.0);
  obj = fl_add_box(FL_UP_BOX,0.0,0.0,330.0,440.0,"");
  ch_fieldsobj = obj = fl_add_browser(FL_HOLD_BROWSER,10.0,30.0,160.0,350.0,"Fields");
    fl_set_call_back(obj,ch_fields_cb,0);
  obj = fl_add_button(FL_RETURN_BUTTON,190.0,350.0,130.0,30.0,"Add Field");
    fl_set_call_back(obj,ch_add_cb,0);
  obj = fl_add_button(FL_NORMAL_BUTTON,190.0,310.0,130.0,30.0,"Insert Field");
    fl_set_call_back(obj,ch_insert_cb,0);
  obj = fl_add_button(FL_NORMAL_BUTTON,190.0,270.0,130.0,30.0,"Change Field");
    fl_set_call_back(obj,ch_change_cb,0);
  obj = fl_add_button(FL_NORMAL_BUTTON,190.0,210.0,130.0,30.0,"Move Field Up");
    fl_set_call_back(obj,ch_moveup_cb,0);
  obj = fl_add_button(FL_NORMAL_BUTTON,190.0,170.0,130.0,30.0,"Move Field Down");
    fl_set_call_back(obj,ch_movedown_cb,0);
  obj = fl_add_button(FL_NORMAL_BUTTON,190.0,110.0,130.0,30.0,"Delete Field");
    fl_set_call_back(obj,ch_delete_cb,0);
  ch_cancelobj = obj = fl_add_button(FL_NORMAL_BUTTON,190.0,50.0,130.0,30.0,"Cancel");
  ch_readyobj = obj = fl_add_button(FL_NORMAL_BUTTON,190.0,10.0,130.0,30.0,"Ready");
  obj = fl_add_box(FL_FRAME_BOX,10.0,400.0,310.0,30.0,"Changing Layout");
    fl_set_object_color(obj,12,47);
    fl_set_object_lcol(obj,4);
    fl_set_object_lsize(obj,FL_LARGE_FONT);
    fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  fl_end_form();
}

/*---------------------------------------*/

void create_the_forms(void)
{
  create_form_mainform();
  create_form_selectform();
  create_form_sortform();
  create_form_changeform();
}

