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
This commit is contained in:
Angus Leeming 2001-09-11 11:15:33 +00:00
parent e4c58b72be
commit d75ce75b25
4 changed files with 18 additions and 8 deletions

View 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

View 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);

View 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"));

View 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