2000-08-08 15:36:25 +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"
|
2000-08-08 15:36:25 +00:00
|
|
|
#include "gettext.h"
|
|
|
|
|
|
|
|
/* Form definition file generated with fdesign. */
|
|
|
|
|
|
|
|
#include FORMS_H_LOCATION
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "form_ref.h"
|
2000-08-14 05:24:35 +00:00
|
|
|
#include "FormRef.h"
|
|
|
|
|
|
|
|
FD_form_ref::~FD_form_ref()
|
|
|
|
{
|
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-08-08 15:36:25 +00:00
|
|
|
|
|
|
|
FD_form_ref * FormRef::build_ref()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_ref *fdui = new FD_form_ref;
|
|
|
|
|
2001-09-18 10:58:35 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 530, 380);
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->u_vdata = this;
|
2001-09-18 10:58:35 +00:00
|
|
|
obj = fl_add_box(FL_UP_BOX, 0, 0, 530, 380, "");
|
2001-09-24 16:37:24 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Buffer|#B");
|
|
|
|
fdui->choice_buffer = obj = fl_add_choice(FL_NORMAL_CHOICE, 105, 10, 350, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
|
|
|
fdui->browser_refs = obj = fl_add_browser(FL_HOLD_BROWSER, 10, 50, 270, 240, "");
|
2000-10-26 09:36:33 +00:00
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_TOP);
|
2000-11-29 15:06:42 +00:00
|
|
|
fl_set_object_gravity(obj, FL_NorthWest, FL_South);
|
2001-03-26 13:16:57 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Update|#U");
|
2001-11-21 17:03:13 +00:00
|
|
|
fdui->button_update = obj = fl_add_button(FL_NORMAL_BUTTON, 10, 300, 100, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-11-29 15:06:42 +00:00
|
|
|
fl_set_object_gravity(obj, FL_SouthWest, FL_SouthWest);
|
2001-03-26 13:16:57 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Sort|#S");
|
2001-11-21 17:03:13 +00:00
|
|
|
fdui->check_sort = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 130, 300, 30, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-08 15:36:25 +00:00
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_RIGHT);
|
2000-11-29 15:06:42 +00:00
|
|
|
fl_set_object_gravity(obj, FL_SouthWest, FL_SouthWest);
|
2001-03-26 13:16:57 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Name:|#N");
|
2001-09-24 16:37:24 +00:00
|
|
|
fdui->input_name = obj = fl_add_input(FL_NORMAL_INPUT, 370, 50, 150, 40, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-08 15:36:25 +00:00
|
|
|
fl_set_object_gravity(obj, FL_NorthEast, FL_NorthEast);
|
2001-09-24 16:37:24 +00:00
|
|
|
fdui->input_ref = obj = fl_add_input(FL_NORMAL_INPUT, 370, 100, 150, 40, _("Ref:"));
|
2000-08-08 15:36:25 +00:00
|
|
|
fl_set_object_gravity(obj, FL_NorthEast, FL_NorthEast);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Reference type|#R");
|
2001-09-24 16:37:24 +00:00
|
|
|
fdui->choice_type = obj = fl_add_choice(FL_NORMAL_CHOICE, 370, 170, 150, 40, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-08 15:36:25 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_TOP);
|
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2001-03-26 13:16:57 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Goto reference|#G");
|
2001-09-18 10:58:35 +00:00
|
|
|
fdui->button_go = obj = fl_add_button(FL_NORMAL_BUTTON, 370, 220, 150, 40, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-08 15:36:25 +00:00
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2001-03-26 13:16:57 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-09-24 16:37:24 +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, 10, 340, 100, 30, idex(_(dummy)));
|
2001-09-24 16:37:24 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseRestoreCB, 0);
|
2001-09-18 10:58:35 +00:00
|
|
|
fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 230, 340, 90, 30, _("OK"));
|
2000-08-08 15:36:25 +00:00
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2001-03-26 13:16:57 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseOKCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-02-14 10:30:46 +00:00
|
|
|
char const * const dummy = N_("Cancel|^[");
|
2001-09-18 10:58:35 +00:00
|
|
|
fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 430, 340, 90, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-08 15:36:25 +00:00
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2001-03-26 13:16:57 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseCancelCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Apply|#A");
|
2001-09-18 10:58:35 +00:00
|
|
|
fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 330, 340, 90, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-11-29 15:06:42 +00:00
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2001-03-26 13:16:57 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseApplyCB, 0);
|
2000-08-08 15:36:25 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->fdui = fdui;
|
2000-08-08 15:36:25 +00:00
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|