2000-07-28 04:59:45 +00:00
|
|
|
// File modified by fdfix.sh for use by lyx (with xforms >= 0.88) and gettext
|
2000-07-07 07:46:37 +00:00
|
|
|
#include <config.h>
|
|
|
|
#include "lyx_gui_misc.h"
|
|
|
|
#include "gettext.h"
|
|
|
|
|
|
|
|
/* Form definition file generated with fdesign. */
|
|
|
|
|
|
|
|
#include FORMS_H_LOCATION
|
|
|
|
#include <stdlib.h>
|
2000-07-13 15:03:34 +00:00
|
|
|
#include "form_citation.h"
|
2000-08-14 05:24:35 +00:00
|
|
|
#include "FormCitation.h"
|
|
|
|
|
|
|
|
FD_form_citation::~FD_form_citation()
|
|
|
|
{
|
|
|
|
if( form->visible ) fl_hide_form( form );
|
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
2000-07-07 07:46:37 +00:00
|
|
|
|
|
|
|
FD_form_citation * FormCitation::build_citation()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_citation *fdui = new FD_form_citation;
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 435, 665);
|
|
|
|
fdui->form->u_vdata = this;
|
|
|
|
fdui->box = obj = fl_add_box(FL_UP_BOX, 0, 0, 435, 665, "");
|
2000-07-07 07:46:37 +00:00
|
|
|
fl_set_object_resize(obj, FL_RESIZE_X);
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->citeBrsr = obj = fl_add_browser(FL_HOLD_BROWSER, 10, 30, 180, 300, _("Inset keys"));
|
2000-07-07 07:46:37 +00:00
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_X);
|
2000-08-02 05:54:58 +00:00
|
|
|
fl_set_object_callback(obj, C_FormCommandInputCB, CITEBRSR);
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->bibBrsr = obj = fl_add_browser(FL_HOLD_BROWSER, 240, 30, 180, 300, _("Bibliography keys"));
|
2000-07-07 07:46:37 +00:00
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_X);
|
2000-08-02 05:54:58 +00:00
|
|
|
fl_set_object_callback(obj, C_FormCommandInputCB, BIBBRSR);
|
2000-07-19 08:37:26 +00:00
|
|
|
fdui->addBtn = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 30, 30, 30, _("@4->"));
|
2000-07-07 07:46:37 +00:00
|
|
|
fl_set_object_resize(obj, FL_RESIZE_NONE);
|
2000-08-02 05:54:58 +00:00
|
|
|
fl_set_object_callback(obj, C_FormCommandInputCB, ADD);
|
2000-07-19 08:37:26 +00:00
|
|
|
fdui->delBtn = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 65, 30, 30, _("@9+"));
|
2000-07-07 07:46:37 +00:00
|
|
|
fl_set_object_resize(obj, FL_RESIZE_NONE);
|
2000-08-02 05:54:58 +00:00
|
|
|
fl_set_object_callback(obj, C_FormCommandInputCB, DELETE);
|
2000-07-19 08:37:26 +00:00
|
|
|
fdui->upBtn = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 100, 30, 30, _("@8->"));
|
2000-07-07 07:46:37 +00:00
|
|
|
fl_set_object_resize(obj, FL_RESIZE_NONE);
|
2000-08-02 05:54:58 +00:00
|
|
|
fl_set_object_callback(obj, C_FormCommandInputCB, UP);
|
2000-07-19 08:37:26 +00:00
|
|
|
fdui->downBtn = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 135, 30, 30, _("@2->"));
|
2000-07-07 07:46:37 +00:00
|
|
|
fl_set_object_resize(obj, FL_RESIZE_NONE);
|
2000-08-02 05:54:58 +00:00
|
|
|
fl_set_object_callback(obj, C_FormCommandInputCB, DOWN);
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->infoBrsr = obj = fl_add_browser(FL_NORMAL_BROWSER, 10, 360, 410, 80, _("Info"));
|
2000-07-07 07:46:37 +00:00
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_X);
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->style = obj = fl_add_choice(FL_NORMAL_CHOICE, 160, 470, 130, 30, _("Citation style"));
|
2000-07-07 07:46:37 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_DOWN_BOX);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_X);
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->textBefore = obj = fl_add_input(FL_NORMAL_INPUT, 100, 520, 250, 30, _("Text before"));
|
2000-07-07 07:46:37 +00:00
|
|
|
fl_set_object_resize(obj, FL_RESIZE_X);
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->textAftr = obj = fl_add_input(FL_NORMAL_INPUT, 100, 570, 250, 30, _("Text after"));
|
2000-07-07 07:46:37 +00:00
|
|
|
fl_set_object_resize(obj, FL_RESIZE_X);
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->ok = obj = fl_add_button(FL_RETURN_BUTTON, 230, 630, 90, 30, _("OK"));
|
2000-07-07 07:46:37 +00:00
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2000-08-02 05:54:58 +00:00
|
|
|
fl_set_object_callback(obj, C_FormCommandOKCB, 0);
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 330, 630, 90, 30, _("Cancel"));
|
2000-07-07 07:46:37 +00:00
|
|
|
fl_set_button_shortcut(obj, _("^["), 1);
|
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2000-08-02 05:54:58 +00:00
|
|
|
fl_set_object_callback(obj, C_FormCommandCancelCB, 0);
|
2000-07-07 07:46:37 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->fdui = fdui;
|
2000-07-07 07:46:37 +00:00
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|