2001-02-12 14:09:09 +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-12 14:09:09 +00:00
|
|
|
#include "gettext.h"
|
|
|
|
|
|
|
|
/* Form definition file generated with fdesign. */
|
|
|
|
|
|
|
|
#include FORMS_H_LOCATION
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "form_bibtex.h"
|
|
|
|
#include "FormBibtex.h"
|
|
|
|
|
|
|
|
FD_form_bibtex::~FD_form_bibtex()
|
|
|
|
{
|
|
|
|
if ( form->visible ) fl_hide_form( form );
|
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
FD_form_bibtex * FormBibtex::build_bibtex()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_bibtex *fdui = new FD_form_bibtex;
|
|
|
|
|
2001-08-20 13:41:06 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 450, 170);
|
2001-02-12 14:09:09 +00:00
|
|
|
fdui->form->u_vdata = this;
|
2001-08-20 13:41:06 +00:00
|
|
|
obj = fl_add_box(FL_UP_BOX, 0, 0, 450, 170, "");
|
2001-02-12 14:09:09 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Database:|#D");
|
2001-11-21 17:03:13 +00:00
|
|
|
fdui->database = obj = fl_add_input(FL_NORMAL_INPUT, 90, 10, 245, 30, idex(_(dummy)));
|
2001-02-12 14:09:09 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-19 16:37:01 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-08-20 13:41:06 +00:00
|
|
|
fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 250, 130, 90, 30, _("OK"));
|
2001-02-12 14:09:09 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-19 16:37:01 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseOKCB, 3);
|
2001-02-12 14:09:09 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Cancel|^[");
|
2001-08-20 13:41:06 +00:00
|
|
|
fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 350, 130, 90, 30, idex(_(dummy)));
|
2001-02-12 14:09:09 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-19 16:37:01 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseCancelCB, 2);
|
2001-02-12 14:09:09 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Style:|#S");
|
2001-11-21 17:03:13 +00:00
|
|
|
fdui->style = obj = fl_add_input(FL_NORMAL_INPUT, 90, 50, 245, 30, idex(_(dummy)));
|
2001-02-12 14:09:09 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-19 16:37:01 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-08-20 15:44:24 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Browse...|#B");
|
2001-11-21 17:03:13 +00:00
|
|
|
fdui->database_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 340, 10, 100, 29, idex(_(dummy)));
|
2001-08-20 15:44:24 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
|
|
|
{
|
|
|
|
char const * const dummy = N_("Browse...|#r");
|
2001-11-21 17:03:13 +00:00
|
|
|
fdui->style_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 340, 50, 100, 30, idex(_(dummy)));
|
2001-08-20 15:44:24 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-08-21 13:33:25 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Add bibliography to TOC|#A");
|
|
|
|
fdui->radio_bibtotoc = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 90, 90, 30, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-02-12 14:09:09 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
|
|
|
fdui->form->fdui = fdui;
|
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|