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-12-06 22:24:17 +00:00
|
|
|
{
|
2001-09-13 09:34:39 +00:00
|
|
|
char const * const dummy = N_("File|#F");
|
2001-11-21 17:03:13 +00:00
|
|
|
fdui->input_filename = obj = fl_add_input(FL_NORMAL_INPUT, 90, 20, 270, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2001-09-13 12:37:40 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-11-21 17:03:13 +00:00
|
|
|
char const * const dummy = N_("Browse...|#B");
|
|
|
|
fdui->button_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 370, 20, 100, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2001-09-13 12:37:40 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-09-13 09:34:39 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 20, 70, 240, 140, _("Size"));
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-09-13 09:34:39 +00:00
|
|
|
char const * const dummy = N_("Width|#W");
|
|
|
|
fdui->input_width = obj = fl_add_input(FL_NORMAL_INPUT, 90, 80, 85, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2001-09-13 09:34:39 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-10-23 09:03:17 +00:00
|
|
|
fdui->choice_width_units = obj = fl_add_choice(FL_NORMAL_CHOICE, 180, 80, 65, 30, "");
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
2001-09-13 09:34:39 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-09-13 09:34:39 +00:00
|
|
|
char const * const dummy = N_("Height|#H");
|
|
|
|
fdui->input_height = obj = fl_add_input(FL_NORMAL_INPUT, 90, 120, 85, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2001-09-13 09:34:39 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-10-23 09:03:17 +00:00
|
|
|
fdui->choice_height_units = obj = fl_add_choice(FL_NORMAL_CHOICE, 180, 120, 65, 30, "");
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
2001-09-13 09:34:39 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-09-13 09:34:39 +00:00
|
|
|
char const * const dummy = N_("Scale|#S");
|
|
|
|
fdui->input_scale = obj = fl_add_input(FL_NORMAL_INPUT, 90, 170, 85, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2001-09-13 09:34:39 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
|
|
|
// xgettext:no-c-format
|
|
|
|
obj = fl_add_text(FL_NORMAL_TEXT, 180, 170, 60, 30, _("%"));
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 270, 70, 200, 70, _("Rotation"));
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-11-05 17:07:23 +00:00
|
|
|
char const * const dummy = N_("Angle|#n");
|
2001-09-13 09:34:39 +00:00
|
|
|
fdui->input_rotate_angle = obj = fl_add_input(FL_INT_INPUT, 340, 90, 70, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2001-09-13 09:34:39 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
|
|
|
obj = fl_add_text(FL_NORMAL_TEXT, 410, 90, 50, 30, _("degs"));
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 270, 160, 200, 50, _("Display Options"));
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-09-13 09:34:39 +00:00
|
|
|
char const * const dummy = N_("Display in LyX|#D");
|
|
|
|
fdui->check_display = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 400, 170, 30, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2001-09-13 09:34:39 +00:00
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 20, 230, 450, 90, _("Subcaption"));
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-11-13 14:47:35 +00:00
|
|
|
char const * const dummy = N_("Subcaption|#u");
|
2001-09-13 09:34:39 +00:00
|
|
|
fdui->check_subcaption = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 110, 240, 30, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-10-26 09:36:33 +00:00
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT);
|
2001-09-13 12:37:40 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-09-13 09:34:39 +00:00
|
|
|
char const * const dummy = N_("Title|#T");
|
|
|
|
fdui->input_subcaption = obj = fl_add_input(FL_NORMAL_INPUT, 110, 280, 350, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2001-09-13 12:37:40 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-09-13 09:34:39 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Restore|#R");
|
2001-11-21 17:03:13 +00:00
|
|
|
fdui->button_restore = obj = fl_add_button(FL_NORMAL_BUTTON, 20, 350, 100, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
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);
|
2001-03-28 13:11:08 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseRestoreCB, 0);
|
2001-09-13 09:34:39 +00:00
|
|
|
fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 180, 350, 90, 30, _("Ok"));
|
2001-03-28 13:11:08 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseOKCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Apply|#A");
|
2001-09-13 09:34:39 +00:00
|
|
|
fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 280, 350, 90, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2001-03-28 13:11:08 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseApplyCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Cancel|^[");
|
2001-09-13 09:34:39 +00:00
|
|
|
fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 380, 350, 90, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2001-03-28 13:11:08 +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
|
|
|
|