2000-08-02 05:54:58 +00:00
|
|
|
// File modified by fdfix.sh for use by lyx (with xforms >= 0.88) and gettext
|
2000-07-31 12:30:10 +00:00
|
|
|
#include <config.h>
|
|
|
|
#include "lyx_gui_misc.h"
|
|
|
|
#include "gettext.h"
|
|
|
|
|
|
|
|
/* Form definition file generated with fdesign. */
|
|
|
|
|
|
|
|
#include FORMS_H_LOCATION
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "form_graphics.h"
|
2000-08-14 05:24:35 +00:00
|
|
|
#include "FormGraphics.h"
|
|
|
|
|
|
|
|
FD_form_graphics::~FD_form_graphics()
|
|
|
|
{
|
2000-11-07 06:41:13 +00:00
|
|
|
if ( form->visible ) fl_hide_form( form );
|
2000-08-14 05:24:35 +00:00
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
2000-07-31 12:30:10 +00:00
|
|
|
|
|
|
|
FD_form_graphics * FormGraphics::build_graphics()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_graphics *fdui = new FD_form_graphics;
|
|
|
|
|
2000-10-26 09:36:33 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 490, 390);
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->u_vdata = this;
|
2000-10-26 09:36:33 +00:00
|
|
|
obj = fl_add_box(FL_UP_BOX, 0, 0, 490, 390, "");
|
2000-07-31 12:30:10 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-10-24 13:13:59 +00:00
|
|
|
fl_set_object_gravity(obj, FL_NorthWest, FL_SouthEast);
|
2000-10-26 09:36:33 +00:00
|
|
|
obj = fl_add_frame(FL_ENGRAVED_FRAME, 20, 310, 138, 30, "");
|
|
|
|
obj = fl_add_frame(FL_ENGRAVED_FRAME, 279, 250, 201, 50, "");
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Graphics File|#F");
|
|
|
|
fdui->input_filename = obj = fl_add_input(FL_NORMAL_INPUT, 150, 20, 210, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
|
|
|
|
{
|
|
|
|
char const * const dummy = N_("Browse|#B");
|
|
|
|
fdui->button_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 370, 20, 90, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-10-24 13:13:59 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, BROWSE);
|
2000-10-26 09:36:33 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 20, 70, 240, 160, _("Width"));
|
2000-07-31 12:30:10 +00:00
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_CENTER);
|
2000-10-26 09:36:33 +00:00
|
|
|
obj = fl_add_text(FL_NORMAL_TEXT, 164, 60, 60, 20, _("Height"));
|
2000-07-31 12:30:10 +00:00
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
|
2000-10-26 09:36:33 +00:00
|
|
|
fdui->input_width = obj = fl_add_input(FL_NORMAL_INPUT, 32, 190, 108, 30, "");
|
2000-07-31 12:30:10 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-10-24 13:13:59 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
|
2000-10-26 09:36:33 +00:00
|
|
|
fdui->input_height = obj = fl_add_input(FL_NORMAL_INPUT, 152, 190, 96, 30, "");
|
2000-07-31 12:30:10 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-10-24 13:13:59 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
|
2000-10-26 09:36:33 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 270, 70, 210, 160, _("Display"));
|
2000-07-31 12:30:10 +00:00
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_CENTER);
|
|
|
|
|
|
|
|
fdui->radio_button_group_width = fl_bgn_group();
|
2000-12-06 09:49:54 +00:00
|
|
|
// xgettext:no-c-format
|
2000-10-26 09:36:33 +00:00
|
|
|
fdui->radio_width_percent_page = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 20, 140, 80, 30, _("% of Page"));
|
2000-10-24 13:13:59 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
|
2000-10-26 09:36:33 +00:00
|
|
|
fdui->radio_width_default = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 20, 80, 80, 30, _("Default"));
|
2000-10-24 13:13:59 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
|
2000-07-31 12:30:10 +00:00
|
|
|
fl_set_button(obj, 1);
|
2000-10-26 09:36:33 +00:00
|
|
|
fdui->radio_width_cm = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 20, 100, 80, 30, _("cm"));
|
2000-10-24 13:13:59 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
|
2000-10-26 09:36:33 +00:00
|
|
|
fdui->radio_width_inch = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 20, 120, 80, 30, _("Inch"));
|
2000-10-24 13:13:59 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
|
2000-12-06 09:49:54 +00:00
|
|
|
// xgettext:no-c-format
|
2000-10-26 09:36:33 +00:00
|
|
|
fdui->radio_width_percent_column = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 20, 160, 96, 30, _("% of Column"));
|
2000-10-24 13:13:59 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
|
2000-07-31 12:30:10 +00:00
|
|
|
fl_end_group();
|
|
|
|
|
|
|
|
|
|
|
|
fdui->radio_button_group_height = fl_bgn_group();
|
2000-12-06 09:49:54 +00:00
|
|
|
// xgettext:no-c-format
|
2000-10-26 09:36:33 +00:00
|
|
|
fdui->radio_height_percent_page = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 140, 140, 96, 30, _("% of Page"));
|
2000-10-24 13:13:59 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
|
2000-10-26 09:36:33 +00:00
|
|
|
fdui->radio_height_inch = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 140, 120, 96, 30, _("Inch"));
|
2000-10-24 13:13:59 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
|
2000-10-26 09:36:33 +00:00
|
|
|
fdui->radio_height_cm = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 140, 100, 80, 30, _("cm"));
|
2000-10-24 13:13:59 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
|
2000-10-26 09:36:33 +00:00
|
|
|
fdui->radio_height_default = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 140, 80, 96, 30, _("Default"));
|
2000-10-24 13:13:59 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
|
2000-07-31 12:30:10 +00:00
|
|
|
fl_set_button(obj, 1);
|
|
|
|
fl_end_group();
|
|
|
|
|
|
|
|
|
|
|
|
fdui->radio_button_group_display = fl_bgn_group();
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("in Monochrome|#M");
|
|
|
|
fdui->radio_display_monochrome = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 295, 80, 98, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-07-31 12:30:10 +00:00
|
|
|
fl_set_button(obj, 1);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("in Grayscale|#G");
|
|
|
|
fdui->radio_display_grayscale = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 295, 110, 98, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
{
|
|
|
|
char const * const dummy = N_("in Color|#C");
|
|
|
|
fdui->radio_display_color = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 295, 140, 98, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
{
|
|
|
|
char const * const dummy = N_("Don't display|#D");
|
|
|
|
fdui->radio_no_display = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 295, 170, 98, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-07-31 12:30:10 +00:00
|
|
|
fl_end_group();
|
|
|
|
|
2000-10-26 09:36:33 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 20, 250, 236, 50, _("Rotate"));
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Angle|#A");
|
|
|
|
fdui->input_rotate_angle = obj = fl_add_input(FL_INT_INPUT, 91, 260, 94, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
|
|
|
|
{
|
|
|
|
char const * const dummy = N_("Inline Figure|#I");
|
|
|
|
fdui->check_inline = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 279, 260, 201, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-10-24 13:13:59 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
|
2000-10-26 09:36:33 +00:00
|
|
|
fdui->input_subcaption = obj = fl_add_input(FL_NORMAL_INPUT, 158, 310, 322, 30, "");
|
2000-10-24 13:13:59 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Subcaption|#S");
|
|
|
|
fdui->check_subcaption = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 120, 310, 30, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-10-26 09:36:33 +00:00
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT);
|
2000-10-24 13:13:59 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Update|#U");
|
|
|
|
fdui->button_restore = obj = fl_add_button(FL_NORMAL_BUTTON, 20, 350, 90, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-11-28 06:46:06 +00:00
|
|
|
fl_set_object_gravity(obj, FL_SouthWest, FL_SouthWest);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseRestoreCB, 0);
|
|
|
|
fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 190, 350, 90, 30, _("Ok"));
|
|
|
|
fl_set_object_callback(obj, C_FormBaseOKCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Apply|#A");
|
|
|
|
fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 290, 350, 90, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-11-28 06:46:06 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseApplyCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Cancel|^[");
|
|
|
|
fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 390, 350, 90, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-11-28 06:46:06 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseCancelCB, 0);
|
2000-07-31 12:30:10 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->fdui = fdui;
|
2000-07-31 12:30:10 +00:00
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
2000-08-14 05:24:35 +00:00
|
|
|
|