2001-02-26 15:17:19 +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_character.h"
|
|
|
|
#include "FormCharacter.h"
|
|
|
|
|
|
|
|
FD_form_character::~FD_form_character()
|
|
|
|
{
|
|
|
|
if ( form->visible ) fl_hide_form( form );
|
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
FD_form_character * FormCharacter::build_character()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_character *fdui = new FD_form_character;
|
|
|
|
|
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 300, 415);
|
|
|
|
fdui->form->u_vdata = this;
|
|
|
|
obj = fl_add_box(FL_UP_BOX, 0, 0, 300, 415, "");
|
|
|
|
fl_set_object_gravity(obj, FL_NorthWest, FL_SouthEast);
|
|
|
|
obj = fl_add_frame(FL_ENGRAVED_FRAME, 10, 10, 280, 240, "");
|
|
|
|
fl_set_object_gravity(obj, FL_NorthWest, FL_NorthEast);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_X);
|
|
|
|
{
|
|
|
|
char const * const dummy = N_("Family:|#F");
|
|
|
|
fdui->choice_family = obj = fl_add_choice(FL_NORMAL_CHOICE, 94, 15, 191, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
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);
|
2001-03-21 13:27:03 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-02-26 15:17:19 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Series:|#S");
|
|
|
|
fdui->choice_series = obj = fl_add_choice(FL_NORMAL_CHOICE, 94, 55, 191, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
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);
|
2001-03-21 13:27:03 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-02-26 15:17:19 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Shape:|#H");
|
|
|
|
fdui->choice_shape = obj = fl_add_choice(FL_NORMAL_CHOICE, 94, 95, 191, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
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);
|
2001-03-21 13:27:03 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-02-26 15:17:19 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Size:|#Z");
|
|
|
|
fdui->choice_size = obj = fl_add_choice(FL_NORMAL_CHOICE, 95, 275, 191, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
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);
|
2001-03-21 13:27:03 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-02-26 15:17:19 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Misc:|#M");
|
|
|
|
fdui->choice_bar = obj = fl_add_choice(FL_NORMAL_CHOICE, 95, 335, 190, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
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);
|
2001-03-21 13:27:03 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-02-26 15:17:19 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Apply|#A");
|
|
|
|
fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 60, 375, 80, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2001-03-21 13:27:03 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseApplyCB, 0);
|
2001-02-26 15:17:19 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Cancel|#N");
|
|
|
|
fdui->button_close = obj = fl_add_button(FL_RETURN_BUTTON, 175, 375, 80, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
|
2001-03-21 13:27:03 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseCancelCB, 0);
|
2001-02-26 15:17:19 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Color:|#C");
|
|
|
|
fdui->choice_color = obj = fl_add_choice(FL_NORMAL_CHOICE, 95, 135, 191, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
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);
|
2001-03-21 13:27:03 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-02-26 15:17:19 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Toggle on all these|#T");
|
|
|
|
fdui->check_toggle_all = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 30, 215, 255, 25, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_gravity(obj, FL_NorthWest, FL_NorthEast);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_X);
|
2001-03-21 13:27:03 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-02-26 15:17:19 +00:00
|
|
|
fdui->choice_language = obj = fl_add_choice(FL_DROPLIST_CHOICE, 95, 175, 190, 30, _("Language:"));
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
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);
|
2001-03-21 13:27:03 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
|
2001-02-26 15:17:19 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 10, 265, 280, 45, _("These are never toggled"));
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
|
|
|
fl_set_object_gravity(obj, FL_NorthWest, FL_NorthEast);
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 10, 325, 280, 45, _("These are always toggled"));
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
|
|
|
fl_set_object_gravity(obj, FL_NorthWest, FL_NorthEast);
|
|
|
|
fl_end_form();
|
|
|
|
|
|
|
|
fdui->form->fdui = fdui;
|
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|