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_sendfax.C < prev    next >
C/C++ Source or Header  |  1998-04-23  |  5KB  |  120 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_sendfax.h"
  11.  
  12. FD_xsendfax *create_form_xsendfax(void)
  13. {
  14.   FL_OBJECT *obj;
  15.   FD_xsendfax *fdui = (FD_xsendfax *) fl_calloc(1, sizeof(*fdui));
  16.  
  17.   fdui->xsendfax = fl_bgn_form(FL_NO_BOX, 600, 330);
  18.   obj = fl_add_box(FL_UP_BOX,0,0,600,330,"");
  19.   obj = fl_add_frame(FL_ENGRAVED_FRAME,10,15,465,125,"");
  20.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  21.   fdui->Input_Phone = obj = fl_add_input(FL_NORMAL_INPUT,90,30,377,30,idex(_("Fax no.:|#F")));fl_set_button_shortcut(obj,scex(_("Fax no.:|#F")),1);
  22.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  23.   fdui->Input_Name = obj = fl_add_input(FL_NORMAL_INPUT,90,65,377,29,idex(_("Dest. Name:|#N")));fl_set_button_shortcut(obj,scex(_("Dest. Name:|#N")),1);
  24.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  25.   fdui->Input_Enterprise = obj = fl_add_input(FL_NORMAL_INPUT,90,100,377,29,idex(_("Enterprise:|#E")));fl_set_button_shortcut(obj,scex(_("Enterprise:|#E")),1);
  26.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  27.   fdui->Input_Comment = obj = fl_add_input(FL_MULTILINE_INPUT,15,165,575,106,"");
  28.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  29.     fl_set_object_lalign(obj,FL_ALIGN_TOP_LEFT);
  30.     fl_set_object_lstyle(obj,FL_NORMAL_STYLE+FL_EMBOSSED_STYLE);
  31.   fdui->Button_Send = obj = fl_add_button(FL_NORMAL_BUTTON,20,290,180,30,idex(_("OK|#O")));fl_set_button_shortcut(obj,scex(_("OK|#O")),1);
  32.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  33.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  34.     fl_set_object_callback(obj,FaxSendCB,0);
  35.   fdui->Button_Cancel = obj = fl_add_button(FL_NORMAL_BUTTON,400,290,180,30,idex(_("Cancel|^[")));fl_set_button_shortcut(obj,scex(_("Cancel|^[")),1);
  36.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  37.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  38.     fl_set_object_callback(obj,FaxCancelCB,0);
  39.   fdui->Button_Apply = obj = fl_add_button(FL_NORMAL_BUTTON,210,290,180,30,idex(_("Apply|#A")));fl_set_button_shortcut(obj,scex(_("Apply|#A")),1);
  40.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  41.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  42.     fl_set_object_callback(obj,FaxApplyCB,0);
  43.   obj = fl_add_frame(FL_ENGRAVED_FRAME,485,30,105,100,"");
  44.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  45.   obj = fl_add_text(FL_NORMAL_TEXT,490,20,95,20,_("Phone Book"));
  46.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  47.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  48.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  49.   fdui->Button_SPhone = obj = fl_add_button(FL_NORMAL_BUTTON,490,45,15,15,idex(_("Select from|#S")));fl_set_button_shortcut(obj,scex(_("Select from|#S")),1);
  50.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  51.     fl_set_object_lalign(obj,FL_ALIGN_RIGHT);
  52.     fl_set_object_callback(obj,FaxOpenPhonebookCB,0);
  53.   obj = fl_add_button(FL_NORMAL_BUTTON,490,65,15,15,idex(_("Add to|#t")));fl_set_button_shortcut(obj,scex(_("Add to|#t")),1);
  54.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  55.     fl_set_object_lalign(obj,FL_ALIGN_RIGHT);
  56.     fl_set_object_callback(obj,cb_add_phoneno,0);
  57.   obj = fl_add_button(FL_NORMAL_BUTTON,490,85,15,15,idex(_("Delete from|#D")));fl_set_button_shortcut(obj,scex(_("Delete from|#D")),1);
  58.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  59.     fl_set_object_lalign(obj,FL_ALIGN_RIGHT);
  60.     fl_set_object_callback(obj,cb_delete_phoneno,0);
  61.   fdui->pb_save = obj = fl_add_button(FL_NORMAL_BUTTON,490,105,15,15,idex(_("Save|#V")));fl_set_button_shortcut(obj,scex(_("Save|#V")),1);
  62.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  63.     fl_set_object_lalign(obj,FL_ALIGN_RIGHT);
  64.     fl_set_object_callback(obj,cb_save_phoneno,0);
  65.   obj = fl_add_text(FL_NORMAL_TEXT,15,5,100,20,_("Destination:"));
  66.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  67.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  68.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  69.   obj = fl_add_frame(FL_ENGRAVED_FRAME,10,155,585,125,"");
  70.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  71.   obj = fl_add_text(FL_NORMAL_TEXT,15,145,85,20,_("Comment:"));
  72.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  73.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  74.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  75.   fl_end_form();
  76.  
  77.   fdui->xsendfax->fdui = fdui;
  78.  
  79.   return fdui;
  80. }
  81. /*---------------------------------------*/
  82.  
  83. FD_phonebook *create_form_phonebook(void)
  84. {
  85.   FL_OBJECT *obj;
  86.   FD_phonebook *fdui = (FD_phonebook *) fl_calloc(1, sizeof(*fdui));
  87.  
  88.   fdui->phonebook = fl_bgn_form(FL_NO_BOX, 600, 320);
  89.   obj = fl_add_box(FL_UP_BOX,0,0,600,320,"");
  90.   fdui->browser = obj = fl_add_browser(FL_HOLD_BROWSER,2,2,598,318,"");
  91.     fl_set_object_lsize(obj,FL_MEDIUM_SIZE);
  92.     fl_set_object_callback(obj,cb_select_phoneno,0);
  93.   fl_end_form();
  94.  
  95.   fdui->phonebook->fdui = fdui;
  96.  
  97.   return fdui;
  98. }
  99. /*---------------------------------------*/
  100.  
  101. FD_logfile *create_form_logfile(void)
  102. {
  103.   FL_OBJECT *obj;
  104.   FD_logfile *fdui = (FD_logfile *) fl_calloc(1, sizeof(*fdui));
  105.  
  106.   fdui->logfile = fl_bgn_form(FL_NO_BOX, 510, 190);
  107.   obj = fl_add_box(FL_UP_BOX,0,0,510,190,"");
  108.   fdui->browser = obj = fl_add_browser(FL_NORMAL_BROWSER,10,10,490,130,"");
  109.   fdui->Button_Close = obj = fl_add_button(FL_RETURN_BUTTON,410,150,90,30,_("Close"));
  110.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  111.     fl_set_object_callback(obj,FaxLogfileCloseCB,0);
  112.   fl_end_form();
  113.  
  114.   fdui->logfile->fdui = fdui;
  115.  
  116.   return fdui;
  117. }
  118. /*---------------------------------------*/
  119.  
  120.