mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 06:03:36 +00:00
1bfe247634
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2752 a592a061-630c-0410-9148-cb99ea01b6c8
112 lines
4.2 KiB
C
112 lines
4.2 KiB
C
// 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"
|
|
#include "FormRef.h"
|
|
|
|
FD_form_ref::~FD_form_ref()
|
|
{
|
|
if ( form->visible ) fl_hide_form( form );
|
|
fl_free_form( form );
|
|
}
|
|
|
|
|
|
FD_form_ref * FormRef::build_ref()
|
|
{
|
|
FL_OBJECT *obj;
|
|
FD_form_ref *fdui = new FD_form_ref;
|
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 530, 340);
|
|
fdui->form->u_vdata = this;
|
|
obj = fl_add_box(FL_UP_BOX, 0, 0, 530, 340, "");
|
|
fdui->browser = obj = fl_add_browser(FL_HOLD_BROWSER, 10, 10, 270, 240, "");
|
|
fl_set_object_lalign(obj, FL_ALIGN_TOP);
|
|
fl_set_object_gravity(obj, FL_NorthWest, FL_South);
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
|
{
|
|
char const * const dummy = N_("Update|#U");
|
|
fdui->button_update = obj = fl_add_button(FL_NORMAL_BUTTON, 10, 260, 90, 30, idex(_(dummy)));
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
}
|
|
fl_set_object_gravity(obj, FL_SouthWest, FL_SouthWest);
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
|
{
|
|
char const * const dummy = N_("Sort|#S");
|
|
fdui->sort = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 110, 260, 30, 30, idex(_(dummy)));
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
}
|
|
fl_set_object_lalign(obj, FL_ALIGN_RIGHT);
|
|
fl_set_object_gravity(obj, FL_SouthWest, FL_SouthWest);
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
|
{
|
|
char const * const dummy = N_("Name:|#N");
|
|
fdui->name = obj = fl_add_input(FL_NORMAL_INPUT, 370, 10, 150, 40, idex(_(dummy)));
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
}
|
|
fl_set_object_gravity(obj, FL_NorthEast, FL_NorthEast);
|
|
fdui->ref = obj = fl_add_input(FL_NORMAL_INPUT, 370, 60, 150, 40, _("Ref:"));
|
|
fl_set_object_gravity(obj, FL_NorthEast, FL_NorthEast);
|
|
{
|
|
char const * const dummy = N_("Reference type|#R");
|
|
fdui->type = obj = fl_add_choice(FL_NORMAL_CHOICE, 340, 140, 140, 40, idex(_(dummy)));
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 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);
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
|
{
|
|
char const * const dummy = N_("Goto reference|#G");
|
|
fdui->button_go = obj = fl_add_button(FL_NORMAL_BUTTON, 340, 200, 140, 40, idex(_(dummy)));
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
}
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
|
fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 230, 300, 90, 30, _("OK"));
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
|
fl_set_object_callback(obj, C_FormBaseOKCB, 0);
|
|
{
|
|
char const * const dummy = N_("Cancel|^[");
|
|
fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 430, 300, 90, 30, idex(_(dummy)));
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
}
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
|
fl_set_object_callback(obj, C_FormBaseCancelCB, 0);
|
|
{
|
|
char const * const dummy = N_("Apply|#A");
|
|
fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 330, 300, 90, 30, idex(_(dummy)));
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
}
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
|
fl_set_object_callback(obj, C_FormBaseApplyCB, 0);
|
|
{
|
|
char const * const dummy = N_("Restore|#R");
|
|
fdui->button_restore = obj = fl_add_button(FL_NORMAL_BUTTON, 10, 300, 90, 30, idex(_(dummy)));
|
|
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);
|
|
{
|
|
char const * const dummy = N_("Buffer|#B");
|
|
fdui->buffer = obj = fl_add_choice(FL_NORMAL_CHOICE, 190, 260, 100, 30, idex(_(dummy)));
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
}
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
fl_set_object_lalign(obj, FL_ALIGN_RIGHT);
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
|
fl_end_form();
|
|
|
|
fdui->form->fdui = fdui;
|
|
|
|
return fdui;
|
|
}
|
|
/*---------------------------------------*/
|
|
|