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>
|
2001-11-26 10:19:58 +00:00
|
|
|
#include "xforms_helpers.h"
|
2001-03-16 15:15:32 +00:00
|
|
|
#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);
|
2002-03-12 14:11:15 +00:00
|
|
|
fl_bgn_group();
|
2001-03-16 15:15:32 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Top|#T");
|
2002-01-07 11:28:09 +00:00
|
|
|
fdui->radio_top = obj = fl_add_round3dbutton(FL_RADIO_BUTTON, 249, 30, 152, 30, idex(_(dummy)));
|
2001-03-16 15:15:32 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2002-01-07 11:28:09 +00:00
|
|
|
fl_set_object_color(obj, FL_COL1, FL_YELLOW);
|
2001-03-16 15:15:32 +00:00
|
|
|
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");
|
2002-01-07 11:28:09 +00:00
|
|
|
fdui->radio_middle = obj = fl_add_round3dbutton(FL_RADIO_BUTTON, 249, 60, 152, 30, idex(_(dummy)));
|
2001-03-16 15:15:32 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2002-01-07 11:28:09 +00:00
|
|
|
fl_set_object_color(obj, FL_COL1, FL_YELLOW);
|
2001-03-16 15:15:32 +00:00
|
|
|
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");
|
2002-01-07 11:28:09 +00:00
|
|
|
fdui->radio_bottom = obj = fl_add_round3dbutton(FL_RADIO_BUTTON, 249, 90, 152, 30, idex(_(dummy)));
|
2001-03-16 15:15:32 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2002-01-07 11:28:09 +00:00
|
|
|
fl_set_object_color(obj, FL_COL1, FL_YELLOW);
|
2001-03-16 15:15:32 +00:00
|
|
|
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|^[");
|
2002-03-12 14:11:15 +00:00
|
|
|
fdui->button_close = obj = fl_add_button(FL_NORMAL_BUTTON, 330, 130, 90, 30, idex(_(dummy)));
|
2001-03-16 15:15:32 +00:00
|
|
|
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);
|
2002-01-29 09:38:09 +00:00
|
|
|
fdui->text_warning = obj = fl_add_text(FL_NORMAL_TEXT, 20, 90, 210, 30, "");
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
|
2001-03-16 15:15:32 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
|
|
|
fdui->form->fdui = fdui;
|
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
2002-03-21 21:52:48 +00:00
|
|
|
|