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 / bullet_forms.C < prev    next >
C/C++ Source or Header  |  1998-04-23  |  6KB  |  114 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 "bullet_forms.h"
  11. #include "bmtable.h"
  12. #include "filetools.h"
  13.  
  14. FD_form_bullet *create_form_form_bullet(void)
  15. {
  16.   FL_OBJECT *obj;
  17.   FD_form_bullet *fdui = (FD_form_bullet *) fl_calloc(1, sizeof(*fdui));
  18.  
  19.   fdui->form_bullet = fl_bgn_form(FL_NO_BOX, 370, 390);
  20.   fl_set_border_width(-1);
  21.   obj = fl_add_box(FL_UP_BOX,0,0,370,390,"");
  22.  
  23.   // make the border thick again to improve the bmtable looks
  24.   fl_set_border_width(-3);
  25.  
  26.   fdui->bmtable_bullet_panel = obj = fl_add_bmtable(1, 90, 105, 265, 180, "");
  27.      fl_set_object_callback(obj, BulletBMTableCB, 0);
  28.      fl_set_object_lcol(obj, FL_BLUE);
  29.      fl_set_object_boxtype(obj, FL_UP_BOX);
  30.      fl_set_bmtable_pixmap_file(obj, 6, 6,
  31.                 LibFileSearch("images",
  32.                           "standard.xpm").c_str());
  33.  
  34.   fl_set_border_width(-1);
  35.   obj = fl_add_frame(FL_ENGRAVED_FRAME,95,20,255,70,"");
  36.   obj = fl_add_frame(FL_ENGRAVED_FRAME,0,340,370,50,"");
  37.   fdui->choice_bullet_size = obj = fl_add_choice(FL_NORMAL_CHOICE,15,45,65,30,idex(_("Size|#z")));fl_set_button_shortcut(obj,scex(_("Size|#z")),1);
  38.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  39.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  40.     fl_set_object_lalign(obj,FL_ALIGN_TOP);
  41.     fl_set_object_callback(obj,ChoiceBulletSizeCB,0);
  42.   fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON,25,350,100,30,_("OK"));
  43.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  44.     fl_set_object_callback(obj,BulletOKCB,0);
  45.   fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON,135,350,100,30,idex(_("Apply|#A")));fl_set_button_shortcut(obj,scex(_("Apply|#A")),1);
  46.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  47.     fl_set_object_callback(obj,BulletApplyCB,0);
  48.   fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON,245,350,100,30,idex(_("Cancel|^[")));fl_set_button_shortcut(obj,scex(_("Cancel|^[")),1);
  49.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  50.     fl_set_object_callback(obj,BulletCancelCB,0);
  51.   fdui->input_bullet_latex = obj = fl_add_input(FL_NORMAL_INPUT,80,300,275,30,idex(_("LaTeX|#L")));fl_set_button_shortcut(obj,scex(_("LaTeX|#L")),1);
  52.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  53.     fl_set_object_lstyle(obj,FL_FIXED_STYLE);
  54.     fl_set_input_return(obj, FL_RETURN_CHANGED);
  55.     fl_set_input_maxchars(obj,80);
  56.     fl_set_object_callback(obj,InputBulletLaTeXCB,0);
  57.  
  58.   fdui->radio_bullet_depth = fl_bgn_group();
  59.   fdui->radio_bullet_depth_1 = obj = fl_add_button(FL_RADIO_BUTTON,105,35,55,40,idex(_("1|#1")));fl_set_button_shortcut(obj,scex(_("1|#1")),1);
  60.     fl_set_object_lsize(obj,FL_LARGE_SIZE);
  61.     fl_set_object_callback(obj,BulletDepthCB,0);
  62.     fl_set_button(obj, 1);
  63.   fdui->radio_bullet_depth_2 = obj = fl_add_button(FL_RADIO_BUTTON,165,35,55,40,idex(_("2|#2")));fl_set_button_shortcut(obj,scex(_("2|#2")),1);
  64.     fl_set_object_lsize(obj,FL_LARGE_SIZE);
  65.     fl_set_object_callback(obj,BulletDepthCB,1);
  66.   fdui->radio_bullet_depth_3 = obj = fl_add_button(FL_RADIO_BUTTON,225,35,55,40,idex(_("3|#3")));fl_set_button_shortcut(obj,scex(_("3|#3")),1);
  67.     fl_set_object_lsize(obj,FL_LARGE_SIZE);
  68.     fl_set_object_callback(obj,BulletDepthCB,2);
  69.   fdui->radio_bullet_depth_4 = obj = fl_add_button(FL_RADIO_BUTTON,285,35,55,40,idex(_("4|#4")));fl_set_button_shortcut(obj,scex(_("4|#4")),1);
  70.     fl_set_object_lsize(obj,FL_LARGE_SIZE);
  71.     fl_set_object_callback(obj,BulletDepthCB,3);
  72.   fl_end_group();
  73.  
  74.   obj = fl_add_text(FL_NORMAL_TEXT,105,10,85,20,_("Bullet Depth"));
  75.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  76.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  77.  
  78.   fdui->radio_bullet_panel = fl_bgn_group();
  79.   fdui->radio_bullet_panel_standard = obj = fl_add_button(FL_RADIO_BUTTON,15,105,65,30,idex(_("Standard|#S")));fl_set_button_shortcut(obj,scex(_("Standard|#S")),1);
  80.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  81.     fl_set_object_resize(obj, FL_RESIZE_NONE);
  82.     fl_set_object_callback(obj,BulletPanelCB,0);
  83.     fl_set_button(obj, 1);
  84.   fdui->radio_bullet_panel_maths = obj = fl_add_button(FL_RADIO_BUTTON,15,135,65,30,idex(_("Maths|#M")));fl_set_button_shortcut(obj,scex(_("Maths|#M")),1);
  85.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  86.     fl_set_object_resize(obj, FL_RESIZE_NONE);
  87.     fl_set_object_callback(obj,BulletPanelCB,1);
  88.   fdui->radio_bullet_panel_ding2 = obj = fl_add_button(FL_RADIO_BUTTON,15,195,65,30,idex(_("Ding 2|#i")));fl_set_button_shortcut(obj,scex(_("Ding 2|#i")),1);
  89.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  90.     fl_set_object_resize(obj, FL_RESIZE_NONE);
  91.     fl_set_object_callback(obj,BulletPanelCB,3);
  92.   fdui->radio_bullet_panel_ding3 = obj = fl_add_button(FL_RADIO_BUTTON,15,225,65,30,idex(_("Ding 3|#n")));fl_set_button_shortcut(obj,scex(_("Ding 3|#n")),1);
  93.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  94.     fl_set_object_resize(obj, FL_RESIZE_NONE);
  95.     fl_set_object_callback(obj,BulletPanelCB,4);
  96.   fdui->radio_bullet_panel_ding4 = obj = fl_add_button(FL_RADIO_BUTTON,15,255,65,30,idex(_("Ding 4|#g")));fl_set_button_shortcut(obj,scex(_("Ding 4|#g")),1);
  97.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  98.     fl_set_object_resize(obj, FL_RESIZE_NONE);
  99.     fl_set_object_callback(obj,BulletPanelCB,5);
  100.   fdui->radio_bullet_panel_ding1 = obj = fl_add_button(FL_RADIO_BUTTON,15,165,65,30,idex(_("Ding 1|#D")));fl_set_button_shortcut(obj,scex(_("Ding 1|#D")),1);
  101.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  102.     fl_set_object_resize(obj, FL_RESIZE_NONE);
  103.     fl_set_object_callback(obj,BulletPanelCB,2);
  104.   fl_end_group();
  105.  
  106.   fl_end_form();
  107.  
  108.   //fdui->form_bullet->fdui = fdui;
  109.  
  110.   return fdui;
  111. }
  112. /*---------------------------------------*/
  113.  
  114.