]> git.lyx.org Git - features.git/commitdiff
In the Document dialog, enable the "Author-Year/Numerical" citation choice
authorAngus Leeming <leeming@lyx.org>
Tue, 11 Sep 2001 08:46:30 +0000 (08:46 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 11 Sep 2001 08:46:30 +0000 (08:46 +0000)
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

src/frontends/xforms/ChangeLog
src/frontends/xforms/FormDocument.C

index ba10bfb15731ba0800b0170470b5dcbaac0ddcab..45bb0e501d9db39eae1fde78b5eb1c7b677cb6b2 100644 (file)
@@ -1,6 +1,8 @@
-2001-09-10  Angus Leeming  <a.leeming@ic.ac.uk>
+2001-09-11  Angus Leeming  <a.leeming@ic.ac.uk>
 
-       * 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  <j.spitzmueller@gmx.de>
 
index 9e1bc808f46b52d70b3ce575db3c0819d6adc6df..8b9be3c4732edc56d5547a8821055a4edb794cca 100644 (file)
@@ -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())