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>
|
|
|
|
#include "lyx_gui_misc.h"
|
|
|
|
#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()
|
|
|
|
{
|
|
|
|
if( form->visible ) fl_hide_form( form );
|
|
|
|
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;
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 530, 340);
|
|
|
|
fdui->form->u_vdata = this;
|
2000-08-08 15:36:25 +00:00
|
|
|
obj = fl_add_box(FL_UP_BOX, 0, 0, 530, 340, "");
|
|
|
|
fdui->browser = obj = fl_add_browser(FL_HOLD_BROWSER, 10, 10, 270, 280, "");
|
|
|
|
fl_set_object_gravity(obj, FL_NorthWest, FL_NoGravity);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_X);
|
2000-09-27 05:40:29 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 2);
|
2000-08-08 15:36:25 +00:00
|
|
|
fdui->update = obj = fl_add_button(FL_NORMAL_BUTTON, 40, 300, 90, 30, _("Update"));
|
|
|
|
fl_set_button_shortcut(obj, scex(_("Update|#U#u")), 1);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_NONE);
|
2000-09-27 05:40:29 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 3);
|
2000-08-08 15:36:25 +00:00
|
|
|
fdui->sort = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 170, 300, 30, 30, _("Sort"));
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_RIGHT);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_NONE);
|
2000-09-27 05:40:29 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 3);
|
2000-08-08 15:36:25 +00:00
|
|
|
fdui->name = obj = fl_add_input(FL_NORMAL_INPUT, 370, 10, 150, 40, _("Name:"));
|
|
|
|
fl_set_object_gravity(obj, FL_NorthEast, FL_NorthEast);
|
|
|
|
fdui->ref = obj = fl_add_input(FL_NORMAL_INPUT, 370, 60, 150, 40, _("Reference:"));
|
|
|
|
fl_set_object_gravity(obj, FL_NorthEast, FL_NorthEast);
|
|
|
|
fdui->type = obj = fl_add_choice(FL_NORMAL_CHOICE, 340, 140, 140, 40, _("Reference type"));
|
|
|
|
fl_set_object_shortcut(obj, scex(_("Reference type|#t")), 1);
|
|
|
|
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);
|
2000-09-27 05:40:29 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 4);
|
2000-08-08 15:36:25 +00:00
|
|
|
fdui->go = obj = fl_add_button(FL_NORMAL_BUTTON, 340, 200, 140, 40, _("Goto reference"));
|
|
|
|
fl_set_button_shortcut(obj, scex(_("Goto reference|#G")), 1);
|
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2000-09-27 05:40:29 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 1);
|
2000-08-08 15:36:25 +00:00
|
|
|
fdui->ok = obj = fl_add_button(FL_RETURN_BUTTON, 330, 300, 90, 30, _("OK"));
|
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2000-09-27 05:40:29 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseApplyHideCB, 0);
|
2000-08-08 15:36:25 +00:00
|
|
|
fdui->cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 430, 300, 90, 30, _("Cancel"));
|
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2000-09-27 05:40:29 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseHideCB, 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;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|