From: Angus Leeming Date: Tue, 11 Sep 2001 08:46:30 +0000 (+0000) Subject: In the Document dialog, enable the "Author-Year/Numerical" citation choice X-Git-Tag: 1.6.10~20632 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e670bed4c51cf9b523a33520056206a9246dc467;p=features.git In the Document dialog, enable the "Author-Year/Numerical" citation choice only when the "Use natbib" checkbox is active. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2720 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index ba10bfb157..45bb0e501d 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,6 +1,8 @@ -2001-09-10 Angus Leeming +2001-09-11 Angus Leeming - * FormMathsBitmap (build): fix memory leak. + * FormDocument.C (input, options_update): add code to enable the + Author-Year/Numerical citation choice only if the natbib checkbox is + active. 2001-09-08 Jürgen Spitzmüller diff --git a/src/frontends/xforms/FormDocument.C b/src/frontends/xforms/FormDocument.C index 9e1bc808f4..8b9be3c473 100644 --- a/src/frontends/xforms/FormDocument.C +++ b/src/frontends/xforms/FormDocument.C @@ -345,7 +345,12 @@ bool FormDocument::input( FL_OBJECT * ob, long data ) default: break; } - + + if (ob == options_->check_use_natbib) { + setEnabled(options_->choice_citation_format, + fl_get_button(options_->check_use_natbib)); + } + switch (data) { case INPUT: case CHECKCHOICECLASS: @@ -721,6 +726,7 @@ void FormDocument::options_update(BufferParams const & params) fl_set_button(options_->check_use_natbib, params.use_natbib); fl_set_choice(options_->choice_citation_format, int(params.use_numerical_citations)+1); + setEnabled(options_->choice_citation_format, params.use_natbib); fl_set_counter_value(options_->slider_secnumdepth, params.secnumdepth); fl_set_counter_value(options_->slider_tocdepth, params.tocdepth); if (!params.float_placement.empty())