2000-08-02 05:54:58 +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_toc.h"
|
2000-08-14 05:24:35 +00:00
|
|
|
#include "FormToc.h"
|
|
|
|
|
|
|
|
FD_form_toc::~FD_form_toc()
|
|
|
|
{
|
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-02 05:54:58 +00:00
|
|
|
|
|
|
|
FD_form_toc * FormToc::build_toc()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_toc *fdui = new FD_form_toc;
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 420, 340);
|
|
|
|
fdui->form->u_vdata = this;
|
2000-08-02 05:54:58 +00:00
|
|
|
obj = fl_add_box(FL_UP_BOX, 0, 0, 420, 340, "");
|
2000-11-28 06:46:06 +00:00
|
|
|
fdui->browser_toc = obj = fl_add_browser(FL_HOLD_BROWSER, 10, 10, 400, 280, "");
|
2000-08-02 05:54:58 +00:00
|
|
|
fl_set_object_gravity(obj, FL_NorthWest, FL_SouthEast);
|
2000-11-28 06:46:06 +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");
|
|
|
|
fdui->button_update = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 300, 100, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-02 05:54:58 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2000-11-28 06:46:06 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Type|#T");
|
|
|
|
fdui->choice_toc_type = obj = fl_add_choice(FL_NORMAL_CHOICE, 60, 300, 130, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-02 05:54:58 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2000-11-28 06:46:06 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-02-14 10:30:46 +00:00
|
|
|
char const * const dummy = N_("Close|^[^M");
|
2000-12-06 22:24:17 +00:00
|
|
|
fdui->button_cancel = obj = fl_add_button(FL_RETURN_BUTTON, 310, 300, 100, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-11-28 06:46:06 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseCancelCB, 0);
|
2000-08-02 05:54:58 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->fdui = fdui;
|
2000-08-02 05:54:58 +00:00
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|