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-27 12:22:41 +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>
|
|
|
|
#include "form_url.h"
|
2000-08-14 05:24:35 +00:00
|
|
|
#include "FormUrl.h"
|
|
|
|
|
|
|
|
FD_form_url::~FD_form_url()
|
|
|
|
{
|
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-07-27 12:22:41 +00:00
|
|
|
|
|
|
|
FD_form_url * FormUrl::build_url()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_url *fdui = new FD_form_url;
|
|
|
|
|
2000-11-28 06:46:06 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 520, 170);
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->u_vdata = this;
|
2000-11-28 06:46:06 +00:00
|
|
|
obj = fl_add_box(FL_UP_BOX, 0, 0, 520, 170, "");
|
|
|
|
fdui->url = obj = fl_add_input(FL_NORMAL_INPUT, 70, 50, 440, 30, idex(_("URL|#U")));
|
2000-10-26 09:36:33 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_("URL|#U")), 1);
|
2000-07-27 12:22:41 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_gravity(obj, FL_NorthWest, FL_NorthEast);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_X);
|
2000-11-28 06:46:06 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
|
|
|
fdui->name = obj = fl_add_input(FL_NORMAL_INPUT, 70, 90, 440, 30, idex(_("Name|#N")));
|
2000-10-26 09:36:33 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_("Name|#N")), 1);
|
2000-07-27 12:22:41 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_gravity(obj, FL_NorthWest, FL_NorthEast);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_X);
|
2000-11-28 06:46:06 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
|
|
|
fdui->radio_html = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 480, 10, 30, 30, idex(_("HTML type|#H")));
|
2000-07-27 12:22:41 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_("HTML type|#H")), 1);
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-11-28 06:46:06 +00:00
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT);
|
2000-07-27 12:22:41 +00:00
|
|
|
fl_set_object_gravity(obj, FL_NorthWest, FL_NorthEast);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_X);
|
2000-11-28 06:46:06 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
|
|
|
fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 410, 130, 100, 30, idex(_("Cancel|#C^[")));
|
2000-10-26 09:36:33 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_("Cancel|#C^[")), 1);
|
2000-07-27 12:22:41 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2000-10-02 00:10:25 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseCancelCB, 0);
|
2000-11-28 06:46:06 +00:00
|
|
|
fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 190, 130, 100, 30, _("OK"));
|
2000-07-27 12:22:41 +00:00
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2000-10-02 00:10:25 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseOKCB, 0);
|
2000-11-28 06:46:06 +00:00
|
|
|
fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 300, 130, 100, 30, idex(_("Apply|#A")));
|
|
|
|
fl_set_button_shortcut(obj, scex(_("Apply|#A")), 1);
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseApplyCB, 0);
|
|
|
|
fdui->button_restore = obj = fl_add_button(FL_NORMAL_BUTTON, 10, 130, 100, 30, idex(_("Restore|#R")));
|
|
|
|
fl_set_button_shortcut(obj, scex(_("Restore|#R")), 1);
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseRestoreCB, 0);
|
2000-07-27 12:22:41 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->fdui = fdui;
|
2000-07-27 12:22:41 +00:00
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|