2000-09-26 13:54:57 +00:00
// File modified by fdfix.sh for use by lyx (with xforms > 0.88) and gettext
1999-09-27 18:44:28 +00:00
# include <config.h>
# include "lyx_gui_misc.h"
# include "gettext.h"
2001-11-26 10:19:58 +00:00
# include "frontends/xforms/xforms_helpers.h"
1999-09-27 18:44:28 +00:00
/* Form definition file generated with fdesign. */
# include FORMS_H_LOCATION
1999-11-15 12:01:38 +00:00
# include <cstdlib>
2001-03-28 14:51:25 +00:00
# include "figure_form.h"
1999-09-27 18:44:28 +00:00
FD_Figure * create_form_Figure ( void )
{
FL_OBJECT * obj ;
FD_Figure * fdui = ( FD_Figure * ) fl_calloc ( 1 , sizeof ( FD_Figure ) ) ;
fdui - > Figure = fl_bgn_form ( FL_NO_BOX , 420 , 390 ) ;
1999-11-15 12:01:38 +00:00
obj = fl_add_box ( FL_UP_BOX , 0 , 0 , 420 , 390 , " " ) ;
obj = fl_add_frame ( FL_ENGRAVED_FRAME , 230 , 220 , 180 , 80 , " " ) ;
fl_set_object_color ( obj , FL_COL1 , FL_COL1 ) ;
obj = fl_add_frame ( FL_ENGRAVED_FRAME , 230 , 60 , 180 , 140 , " " ) ;
fl_set_object_color ( obj , FL_COL1 , FL_COL1 ) ;
obj = fl_add_frame ( FL_ENGRAVED_FRAME , 10 , 244 , 200 , 56 , " " ) ;
fl_set_object_color ( obj , FL_COL1 , FL_COL1 ) ;
obj = fl_add_frame ( FL_ENGRAVED_FRAME , 10 , 60 , 200 , 160 , " " ) ;
fl_set_object_color ( obj , FL_COL1 , FL_COL1 ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 2 ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 1 ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 0 ) ;
fdui - > Width = obj = fl_add_input ( FL_FLOAT_INPUT , 20 , 180 , 80 , 30 , " " ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 2 ) ;
fdui - > Height = obj = fl_add_input ( FL_FLOAT_INPUT , 120 , 180 , 80 , 30 , " " ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 2 ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 7 ) ;
fdui - > OkBtn = obj = fl_add_button ( FL_RETURN_BUTTON , 10 , 350 , 70 , 30 , _ ( " OK " ) ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 8 ) ;
fdui - > CancelBtn = obj = fl_add_button ( FL_NORMAL_BUTTON , 180 , 350 , 70 , 30 , idex ( _ ( " Cancel|^[ " ) ) ) ; fl_set_button_shortcut ( obj , scex ( _ ( " Cancel|^[ " ) ) , 1 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 9 ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 53 ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 54 ) ;
obj = fl_add_text ( FL_NORMAL_TEXT , 240 , 210 , 70 , 20 , _ ( " Options " ) ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_lalign ( obj , FL_ALIGN_LEFT | FL_ALIGN_INSIDE ) ;
fl_set_object_lstyle ( obj , FL_BOLD_STYLE ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 2 ) ;
1999-09-27 18:44:28 +00:00
fdui - > HeightGrp = fl_bgn_group ( ) ;
1999-10-28 05:01:47 +00:00
// xgettext:no-c-format
1999-11-15 12:01:38 +00:00
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 23 ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 20 ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 21 ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 22 ) ;
1999-09-27 18:44:28 +00:00
fl_end_group ( ) ;
1999-11-15 12:01:38 +00:00
obj = fl_add_text ( FL_NORMAL_TEXT , 237 , 50 , 53 , 20 , _ ( " Display " ) ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_lalign ( obj , FL_ALIGN_LEFT | FL_ALIGN_INSIDE ) ;
fl_set_object_lstyle ( obj , FL_BOLD_STYLE ) ;
fdui - > HeightLabel = obj = fl_add_text ( FL_NORMAL_TEXT , 120 , 50 , 60 , 20 , _ ( " Height " ) ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_lalign ( obj , FL_ALIGN_LEFT | FL_ALIGN_INSIDE ) ;
fl_set_object_lstyle ( obj , FL_BOLD_STYLE ) ;
fdui - > WidthLabel = obj = fl_add_text ( FL_NORMAL_TEXT , 20 , 50 , 60 , 20 , _ ( " Width " ) ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_lalign ( obj , FL_ALIGN_LEFT | FL_ALIGN_INSIDE ) ;
fl_set_object_lstyle ( obj , FL_BOLD_STYLE ) ;
obj = fl_add_text ( FL_NORMAL_TEXT , 20 , 230 , 90 , 30 , _ ( " Rotation " ) ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_lalign ( obj , FL_ALIGN_LEFT | FL_ALIGN_INSIDE ) ;
fl_set_object_lstyle ( obj , FL_BOLD_STYLE ) ;
1999-09-27 18:44:28 +00:00
fdui - > DisplayGrp = fl_bgn_group ( ) ;
1999-11-15 12:01:38 +00:00
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 63 ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 3 ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 43 ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 33 ) ;
1999-09-27 18:44:28 +00:00
fl_end_group ( ) ;
fdui - > WidthGrp = fl_bgn_group ( ) ;
1999-11-15 12:01:38 +00:00
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 10 ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 11 ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 12 ) ;
2000-06-12 11:27:15 +00:00
// xgettext:no-c-format
1999-11-15 12:01:38 +00:00
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 13 ) ;
2000-06-12 11:27:15 +00:00
// xgettext:no-c-format
1999-11-15 12:01:38 +00:00
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 14 ) ;
1999-09-27 18:44:28 +00:00
fl_end_group ( ) ;
1999-11-15 12:01:38 +00:00
obj = fl_add_frame ( FL_ENGRAVED_FRAME , 10 , 310 , 400 , 30 , " " ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 2 ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , GraphicsCB , 70 ) ;
1999-09-27 18:44:28 +00:00
fl_end_form ( ) ;
2000-09-26 13:54:57 +00:00
fdui - > Figure - > fdui = fdui ;
1999-09-27 18:44:28 +00:00
return fdui ;
}
/*---------------------------------------*/
2001-03-28 14:51:25 +00:00
FD_form_figure * create_form_form_figure ( void )
{
FL_OBJECT * obj ;
FD_form_figure * fdui = ( FD_form_figure * ) fl_calloc ( 1 , sizeof ( FD_form_figure ) ) ;
fdui - > form_figure = fl_bgn_form ( FL_NO_BOX , 340 , 150 ) ;
obj = fl_add_box ( FL_UP_BOX , 0 , 0 , 340 , 150 , " " ) ;
obj = fl_add_frame ( FL_ENGRAVED_FRAME , 10 , 20 , 320 , 80 , " " ) ;
fl_set_object_color ( obj , FL_COL1 , FL_COL1 ) ;
fdui - > group_radio_fugre = fl_bgn_group ( ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
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 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_end_group ( ) ;
obj = fl_add_button ( FL_RETURN_BUTTON , 10 , 110 , 100 , 30 , _ ( " OK " ) ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , FigureOKCB , 0 ) ;
obj = fl_add_button ( FL_NORMAL_BUTTON , 120 , 110 , 100 , 30 , idex ( _ ( " Apply|#A " ) ) ) ; fl_set_button_shortcut ( obj , scex ( _ ( " Apply|#A " ) ) , 1 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , FigureApplyCB , 0 ) ;
obj = fl_add_button ( FL_NORMAL_BUTTON , 230 , 110 , 100 , 30 , idex ( _ ( " Cancel|^[ " ) ) ) ; fl_set_button_shortcut ( obj , scex ( _ ( " Cancel|^[ " ) ) , 1 ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_callback ( obj , FigureCancelCB , 0 ) ;
obj = fl_add_text ( FL_NORMAL_TEXT , 20 , 10 , 50 , 20 , _ ( " Type " ) ) ;
fl_set_object_lsize ( obj , FL_NORMAL_SIZE ) ;
fl_set_object_lalign ( obj , FL_ALIGN_LEFT | FL_ALIGN_INSIDE ) ;
fl_set_object_lstyle ( obj , FL_BOLD_STYLE ) ;
fl_end_form ( ) ;
fdui - > form_figure - > fdui = fdui ;
return fdui ;
}
/*---------------------------------------*/