home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lyx-0.13.2.tar.gz / lyx-0.13.2.tar / lyx-0.13.2 / src / form1.C < prev    next >
C/C++ Source or Header  |  1998-04-23  |  20KB  |  352 lines

  1. // File modified by fdfix.sh for use by lyx (with xforms 0.81) and gettext
  2. #include <config.h>
  3. #include "lyx_gui_misc.h"
  4. #include "gettext.h"
  5.  
  6. /* Form definition file generated with fdesign. */
  7.  
  8. #include FORMS_H_LOCATION
  9. #include <stdlib.h>
  10. #include "form1.h"
  11.  
  12. FD_KeyMap *create_form_KeyMap(void)
  13. {
  14.   FL_OBJECT *obj;
  15.   FD_KeyMap *fdui = (FD_KeyMap *) fl_calloc(1, sizeof(*fdui));
  16.  
  17.   fdui->KeyMap = fl_bgn_form(FL_NO_BOX, 400, 400);
  18.   obj = fl_add_box(FL_UP_BOX,0,0,400,400,"");
  19.   obj = fl_add_frame(FL_ENGRAVED_FRAME,200,210,190,140,"");
  20.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  21.   fdui->AcceptChset = obj = fl_add_button(FL_NORMAL_BUTTON,210,280,170,30,idex(_("Set Charset|#C")));fl_set_button_shortcut(obj,scex(_("Set Charset|#C")),1);
  22.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  23.   fdui->ChsetErr = obj = fl_add_text(FL_NORMAL_TEXT,210,310,170,30,_("Charset not found!"));
  24.     fl_set_object_lcolor(obj,FL_RED);
  25.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  26.     fl_set_object_lalign(obj,FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
  27.     fl_set_object_lstyle(obj,FL_BOLD_STYLE+FL_EMBOSSED_STYLE);
  28.   fdui->KeymapErr = obj = fl_add_text(FL_NORMAL_TEXT,290,60,100,90,_("Error:\n\nKeymap\nnot found"));
  29.     fl_set_object_lcolor(obj,FL_RED);
  30.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  31.     fl_set_object_lalign(obj,FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
  32.     fl_set_object_lstyle(obj,FL_BOLD_STYLE+FL_EMBOSSED_STYLE);
  33.   fdui->Charset = obj = fl_add_input(FL_NORMAL_INPUT,210,240,170,30,idex(_("Character set:|#H")));fl_set_button_shortcut(obj,scex(_("Character set:|#H")),1);
  34.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  35.     fl_set_object_lalign(obj,FL_ALIGN_TOP);
  36.   obj = fl_add_frame(FL_ENGRAVED_FRAME,10,210,180,100,"");
  37.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  38.   obj = fl_add_frame(FL_ENGRAVED_FRAME,10,20,380,170,"");
  39.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  40.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  41.     fl_set_object_lalign(obj,FL_ALIGN_TOP);
  42.     fl_set_object_resize(obj, FL_RESIZE_NONE);
  43.   fdui->Accept = obj = fl_add_button(FL_RETURN_BUTTON,130,360,120,30,_("OK"));
  44.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  45.   fdui->OtherKeymap = obj = fl_add_input(FL_NORMAL_INPUT,120,70,160,30,idex(_("Other...|#O")));fl_set_button_shortcut(obj,scex(_("Other...|#O")),1);
  46.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  47.     fl_set_object_resize(obj, FL_RESIZE_NONE);
  48.   fdui->OtherKeymap2 = obj = fl_add_input(FL_NORMAL_INPUT,120,150,160,30,idex(_("Other...|#T")));fl_set_button_shortcut(obj,scex(_("Other...|#T")),1);
  49.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  50.     fl_set_object_resize(obj, FL_RESIZE_NONE);
  51.   obj = fl_add_text(FL_NORMAL_TEXT,20,10,90,20,_("Language"));
  52.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  53.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  54.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  55.     fl_set_object_resize(obj, FL_RESIZE_NONE);
  56.   obj = fl_add_text(FL_NORMAL_TEXT,20,200,80,20,_("Mapping"));
  57.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  58.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  59.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  60.  
  61.   fdui->KeyMapOn = fl_bgn_group();
  62.   fdui->KeyOnBtn = obj = fl_add_checkbutton(FL_RADIO_BUTTON,10,250,180,30,idex(_("Primary key map|#r")));fl_set_button_shortcut(obj,scex(_("Primary key map|#r")),1);
  63.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  64.   fdui->KeyOffBtn = obj = fl_add_checkbutton(FL_RADIO_BUTTON,10,220,180,30,idex(_("No key mapping|#N")));fl_set_button_shortcut(obj,scex(_("No key mapping|#N")),1);
  65.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  66.   fdui->KeyOnBtn2 = obj = fl_add_checkbutton(FL_RADIO_BUTTON,10,280,180,30,idex(_("Secondary key map|#e")));fl_set_button_shortcut(obj,scex(_("Secondary key map|#e")),1);
  67.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  68.   fl_end_group();
  69.  
  70.   obj = fl_add_text(FL_NORMAL_TEXT,20,110,100,30,_("Secondary"));
  71.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  72.     fl_set_object_lalign(obj,FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
  73.   obj = fl_add_text(FL_NORMAL_TEXT,20,30,100,30,_("Primary"));
  74.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  75.     fl_set_object_lalign(obj,FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
  76.   fl_end_form();
  77.  
  78.   fdui->KeyMap->fdui = fdui;
  79.  
  80.   return fdui;
  81. }
  82. /*---------------------------------------*/
  83.  
  84. FD_Figure *create_form_Figure(void)
  85. {
  86.   FL_OBJECT *obj;
  87.   FD_Figure *fdui = (FD_Figure *) fl_calloc(1, sizeof(*fdui));
  88.  
  89.   fdui->Figure = fl_bgn_form(FL_NO_BOX, 420, 390);
  90.   obj = fl_add_box(FL_UP_BOX,0,0,420,390,"");
  91.   obj = fl_add_frame(FL_ENGRAVED_FRAME,230,220,180,80,"");
  92.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  93.   obj = fl_add_frame(FL_ENGRAVED_FRAME,230,60,180,140,"");
  94.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  95.   obj = fl_add_frame(FL_ENGRAVED_FRAME,10,244,200,56,"");
  96.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  97.   obj = fl_add_frame(FL_ENGRAVED_FRAME,10,60,200,160,"");
  98.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  99.   fdui->EpsFile = obj = fl_add_input(FL_NORMAL_INPUT,80,10,230,30,idex(_("EPS file|#E")));fl_set_button_shortcut(obj,scex(_("EPS file|#E")),1);
  100.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  101.     fl_set_object_callback(obj,GraphicsCB,2);
  102.   fdui->Preview = obj = fl_add_button(FL_NORMAL_BUTTON,270,350,140,30,idex(_("Full Screen Preview|#v")));fl_set_button_shortcut(obj,scex(_("Full Screen Preview|#v")),1);
  103.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  104.     fl_set_object_callback(obj,GraphicsCB,1);
  105.   fdui->Browse = obj = fl_add_button(FL_NORMAL_BUTTON,320,10,90,30,idex(_("Browse...|#B")));fl_set_button_shortcut(obj,scex(_("Browse...|#B")),1);
  106.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  107.     fl_set_object_callback(obj,GraphicsCB,0);
  108.   fdui->Width = obj = fl_add_input(FL_FLOAT_INPUT,20,180,80,30,"");
  109.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  110.     fl_set_object_callback(obj,GraphicsCB,2);
  111.   fdui->Height = obj = fl_add_input(FL_FLOAT_INPUT,120,180,80,30,"");
  112.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  113.     fl_set_object_callback(obj,GraphicsCB,2);
  114.   fdui->ApplyBtn = obj = fl_add_button(FL_NORMAL_BUTTON,100,350,60,30,idex(_("Apply|#A")));fl_set_button_shortcut(obj,scex(_("Apply|#A")),1);
  115.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  116.     fl_set_object_callback(obj,GraphicsCB,7);
  117.   fdui->OkBtn = obj = fl_add_button(FL_RETURN_BUTTON,10,350,70,30,_("OK"));
  118.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  119.     fl_set_object_callback(obj,GraphicsCB,8);
  120.   fdui->CancelBtn = obj = fl_add_button(FL_NORMAL_BUTTON,180,350,70,30,idex(_("Cancel|^[")));fl_set_button_shortcut(obj,scex(_("Cancel|^[")),1);
  121.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  122.     fl_set_object_callback(obj,GraphicsCB,9);
  123.   fdui->Frame = obj = fl_add_checkbutton(FL_PUSH_BUTTON,230,230,180,30,idex(_("Display Frame|#F")));fl_set_button_shortcut(obj,scex(_("Display Frame|#F")),1);
  124.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  125.     fl_set_object_callback(obj,GraphicsCB,53);
  126.   fdui->Translations = obj = fl_add_checkbutton(FL_PUSH_BUTTON,230,260,180,30,idex(_("Do Translations|#r")));fl_set_button_shortcut(obj,scex(_("Do Translations|#r")),1);
  127.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  128.     fl_set_object_callback(obj,GraphicsCB,54);
  129.   obj = fl_add_text(FL_NORMAL_TEXT,240,210,70,20,_("Options"));
  130.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  131.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  132.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  133.   fdui->Angle = obj = fl_add_input(FL_FLOAT_INPUT,100,260,80,30,idex(_("Angle:|#L")));fl_set_button_shortcut(obj,scex(_("Angle:|#L")),1);
  134.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  135.     fl_set_object_callback(obj,GraphicsCB,2);
  136.  
  137.   fdui->HeightGrp = fl_bgn_group();
  138.   fdui->page2 = obj = fl_add_checkbutton(FL_RADIO_BUTTON,110,130,110,30,idex(_("% of Page|#g")));fl_set_button_shortcut(obj,scex(_("% of Page|#g")),1);
  139.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  140.     fl_set_object_callback(obj,GraphicsCB,23);
  141.   fdui->Default2 = obj = fl_add_checkbutton(FL_RADIO_BUTTON,110,70,80,30,idex(_("Default|#t")));fl_set_button_shortcut(obj,scex(_("Default|#t")),1);
  142.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  143.     fl_set_object_callback(obj,GraphicsCB,20);
  144.   fdui->cm2 = obj = fl_add_checkbutton(FL_RADIO_BUTTON,110,90,60,30,idex(_("cm|#m")));fl_set_button_shortcut(obj,scex(_("cm|#m")),1);
  145.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  146.     fl_set_object_callback(obj,GraphicsCB,21);
  147.   fdui->in2 = obj = fl_add_checkbutton(FL_RADIO_BUTTON,110,110,80,30,idex(_("inches|#h")));fl_set_button_shortcut(obj,scex(_("inches|#h")),1);
  148.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  149.     fl_set_object_callback(obj,GraphicsCB,22);
  150.   fl_end_group();
  151.  
  152.   obj = fl_add_text(FL_NORMAL_TEXT,237,50,53,20,_("Display"));
  153.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  154.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  155.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  156.   fdui->HeightLabel = obj = fl_add_text(FL_NORMAL_TEXT,120,50,60,20,_("Height"));
  157.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  158.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  159.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  160.   fdui->WidthLabel = obj = fl_add_text(FL_NORMAL_TEXT,20,50,60,20,_("Width"));
  161.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  162.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  163.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  164.   obj = fl_add_text(FL_NORMAL_TEXT,20,230,90,30,_("Rotation"));
  165.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  166.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  167.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  168.  
  169.   fdui->DisplayGrp = fl_bgn_group();
  170.   fdui->Wysiwyg3 = obj = fl_add_checkbutton(FL_RADIO_BUTTON,230,130,180,30,idex(_("Display in Color|#D")));fl_set_button_shortcut(obj,scex(_("Display in Color|#D")),1);
  171.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  172.     fl_set_object_callback(obj,GraphicsCB,63);
  173.   fdui->Wysiwyg0 = obj = fl_add_checkbutton(FL_RADIO_BUTTON,230,160,180,30,idex(_("Do not display this figure|#y")));fl_set_button_shortcut(obj,scex(_("Do not display this figure|#y")),1);
  174.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  175.     fl_set_object_callback(obj,GraphicsCB,3);
  176.   fdui->Wysiwyg2 = obj = fl_add_checkbutton(FL_RADIO_BUTTON,230,100,180,30,idex(_("Display as Grayscale|#i")));fl_set_button_shortcut(obj,scex(_("Display as Grayscale|#i")),1);
  177.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  178.     fl_set_object_callback(obj,GraphicsCB,43);
  179.   fdui->Wysiwyg1 = obj = fl_add_checkbutton(FL_RADIO_BUTTON,230,70,180,30,idex(_("Display as Monochrome|#s")));fl_set_button_shortcut(obj,scex(_("Display as Monochrome|#s")),1);
  180.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  181.     fl_set_object_callback(obj,GraphicsCB,33);
  182.   fl_end_group();
  183.  
  184.  
  185.   fdui->WidthGrp = fl_bgn_group();
  186.   fdui->Default1 = obj = fl_add_checkbutton(FL_RADIO_BUTTON,10,70,80,30,idex(_("Default|#U")));fl_set_button_shortcut(obj,scex(_("Default|#U")),1);
  187.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  188.     fl_set_object_callback(obj,GraphicsCB,10);
  189.   fdui->cm1 = obj = fl_add_checkbutton(FL_RADIO_BUTTON,10,90,60,30,idex(_("cm|#c")));fl_set_button_shortcut(obj,scex(_("cm|#c")),1);
  190.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  191.     fl_set_object_callback(obj,GraphicsCB,11);
  192.   fdui->in1 = obj = fl_add_checkbutton(FL_RADIO_BUTTON,10,110,80,30,idex(_("inches|#n")));fl_set_button_shortcut(obj,scex(_("inches|#n")),1);
  193.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  194.     fl_set_object_callback(obj,GraphicsCB,12);
  195.   fdui->page1 = obj = fl_add_checkbutton(FL_RADIO_BUTTON,10,130,110,30,idex(_("% of Page|#P")));fl_set_button_shortcut(obj,scex(_("% of Page|#P")),1);
  196.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  197.     fl_set_object_callback(obj,GraphicsCB,13);
  198.   fdui->column1 = obj = fl_add_checkbutton(FL_RADIO_BUTTON,10,150,110,30,idex(_("% of Column|#o")));fl_set_button_shortcut(obj,scex(_("% of Column|#o")),1);
  199.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  200.     fl_set_object_callback(obj,GraphicsCB,14);
  201.   fl_end_group();
  202.  
  203.   obj = fl_add_frame(FL_ENGRAVED_FRAME,10,310,400,30,"");
  204.   fdui->Subcaption = obj = fl_add_input(FL_NORMAL_INPUT,150,310,260,30,idex(_("Caption|#k")));fl_set_button_shortcut(obj,scex(_("Caption|#k")),1);
  205.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  206.     fl_set_object_callback(obj,GraphicsCB,2);
  207.   fdui->Subfigure = obj = fl_add_checkbutton(FL_PUSH_BUTTON,10,310,90,30,idex(_("Subfigure|#q")));fl_set_button_shortcut(obj,scex(_("Subfigure|#q")),1);
  208.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  209.     fl_set_object_callback(obj,GraphicsCB,70);
  210.   fl_end_form();
  211.  
  212.   fdui->Figure->fdui = fdui;
  213.  
  214.   return fdui;
  215. }
  216. /*---------------------------------------*/
  217.  
  218. FD_FileDlg *create_form_FileDlg(void)
  219. {
  220.   FL_OBJECT *obj;
  221.   FD_FileDlg *fdui = (FD_FileDlg *) fl_calloc(1, sizeof(*fdui));
  222.  
  223.   fdui->FileDlg = fl_bgn_form(FL_NO_BOX, 440, 380);
  224.   obj = fl_add_box(FL_UP_BOX,0,0,440,380,"");
  225.   fdui->FileInfo = obj = fl_add_text(FL_NORMAL_TEXT,10,260,420,30,"");
  226.     fl_set_object_boxtype(obj,FL_SHADOW_BOX);
  227.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  228.     fl_set_object_gravity(obj, FL_SouthWest, FL_SouthEast);
  229.     fl_set_object_resize(obj, FL_RESIZE_X);
  230.   fdui->DirBox = obj = fl_add_input(FL_NORMAL_INPUT,100,10,330,30,idex(_("Directory:|#D")));fl_set_button_shortcut(obj,scex(_("Directory:|#D")),1);
  231.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  232.     fl_set_object_gravity(obj, FL_NorthWest, FL_NorthEast);
  233.     fl_set_object_resize(obj, FL_RESIZE_X);
  234.   fdui->PatBox = obj = fl_add_input(FL_NORMAL_INPUT,100,40,330,30,idex(_("Pattern:|#P")));fl_set_button_shortcut(obj,scex(_("Pattern:|#P")),1);
  235.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  236.     fl_set_object_gravity(obj, FL_NorthWest, FL_NorthEast);
  237.     fl_set_object_resize(obj, FL_RESIZE_X);
  238.   fdui->List = obj = fl_add_browser(FL_HOLD_BROWSER,10,80,320,170,"");
  239.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  240.     fl_set_object_lalign(obj,FL_ALIGN_TOP);
  241.     fl_set_object_gravity(obj, FL_NorthWest, FL_SouthEast);
  242.   fdui->Filename = obj = fl_add_input(FL_NORMAL_INPUT,100,300,330,30,idex(_("Filename:|#F")));fl_set_button_shortcut(obj,scex(_("Filename:|#F")),1);
  243.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  244.     fl_set_object_gravity(obj, FL_SouthWest, FL_SouthEast);
  245.     fl_set_object_resize(obj, FL_RESIZE_X);
  246.   fdui->Rescan = obj = fl_add_button(FL_NORMAL_BUTTON,340,80,90,30,idex(_("Rescan|#R#r")));fl_set_button_shortcut(obj,scex(_("Rescan|#R#r")),1);
  247.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  248.     fl_set_object_gravity(obj, FL_NorthEast, FL_NorthEast);
  249.   fdui->Home = obj = fl_add_button(FL_NORMAL_BUTTON,340,120,90,30,idex(_("Home|#H#h")));fl_set_button_shortcut(obj,scex(_("Home|#H#h")),1);
  250.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  251.     fl_set_object_gravity(obj, FL_NorthEast, FL_NorthEast);
  252.   fdui->User1 = obj = fl_add_button(FL_NORMAL_BUTTON,340,160,90,30,idex(_("User1|#1")));fl_set_button_shortcut(obj,scex(_("User1|#1")),1);
  253.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  254.     fl_set_object_gravity(obj, FL_NorthEast, FL_NorthEast);
  255.   fdui->User2 = obj = fl_add_button(FL_NORMAL_BUTTON,340,200,90,30,idex(_("User2|#2")));fl_set_button_shortcut(obj,scex(_("User2|#2")),1);
  256.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  257.     fl_set_object_gravity(obj, FL_NorthEast, FL_NorthEast);
  258.   fdui->Ready = obj = fl_add_button(FL_RETURN_BUTTON,220,340,100,30,_("OK"));
  259.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  260.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  261.   fdui->Cancel = obj = fl_add_button(FL_NORMAL_BUTTON,330,340,100,30,idex(_("Cancel|^[")));fl_set_button_shortcut(obj,scex(_("Cancel|^[")),1);
  262.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  263.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  264.   fdui->timer = obj = fl_add_timer(FL_HIDDEN_TIMER,10,350,20,20,"");
  265.     fl_set_object_gravity(obj, FL_SouthWest, FL_SouthWest);
  266.   fl_end_form();
  267.  
  268.   fdui->FileDlg->fdui = fdui;
  269.  
  270.   return fdui;
  271. }
  272. /*---------------------------------------*/
  273.  
  274. FD_form_table *create_form_form_table(void)
  275. {
  276.   FL_OBJECT *obj;
  277.   FD_form_table *fdui = (FD_form_table *) fl_calloc(1, sizeof(*fdui));
  278.  
  279.   fdui->form_table = fl_bgn_form(FL_NO_BOX, 310, 130);
  280.   obj = fl_add_box(FL_UP_BOX,0,0,310,130,"");
  281.   fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON,10,90,90,30,_("OK"));
  282.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  283.     fl_set_object_callback(obj,TableOKCB,0);
  284.   fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON,110,90,90,30,idex(_("Apply|#A")));fl_set_button_shortcut(obj,scex(_("Apply|#A")),1);
  285.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  286.     fl_set_object_callback(obj,TableApplyCB,0);
  287.   fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON,210,90,90,30,idex(_("Cancel|^[")));fl_set_button_shortcut(obj,scex(_("Cancel|^[")),1);
  288.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  289.     fl_set_object_callback(obj,TableCancelCB,0);
  290.   fdui->slider_columns = obj = fl_add_valslider(FL_HOR_SLIDER,80,50,220,30,_("Columns"));
  291.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  292.     fl_set_object_lalign(obj,FL_ALIGN_LEFT);
  293.     fl_set_object_resize(obj, FL_RESIZE_X);
  294.   fdui->slider_rows = obj = fl_add_valslider(FL_HOR_SLIDER,80,10,220,30,_("Rows"));
  295.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  296.     fl_set_object_lalign(obj,FL_ALIGN_LEFT);
  297.     fl_set_object_resize(obj, FL_RESIZE_X);
  298.   fl_end_form();
  299.  
  300.   fdui->form_table->fdui = fdui;
  301.  
  302.   return fdui;
  303. }
  304. /*---------------------------------------*/
  305.  
  306. FD_form_search *create_form_form_search(void)
  307. {
  308.   FL_OBJECT *obj;
  309.   FD_form_search *fdui = (FD_form_search *) fl_calloc(1, sizeof(*fdui));
  310.  
  311.   fdui->form_search = fl_bgn_form(FL_NO_BOX, 470, 120);
  312.   obj = fl_add_box(FL_UP_BOX,0,0,470,120,"");
  313.   obj = fl_add_frame(FL_ENGRAVED_FRAME,320,20,140,80,"");
  314.   fdui->input_search = obj = fl_add_input(FL_NORMAL_INPUT,130,10,180,30,idex(_("Find|#n")));fl_set_button_shortcut(obj,scex(_("Find|#n")),1);
  315.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  316.     fl_set_object_gravity(obj, FL_NorthWest, FL_NorthEast);
  317.     fl_set_object_resize(obj, FL_RESIZE_X);
  318.   fdui->input_replace = obj = fl_add_input(FL_NORMAL_INPUT,130,40,180,30,idex(_("Replace with|#W")));fl_set_button_shortcut(obj,scex(_("Replace with|#W")),1);
  319.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  320.     fl_set_object_gravity(obj, FL_West, FL_East);
  321.     fl_set_object_resize(obj, FL_RESIZE_X);
  322.   obj = fl_add_button(FL_NORMAL_BUTTON,260,80,50,30,idex(_("@>|#F")));fl_set_button_shortcut(obj,scex(_("@>|#F")),1);
  323.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  324.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  325.     fl_set_object_callback(obj,SearchForwardCB,0);
  326.   obj = fl_add_button(FL_NORMAL_BUTTON,130,80,50,30,idex(_("@<|#B")));fl_set_button_shortcut(obj,scex(_("@<|#B")),1);
  327.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  328.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  329.     fl_set_object_callback(obj,SearchBackwardCB,0);
  330.   fdui->replace_button = obj = fl_add_button(FL_NORMAL_BUTTON,180,80,80,30,idex(_("Replace|#R#r")));fl_set_button_shortcut(obj,scex(_("Replace|#R#r")),1);
  331.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  332.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  333.     fl_set_object_callback(obj,SearchReplaceCB,0);
  334.   obj = fl_add_button(FL_NORMAL_BUTTON,10,80,80,30,idex(_("Close|^[")));fl_set_button_shortcut(obj,scex(_("Close|^[")),1);
  335.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  336.     fl_set_object_gravity(obj, FL_SouthWest, FL_SouthWest);
  337.     fl_set_object_callback(obj,SearchCancelCB,0);
  338.   fdui->btnCaseSensitive = obj = fl_add_checkbutton(FL_PUSH_BUTTON,330,30,150,30,idex(_("Case sensitive|#s#S")));fl_set_button_shortcut(obj,scex(_("Case sensitive|#s#S")),1);
  339.     fl_set_object_color(obj,FL_MCOL,FL_YELLOW);
  340.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  341.   fdui->btnMatchWord = obj = fl_add_checkbutton(FL_PUSH_BUTTON,330,60,150,30,idex(_("Match word|#M#m")));fl_set_button_shortcut(obj,scex(_("Match word|#M#m")),1);
  342.     fl_set_object_color(obj,FL_MCOL,FL_YELLOW);
  343.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  344.   fl_end_form();
  345.  
  346.   fdui->form_search->fdui = fdui;
  347.  
  348.   return fdui;
  349. }
  350. /*---------------------------------------*/
  351.  
  352.