2001-03-16 15:15:32 +00:00
|
|
|
// File modified by fdfix.sh for use by lyx (with xforms >= 0.88) and gettext
|
|
|
|
#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_minipage.h"
|
|
|
|
#include "FormMinipage.h"
|
|
|
|
|
|
|
|
FD_form_minipage::~FD_form_minipage()
|
|
|
|
{
|
|
|
|
if ( form->visible ) fl_hide_form( form );
|
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
FD_form_minipage * FormMinipage::build_minipage()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_minipage *fdui = new FD_form_minipage;
|
|
|
|
|
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 430, 170);
|
|
|
|
fdui->form->u_vdata = this;
|
|
|
|
obj = fl_add_box(FL_FLAT_BOX, 0, 0, 430, 170, "");
|
2001-03-29 15:00:20 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 20, 20, 200, 60, _("Width"));
|
2001-03-16 15:15:32 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
2001-03-29 15:00:20 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 240, 20, 180, 100, _("Alignment"));
|
2001-03-16 15:15:32 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
2001-03-29 15:00:20 +00:00
|
|
|
fdui->input_width = obj = fl_add_input(FL_NORMAL_INPUT, 30, 30, 110, 30, "");
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-10-23 09:04:46 +00:00
|
|
|
fdui->choice_width_units = obj = fl_add_choice(FL_NORMAL_CHOICE, 150, 30, 60, 30, "");
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
2001-03-29 15:00:20 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-03-16 15:15:32 +00:00
|
|
|
|
|
|
|
fdui->group_alignment = fl_bgn_group();
|
|
|
|
{
|
|
|
|
char const * const dummy = N_("Top|#T");
|
|
|
|
fdui->radio_top = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 249, 30, 152, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-27 16:03:28 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-03-16 15:15:32 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Middle|#d");
|
|
|
|
fdui->radio_middle = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 249, 60, 152, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-27 16:03:28 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-03-16 15:15:32 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Bottom|#B");
|
|
|
|
fdui->radio_bottom = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 249, 90, 152, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-27 16:03:28 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-03-16 15:15:32 +00:00
|
|
|
fl_end_group();
|
|
|
|
|
|
|
|
{
|
|
|
|
char const * const dummy = N_("Cancel|^[");
|
|
|
|
fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 330, 130, 90, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-27 16:03:28 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseCancelCB, 0);
|
2001-03-16 15:15:32 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Apply|#A");
|
|
|
|
fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 230, 130, 90, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-27 16:03:28 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseApplyCB, 0);
|
2001-03-16 15:15:32 +00:00
|
|
|
fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 130, 130, 90, 30, _("OK"));
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-27 16:03:28 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseOKCB, 0);
|
2001-03-16 15:15:32 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Restore|#R");
|
|
|
|
fdui->button_restore = obj = fl_add_button(FL_NORMAL_BUTTON, 10, 130, 90, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-27 16:03:28 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseRestoreCB, 0);
|
2001-03-16 15:15:32 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
|
|
|
fdui->form->fdui = fdui;
|
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|