2000-07-28 04:59:45 +00:00
|
|
|
// File modified by fdfix.sh for use by lyx (with xforms >= 0.88) and gettext
|
2000-06-12 11:55:12 +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_preferences.h"
|
2000-08-14 05:24:35 +00:00
|
|
|
#include "FormPreferences.h"
|
|
|
|
|
|
|
|
FD_form_bind::~FD_form_bind()
|
|
|
|
{
|
|
|
|
if( form->visible ) fl_hide_form( form );
|
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
2000-06-12 11:55:12 +00:00
|
|
|
|
|
|
|
FD_form_bind * FormPreferences::build_bind()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_bind *fdui = new FD_form_bind;
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 450, 320);
|
|
|
|
fdui->form->u_vdata = this;
|
2000-07-28 04:59:45 +00:00
|
|
|
obj = fl_add_box(FL_FLAT_BOX, 0, 0, 450, 320, "");
|
|
|
|
fdui->input_bind = obj = fl_add_input(FL_NORMAL_INPUT, 145, 80, 190, 30, _("Bind file"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->button_bind_file_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 335, 80, 80, 30, _("Browse..."));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_end_form();
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->fdui = fdui;
|
2000-06-12 11:55:12 +00:00
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
FD_form_misc::~FD_form_misc()
|
|
|
|
{
|
|
|
|
if( form->visible ) fl_hide_form( form );
|
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-06-12 11:55:12 +00:00
|
|
|
FD_form_misc * FormPreferences::build_misc()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_misc *fdui = new FD_form_misc;
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 450, 320);
|
|
|
|
fdui->form->u_vdata = this;
|
2000-07-28 04:59:45 +00:00
|
|
|
obj = fl_add_box(FL_FLAT_BOX, 0, 0, 450, 320, "");
|
2000-06-12 11:55:12 +00:00
|
|
|
fdui->check_banner = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 20, 30, 240, 30, _("Show banner"));
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_button(obj, 1);
|
|
|
|
fdui->check_auto_region_delete = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 20, 60, 240, 30, _("Auto region delete"));
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_button(obj, 1);
|
|
|
|
fdui->check_exit_confirm = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 20, 90, 240, 30, _("Exit confirmation"));
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_button(obj, 1);
|
|
|
|
fdui->check_display_shortcuts = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 20, 120, 240, 30, _("Display keyboard shortcuts"));
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_button(obj, 1);
|
2000-07-28 04:59:45 +00:00
|
|
|
fdui->counter_autosave = obj = fl_add_counter(FL_NORMAL_COUNTER, 240, 255, 170, 30, _("Autosave interval"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_counter_precision(obj, 0);
|
|
|
|
fl_set_counter_bounds(obj, 0, 1200);
|
|
|
|
fl_set_counter_value(obj, 300);
|
|
|
|
fl_set_counter_step(obj, 1, 1);
|
2000-07-28 04:59:45 +00:00
|
|
|
fdui->counter_line_len = obj = fl_add_counter(FL_NORMAL_COUNTER, 240, 225, 170, 30, _("Ascii line length"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_counter_precision(obj, 0);
|
|
|
|
fl_set_counter_bounds(obj, 0, 120);
|
|
|
|
fl_set_counter_value(obj, 75);
|
|
|
|
fl_set_counter_step(obj, 1, 1);
|
|
|
|
fl_end_form();
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->fdui = fdui;
|
2000-06-12 11:55:12 +00:00
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
FD_form_screen_fonts::~FD_form_screen_fonts()
|
|
|
|
{
|
|
|
|
if( form->visible ) fl_hide_form( form );
|
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-06-12 11:55:12 +00:00
|
|
|
FD_form_screen_fonts * FormPreferences::build_screen_fonts()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_screen_fonts *fdui = new FD_form_screen_fonts;
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 450, 320);
|
|
|
|
fdui->form->u_vdata = this;
|
2000-07-28 04:59:45 +00:00
|
|
|
obj = fl_add_box(FL_FLAT_BOX, 0, 0, 450, 320, "");
|
|
|
|
fdui->input_roman = obj = fl_add_input(FL_NORMAL_INPUT, 210, 5, 200, 30, _("Roman"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_sans = obj = fl_add_input(FL_NORMAL_INPUT, 210, 35, 200, 30, _("Sans Serif"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_typewriter = obj = fl_add_input(FL_NORMAL_INPUT, 210, 65, 200, 30, _("Typewriter"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->counter_zoom = obj = fl_add_counter(FL_NORMAL_COUNTER, 210, 125, 200, 30, _("%"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_RIGHT);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_counter_precision(obj, 0);
|
|
|
|
fl_set_counter_bounds(obj, 0, 999);
|
|
|
|
fl_set_counter_value(obj, 150);
|
|
|
|
fl_set_counter_step(obj, 1, 1);
|
2000-07-28 04:59:45 +00:00
|
|
|
fdui->check_scalable = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 50, 125, 160, 30, _("Allow scaling"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_button(obj, 1);
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->input_screen_encoding = obj = fl_add_input(FL_NORMAL_INPUT, 210, 95, 200, 30, _("Encoding"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_tiny = obj = fl_add_input(FL_FLOAT_INPUT, 140, 165, 70, 30, _("tiny"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_script = obj = fl_add_input(FL_FLOAT_INPUT, 340, 165, 70, 30, _("script"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_footnote = obj = fl_add_input(FL_FLOAT_INPUT, 140, 195, 70, 30, _("footnote"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_small = obj = fl_add_input(FL_FLOAT_INPUT, 340, 195, 70, 30, _("small"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_large = obj = fl_add_input(FL_FLOAT_INPUT, 340, 225, 70, 30, _("large"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_larger = obj = fl_add_input(FL_FLOAT_INPUT, 140, 255, 70, 30, _("larger"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_largest = obj = fl_add_input(FL_FLOAT_INPUT, 340, 255, 70, 30, _("largest"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_normal = obj = fl_add_input(FL_FLOAT_INPUT, 140, 225, 70, 30, _("normal"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_huge = obj = fl_add_input(FL_FLOAT_INPUT, 140, 285, 70, 30, _("huge"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_huger = obj = fl_add_input(FL_FLOAT_INPUT, 340, 285, 70, 30, _("huger"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->fdui = fdui;
|
2000-06-12 11:55:12 +00:00
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
FD_form_interface_fonts::~FD_form_interface_fonts()
|
|
|
|
{
|
|
|
|
if( form->visible ) fl_hide_form( form );
|
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-06-12 11:55:12 +00:00
|
|
|
FD_form_interface_fonts * FormPreferences::build_interface_fonts()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_interface_fonts *fdui = new FD_form_interface_fonts;
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 450, 320);
|
|
|
|
fdui->form->u_vdata = this;
|
2000-07-28 04:59:45 +00:00
|
|
|
obj = fl_add_box(FL_FLAT_BOX, 0, 0, 450, 320, "");
|
|
|
|
fdui->input_popup_font = obj = fl_add_input(FL_NORMAL_INPUT, 215, 50, 200, 30, _("Popup"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_menu_font = obj = fl_add_input(FL_NORMAL_INPUT, 215, 80, 200, 30, _("Menu"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->input_popup_encoding = obj = fl_add_input(FL_NORMAL_INPUT, 215, 110, 200, 30, _("Encoding"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->fdui = fdui;
|
2000-06-12 11:55:12 +00:00
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
FD_form_printer::~FD_form_printer()
|
|
|
|
{
|
|
|
|
if( form->visible ) fl_hide_form( form );
|
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-06-12 11:55:12 +00:00
|
|
|
FD_form_printer * FormPreferences::build_printer()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_printer *fdui = new FD_form_printer;
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 450, 320);
|
|
|
|
fdui->form->u_vdata = this;
|
2000-07-28 04:59:45 +00:00
|
|
|
obj = fl_add_box(FL_FLAT_BOX, 0, 0, 450, 320, "");
|
|
|
|
fdui->input_command = obj = fl_add_input(FL_NORMAL_INPUT, 130, 60, 80, 30, _("command"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_page_range = obj = fl_add_input(FL_NORMAL_INPUT, 130, 90, 80, 30, _("page range"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_copies = obj = fl_add_input(FL_NORMAL_INPUT, 130, 120, 80, 30, _("copies"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_reverse = obj = fl_add_input(FL_NORMAL_INPUT, 130, 150, 80, 30, _("reverse"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_to_printer = obj = fl_add_input(FL_NORMAL_INPUT, 130, 180, 80, 30, _("to printer"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_file_extension = obj = fl_add_input(FL_NORMAL_INPUT, 130, 210, 80, 30, _("file extension"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_spool_command = obj = fl_add_input(FL_NORMAL_INPUT, 130, 240, 80, 30, _("spool command"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_paper_type = obj = fl_add_input(FL_NORMAL_INPUT, 130, 270, 80, 30, _("paper type"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_even_pages = obj = fl_add_input(FL_NORMAL_INPUT, 360, 60, 80, 30, _("even pages"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_odd_pages = obj = fl_add_input(FL_NORMAL_INPUT, 360, 90, 80, 30, _("odd pages"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_collated = obj = fl_add_input(FL_NORMAL_INPUT, 360, 120, 80, 30, _("collated"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_landscape = obj = fl_add_input(FL_NORMAL_INPUT, 360, 150, 80, 30, _("landscape"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_to_file = obj = fl_add_input(FL_NORMAL_INPUT, 360, 180, 80, 30, _("to file"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_extra_options = obj = fl_add_input(FL_NORMAL_INPUT, 360, 210, 80, 30, _("extra options"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_spool_prefix = obj = fl_add_input(FL_NORMAL_INPUT, 360, 240, 80, 30, _("spool printer prefix"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_paper_size = obj = fl_add_input(FL_NORMAL_INPUT, 360, 270, 80, 30, _("paper size"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->input_name = obj = fl_add_input(FL_NORMAL_INPUT, 130, 10, 80, 30, _("name"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->check_adapt_output = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 240, 10, 120, 30, _("adapt output"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->fdui = fdui;
|
2000-06-12 11:55:12 +00:00
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
FD_form_paths::~FD_form_paths()
|
|
|
|
{
|
|
|
|
if( form->visible ) fl_hide_form( form );
|
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-06-12 11:55:12 +00:00
|
|
|
FD_form_paths * FormPreferences::build_paths()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_paths *fdui = new FD_form_paths;
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 450, 320);
|
|
|
|
fdui->form->u_vdata = this;
|
2000-07-28 04:59:45 +00:00
|
|
|
obj = fl_add_box(FL_FLAT_BOX, 0, 0, 450, 320, "");
|
|
|
|
fdui->input_default_path = obj = fl_add_input(FL_NORMAL_INPUT, 170, 10, 170, 30, _("Default path"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->button_document_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 340, 10, 90, 30, _("Browse..."));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fdui->counter_lastfiles = obj = fl_add_counter(FL_NORMAL_COUNTER, 170, 130, 110, 30, _("Last file count"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_counter_precision(obj, 0);
|
|
|
|
fl_set_counter_bounds(obj, 0, 9);
|
|
|
|
fl_set_counter_value(obj, 4);
|
|
|
|
fl_set_counter_step(obj, 1, 1);
|
2000-07-28 04:59:45 +00:00
|
|
|
fdui->input_template_path = obj = fl_add_input(FL_NORMAL_INPUT, 170, 40, 170, 30, _("Template path"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->button_template_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 340, 40, 90, 30, _("Browse..."));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fdui->check_last_files = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 290, 130, 140, 30, _("Check last files"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_button(obj, 1);
|
2000-07-28 04:59:45 +00:00
|
|
|
fdui->input_temp_dir = obj = fl_add_input(FL_NORMAL_INPUT, 170, 70, 170, 30, _("Temp dir"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->button_temp_dir_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 340, 70, 90, 30, _("Browse..."));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fdui->input_lastfiles = obj = fl_add_input(FL_NORMAL_INPUT, 170, 100, 170, 30, _("Lastfiles"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->button_lastfiles_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 340, 100, 90, 30, _("Browse..."));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fdui->check_use_temp_dir = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 35, 70, 50, 30, "");
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_button(obj, 1);
|
2000-07-28 04:59:45 +00:00
|
|
|
fdui->check_make_backups = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 30, 170, 40, 30, "");
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_button(obj, 1);
|
2000-07-28 04:59:45 +00:00
|
|
|
fdui->input_backup_path = obj = fl_add_input(FL_NORMAL_INPUT, 170, 170, 170, 30, _("Backup path"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_object_callback(obj, C_FormPreferencesInputCB, 0);
|
|
|
|
fdui->button_backup_path_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 340, 170, 90, 30, _("Browse..."));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_end_form();
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->fdui = fdui;
|
2000-06-12 11:55:12 +00:00
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
FD_form_preferences::~FD_form_preferences()
|
|
|
|
{
|
|
|
|
if( form->visible ) fl_hide_form( form );
|
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-06-12 11:55:12 +00:00
|
|
|
FD_form_preferences * FormPreferences::build_preferences()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_preferences *fdui = new FD_form_preferences;
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 475, 435);
|
|
|
|
fdui->form->u_vdata = this;
|
|
|
|
obj = fl_add_box(FL_UP_BOX, 0, 0, 475, 435, "");
|
|
|
|
fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 275, 395, 90, 30, idex(_("Apply|#A")));
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_("Apply|#A")), 1);
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_callback(obj, C_FormPreferencesApplyCB, 0);
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 375, 395, 90, 30, idex(_("Cancel|^[")));
|
2000-07-28 04:59:45 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_("Cancel|^[")), 1);
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_callback(obj, C_FormPreferencesCancelCB, 0);
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 175, 395, 90, 30, _("Ok"));
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_callback(obj, C_FormPreferencesOKCB, 0);
|
2000-07-28 04:59:45 +00:00
|
|
|
fdui->tabfolder_prefs = obj = fl_add_tabfolder(FL_TOP_TABFOLDER, 5, 5, 450, 385, "");
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FLAT_BOX);
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->button_restore = obj = fl_add_button(FL_NORMAL_BUTTON, 10, 395, 90, 30, idex(_("Restore|#R")));
|
|
|
|
fl_set_button_shortcut(obj, scex(_("Restore|#R")), 1);
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_callback(obj, C_FormPreferencesRestoreCB, 0);
|
2000-06-12 11:55:12 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->fdui = fdui;
|
2000-06-12 11:55:12 +00:00
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|