From d75ce75b259de5947dd317fdf7c554ccb1112383 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Tue, 11 Sep 2001 11:15:33 +0000 Subject: [PATCH] Activate Ok, Apply buttons when altering all widgets appropriately. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2723 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/ChangeLog | 4 ++++ src/frontends/xforms/FormGraphics.C | 2 ++ src/frontends/xforms/form_graphics.C | 4 ++++ src/frontends/xforms/forms/form_graphics.fd | 16 ++++++++-------- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index 45bb0e501d..146c2684f2 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -4,6 +4,10 @@ Author-Year/Numerical citation choice only if the natbib checkbox is active. + * FormGraphics.C: + * forms/form_graphics.fd: add callbacks to a few widgets that didn't + have them, so enabling the Ok, Apply buttons appropriately. + 2001-09-08 Jürgen Spitzmüller * forms/form_paragraph.fd: cosmetics (renamed "Label Width" to "Longest diff --git a/src/frontends/xforms/FormGraphics.C b/src/frontends/xforms/FormGraphics.C index a19b8309aa..a77ae85884 100644 --- a/src/frontends/xforms/FormGraphics.C +++ b/src/frontends/xforms/FormGraphics.C @@ -58,6 +58,8 @@ void FormGraphics::build() FL_RETURN_CHANGED); fl_set_input_return (dialog_->input_rotate_angle, FL_RETURN_CHANGED); + fl_set_input_return (dialog_->input_subcaption, + FL_RETURN_CHANGED); // Set the maximum characters that can be written in the input texts. fl_set_input_maxchars(dialog_->input_width, WIDTH_MAXDIGITS); diff --git a/src/frontends/xforms/form_graphics.C b/src/frontends/xforms/form_graphics.C index 765b5513ef..32b3a06744 100644 --- a/src/frontends/xforms/form_graphics.C +++ b/src/frontends/xforms/form_graphics.C @@ -90,22 +90,26 @@ FD_form_graphics * FormGraphics::build_graphics() fdui->radio_display_monochrome = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 295, 80, 98, 30, idex(_(dummy))); fl_set_button_shortcut(obj, scex(_(dummy)), 1); } + fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT); fl_set_button(obj, 1); { char const * const dummy = N_("in Grayscale|#G"); fdui->radio_display_grayscale = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 295, 110, 98, 30, idex(_(dummy))); fl_set_button_shortcut(obj, scex(_(dummy)), 1); } + fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT); { char const * const dummy = N_("in Color|#C"); fdui->radio_display_color = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 295, 140, 98, 30, idex(_(dummy))); fl_set_button_shortcut(obj, scex(_(dummy)), 1); } + fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT); { char const * const dummy = N_("Don't display|#D"); fdui->radio_no_display = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 295, 170, 98, 30, idex(_(dummy))); fl_set_button_shortcut(obj, scex(_(dummy)), 1); } + fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT); fl_end_group(); obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 20, 250, 240, 50, _("Rotate")); diff --git a/src/frontends/xforms/forms/form_graphics.fd b/src/frontends/xforms/forms/form_graphics.fd index 49720b2a1a..b394fd3e8d 100644 --- a/src/frontends/xforms/forms/form_graphics.fd +++ b/src/frontends/xforms/forms/form_graphics.fd @@ -443,8 +443,8 @@ shortcut: resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: radio_display_monochrome -callback: -argument: +callback: C_FormBaseInputCB +argument: CHECKINPUT value: 1 -------------------- @@ -462,8 +462,8 @@ shortcut: resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: radio_display_grayscale -callback: -argument: +callback: C_FormBaseInputCB +argument: CHECKINPUT -------------------- class: FL_CHECKBUTTON @@ -480,8 +480,8 @@ shortcut: resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: radio_display_color -callback: -argument: +callback: C_FormBaseInputCB +argument: CHECKINPUT -------------------- class: FL_CHECKBUTTON @@ -498,8 +498,8 @@ shortcut: resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: radio_no_display -callback: -argument: +callback: C_FormBaseInputCB +argument: CHECKINPUT -------------------- class: FL_END_GROUP