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 / lyx.C < prev    next >
C/C++ Source or Header  |  1998-04-23  |  8KB  |  166 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 "lyx.h"
  11.  
  12. FD_form_title *create_form_form_title(void)
  13. {
  14.   FL_OBJECT *obj;
  15.   FD_form_title *fdui = (FD_form_title *) fl_calloc(1, sizeof(*fdui));
  16.  
  17.   fdui->form_title = fl_bgn_form(FL_NO_BOX, 425, 290);
  18.   obj = fl_add_box(FL_UP_BOX,0,0,425,290,"");
  19.     fl_set_object_color(obj,FL_BLACK,FL_TOP_BCOL);
  20.   fdui->timer_title = obj = fl_add_timer(FL_HIDDEN_TIMER,110,170,190,60,"");
  21.     fl_set_object_callback(obj,TimerCB,0);
  22.   fl_end_form();
  23.  
  24.   fdui->form_title->fdui = fdui;
  25.  
  26.   return fdui;
  27. }
  28. /*---------------------------------------*/
  29.  
  30. FD_form_figure *create_form_form_figure(void)
  31. {
  32.   FL_OBJECT *obj;
  33.   FD_form_figure *fdui = (FD_form_figure *) fl_calloc(1, sizeof(*fdui));
  34.  
  35.   fdui->form_figure = fl_bgn_form(FL_NO_BOX, 340, 150);
  36.   obj = fl_add_box(FL_UP_BOX,0,0,340,150,"");
  37.   obj = fl_add_frame(FL_ENGRAVED_FRAME,10,20,320,80,"");
  38.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  39.  
  40.   fdui->group_radio_fugre = fl_bgn_group();
  41.   fdui->radio_postscript = obj = fl_add_checkbutton(FL_RADIO_BUTTON,10,30,320,30,idex(_("Encapsulated Postscript (*.eps, *.ps)|#E")));fl_set_button_shortcut(obj,scex(_("Encapsulated Postscript (*.eps, *.ps)|#E")),1);
  42.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  43.   fdui->radio_inline = obj = fl_add_checkbutton(FL_RADIO_BUTTON,10,60,320,30,idex(_("Inlined EPS (*.eps, *.ps)|#I")));fl_set_button_shortcut(obj,scex(_("Inlined EPS (*.eps, *.ps)|#I")),1);
  44.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  45.   fl_end_group();
  46.  
  47.   obj = fl_add_button(FL_RETURN_BUTTON,10,110,100,30,_("OK"));
  48.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  49.     fl_set_object_callback(obj,FigureOKCB,0);
  50.   obj = fl_add_button(FL_NORMAL_BUTTON,120,110,100,30,idex(_("Apply|#A")));fl_set_button_shortcut(obj,scex(_("Apply|#A")),1);
  51.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  52.     fl_set_object_callback(obj,FigureApplyCB,0);
  53.   obj = fl_add_button(FL_NORMAL_BUTTON,230,110,100,30,idex(_("Cancel|^[")));fl_set_button_shortcut(obj,scex(_("Cancel|^[")),1);
  54.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  55.     fl_set_object_callback(obj,FigureCancelCB,0);
  56.   obj = fl_add_text(FL_NORMAL_TEXT,20,10,50,20,_("Type"));
  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.   fl_end_form();
  61.  
  62.   fdui->form_figure->fdui = fdui;
  63.  
  64.   return fdui;
  65. }
  66. /*---------------------------------------*/
  67.  
  68. FD_form_screen *create_form_form_screen(void)
  69. {
  70.   FL_OBJECT *obj;
  71.   FD_form_screen *fdui = (FD_form_screen *) fl_calloc(1, sizeof(*fdui));
  72.  
  73.   fdui->form_screen = fl_bgn_form(FL_NO_BOX, 390, 220);
  74.   obj = fl_add_box(FL_UP_BOX,0,0,390,220,"");
  75.   fdui->input_roman = obj = fl_add_input(FL_NORMAL_INPUT,140,10,240,30,idex(_("Roman Font|#R")));fl_set_button_shortcut(obj,scex(_("Roman Font|#R")),1);
  76.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  77.   fdui->input_sans = obj = fl_add_input(FL_NORMAL_INPUT,140,40,240,30,idex(_("Sans Serif Font|#S")));fl_set_button_shortcut(obj,scex(_("Sans Serif Font|#S")),1);
  78.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  79.   fdui->input_typewriter = obj = fl_add_input(FL_NORMAL_INPUT,140,70,240,30,idex(_("Typewriter Font|#T")));fl_set_button_shortcut(obj,scex(_("Typewriter Font|#T")),1);
  80.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  81.   fdui->input_font_norm = obj = fl_add_input(FL_NORMAL_INPUT,140,100,240,30,idex(_("Font Norm|#N")));fl_set_button_shortcut(obj,scex(_("Font Norm|#N")),1);
  82.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  83.   fdui->intinput_size = obj = fl_add_input(FL_INT_INPUT,140,140,50,30,idex(_("Font Zoom|#Z")));fl_set_button_shortcut(obj,scex(_("Font Zoom|#Z")),1);
  84.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  85.   obj = fl_add_button(FL_RETURN_BUTTON,60,180,100,30,_("OK"));
  86.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  87.     fl_set_object_callback(obj,ScreenOKCB,0);
  88.   obj = fl_add_button(FL_NORMAL_BUTTON,170,180,100,30,idex(_("Apply|#A")));fl_set_button_shortcut(obj,scex(_("Apply|#A")),1);
  89.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  90.     fl_set_object_callback(obj,ScreenApplyCB,0);
  91.   obj = fl_add_button(FL_NORMAL_BUTTON,280,180,100,30,idex(_("Cancel|^[")));fl_set_button_shortcut(obj,scex(_("Cancel|^[")),1);
  92.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  93.     fl_set_object_callback(obj,ScreenCancelCB,0);
  94.   fl_end_form();
  95.  
  96.   fdui->form_screen->fdui = fdui;
  97.  
  98.   return fdui;
  99. }
  100. /*---------------------------------------*/
  101.  
  102. FD_form_toc *create_form_form_toc(void)
  103. {
  104.   FL_OBJECT *obj;
  105.   FD_form_toc *fdui = (FD_form_toc *) fl_calloc(1, sizeof(*fdui));
  106.  
  107.   fdui->form_toc = fl_bgn_form(FL_NO_BOX, 420, 340);
  108.   obj = fl_add_box(FL_UP_BOX,0,0,420,340,"");
  109.   fdui->browser_toc = obj = fl_add_browser(FL_HOLD_BROWSER,10,10,400,280,"");
  110.     fl_set_object_gravity(obj, FL_NorthWest, FL_SouthEast);
  111.     fl_set_object_callback(obj,TocSelectCB,0);
  112.   obj = fl_add_button(FL_RETURN_BUTTON,310,300,100,30,_("Close"));
  113.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  114.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  115.     fl_set_object_callback(obj,TocCancelCB,0);
  116.   obj = fl_add_button(FL_NORMAL_BUTTON,200,300,100,30,idex(_("Update|Uu#u")));fl_set_button_shortcut(obj,scex(_("Update|Uu#u")),1);
  117.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  118.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  119.     fl_set_object_callback(obj,TocUpdateCB,0);
  120.   fl_end_form();
  121.  
  122.   fdui->form_toc->fdui = fdui;
  123.  
  124.   return fdui;
  125. }
  126. /*---------------------------------------*/
  127.  
  128. FD_form_ref *create_form_form_ref(void)
  129. {
  130.   FL_OBJECT *obj;
  131.   FD_form_ref *fdui = (FD_form_ref *) fl_calloc(1, sizeof(*fdui));
  132.  
  133.   fdui->form_ref = fl_bgn_form(FL_NO_BOX, 290, 280);
  134.   obj = fl_add_box(FL_UP_BOX,0,0,290,280,"");
  135.   fdui->browser_ref = obj = fl_add_browser(FL_HOLD_BROWSER,10,10,270,140,"");
  136.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  137.     fl_set_object_gravity(obj, FL_NorthWest, FL_SouthEast);
  138.   obj = fl_add_button(FL_NORMAL_BUTTON,180,160,100,30,idex(_("Update|#U")));fl_set_button_shortcut(obj,scex(_("Update|#U")),1);
  139.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  140.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  141.     fl_set_object_callback(obj,RefUpdateCB,0);
  142.   obj = fl_add_button(FL_NORMAL_BUTTON,180,200,100,30,idex(_("Close|#C^[")));fl_set_button_shortcut(obj,scex(_("Close|#C^[")),1);
  143.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  144.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  145.     fl_set_object_callback(obj,RefHideCB,0);
  146.   obj = fl_add_button(FL_NORMAL_BUTTON,10,200,160,30,idex(_("Insert Reference|#I^M")));fl_set_button_shortcut(obj,scex(_("Insert Reference|#I^M")),1);
  147.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  148.     fl_set_object_gravity(obj, FL_SouthWest, FL_SouthWest);
  149.     fl_set_object_callback(obj,RefSelectCB,0);
  150.   obj = fl_add_button(FL_NORMAL_BUTTON,10,160,160,30,idex(_("Insert Page Number|#P")));fl_set_button_shortcut(obj,scex(_("Insert Page Number|#P")),1);
  151.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  152.     fl_set_object_gravity(obj, FL_SouthWest, FL_SouthWest);
  153.     fl_set_object_callback(obj,RefSelectCB,1);
  154.   obj = fl_add_button(FL_NORMAL_BUTTON,10,240,160,30,idex(_("Go to Reference|#G")));fl_set_button_shortcut(obj,scex(_("Go to Reference|#G")),1);
  155.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  156.     fl_set_object_gravity(obj, FL_SouthWest, FL_SouthWest);
  157.     fl_set_object_callback(obj,RefSelectCB,2);
  158.   fl_end_form();
  159.  
  160.   fdui->form_ref->fdui = fdui;
  161.  
  162.   return fdui;
  163. }
  164. /*---------------------------------------*/
  165.  
  166.