]> git.lyx.org Git - features.git/commitdiff
Activate Ok, Apply buttons when altering all widgets appropriately.
authorAngus Leeming <leeming@lyx.org>
Tue, 11 Sep 2001 11:15:33 +0000 (11:15 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 11 Sep 2001 11:15:33 +0000 (11:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2723 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/FormGraphics.C
src/frontends/xforms/form_graphics.C
src/frontends/xforms/forms/form_graphics.fd

index 45bb0e501d9db39eae1fde78b5eb1c7b677cb6b2..146c2684f2eaa528fa6c0b984e81fb06218e0337 100644 (file)
@@ -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  <j.spitzmueller@gmx.de>
 
        * forms/form_paragraph.fd: cosmetics (renamed "Label Width" to "Longest
index a19b8309aa7eb618fde3262521ce4d63b4fbce1a..a77ae85884bf0949c479796861f56f2d8f5709ee 100644 (file)
@@ -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);
index 765b5513ef1ef1769c4f68485190bd730b2f918e..32b3a06744b8806a653a57449d1b2e6ead4f949e 100644 (file)
@@ -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"));
index 49720b2a1a79b4e8fa0aeedd00410c8554cde987..b394fd3e8d79253973358763b3dc08f954bdbb34 100644 (file)
@@ -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