2001-02-20 13:34:05 +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-02-20 13:34:05 +00:00
|
|
|
#include "gettext.h"
|
|
|
|
|
|
|
|
/* Form definition file generated with fdesign. */
|
|
|
|
|
|
|
|
#include FORMS_H_LOCATION
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "form_preamble.h"
|
|
|
|
#include "FormPreamble.h"
|
|
|
|
|
|
|
|
FD_form_preamble::~FD_form_preamble()
|
|
|
|
{
|
|
|
|
if ( form->visible ) fl_hide_form( form );
|
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
FD_form_preamble * FormPreamble::build_preamble()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_preamble *fdui = new FD_form_preamble;
|
|
|
|
|
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 380, 420);
|
|
|
|
fdui->form->u_vdata = this;
|
|
|
|
obj = fl_add_box(FL_UP_BOX, 0, 0, 380, 420, "");
|
|
|
|
{
|
|
|
|
char const * const dummy = N_("OK|#O");
|
|
|
|
fdui->button_ok = obj = fl_add_button(FL_NORMAL_BUTTON, 50, 380, 100, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2001-03-27 16:03:28 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseOKCB, 0);
|
2001-02-20 13:34:05 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Apply|#A");
|
|
|
|
fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 160, 380, 100, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2001-03-27 16:03:28 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseApplyCB, 0);
|
2001-02-20 13:34:05 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Cancel|^[");
|
2002-03-12 14:11:15 +00:00
|
|
|
fdui->button_close = obj = fl_add_button(FL_NORMAL_BUTTON, 270, 380, 100, 30, idex(_(dummy)));
|
2001-02-20 13:34:05 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2001-03-27 16:03:28 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseCancelCB, 0);
|
2001-02-20 13:34:05 +00:00
|
|
|
fdui->input_preamble = obj = fl_add_input(FL_MULTILINE_INPUT, 10, 10, 360, 360, "");
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_gravity(obj, FL_NorthWest, FL_SouthEast);
|
2001-03-27 16:03:28 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-02-20 13:34:05 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
|
|
|
fdui->form->fdui = fdui;
|
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
2002-03-21 21:52:48 +00:00
|
|
|
|