]> git.lyx.org Git - features.git/commitdiff
Small fixes to the BibTeX form
authorAngus Leeming <leeming@lyx.org>
Tue, 21 Aug 2001 13:33:25 +0000 (13:33 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 21 Aug 2001 13:33:25 +0000 (13:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2567 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/FormBibtex.C
src/frontends/xforms/form_bibtex.C
src/frontends/xforms/forms/form_bibtex.fd

index 2f1514cc979ba9e409c39922586e74ba008d985c..37979deee894f786c1c184cc95b1066c91f07aac 100644 (file)
@@ -1,3 +1,12 @@
+2001-08-21  Herbert Voss  <voss@perce.de>
+
+       * FormBibtex.C (input): extension handling for ".bst"
+
+2001-08-21  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * forms/form_bibtex.fd: activate "Ok" when the "Add bibliography to TOC"
+       check button is pressed.
+
 2001-08-20  Dekel Tsur  <dekelts@tau.ac.il>
 
        * FormParagraph.C (general_apply): Handle default spacing.
index 95806be52b5db0885c6c3cedf41cbf458132ab99..f2fb0f9c8de87139efa6aa97621f3613af2ec1d6 100644 (file)
@@ -58,12 +58,12 @@ ButtonPolicy::SMInput FormBibtex::input(FL_OBJECT * ob, long)
                                            "Select Database",
                                            "*.bib| BibTeX Databases (*.bib)");
                if (!out_name.empty()) {
-                       if (suffixIs(out_name,".bib")) {
-                               // to prevent names like xxxbib.bib
-                               // latex needs it without suffix
+                       out_name = OnlyFilename(out_name); 
+                       if (suffixIs(out_name,".bst")) {
+                               // to prevent names like xxxbst.bst
                                out_name = ChangeExtension(out_name,"");
                        }
-    
+   
                        fl_freeze_form(form()); 
                        fl_set_input(dialog_->database, out_name.c_str());
                        fl_unfreeze_form(form()); 
index 33e207e234cac1bd75c50f43780ce59b3a42e75f..aa48b1b53e580633cc7d28e358fde56c8371878f 100644 (file)
@@ -61,8 +61,12 @@ FD_form_bibtex * FormBibtex::build_bibtex()
     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
   }
     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
-  fdui->radio_bibtotoc = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 90, 90, 30, 30, _("Add bibliography to TOC"));
-    fl_set_button_shortcut(obj, _("T"), 1);
+  {
+    char const * const dummy = N_("Add bibliography to TOC|#A");
+    fdui->radio_bibtotoc = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 90, 90, 30, 30, idex(_(dummy)));
+    fl_set_button_shortcut(obj, scex(_(dummy)), 1);
+  }
+    fl_set_object_callback(obj, C_FormBaseInputCB, 0);
   fl_end_form();
 
   fdui->form->fdui = fdui;
index f04b2d7496405f86289a00d916969a891392f324..228bc433b0e2afc97719892bf8854700464bcc2f 100644 (file)
@@ -149,13 +149,13 @@ alignment: FL_ALIGN_CENTER
 style: FL_NORMAL_STYLE
 size: FL_DEFAULT_SIZE
 lcol: FL_BLACK
-label: Add bibliography to TOC
-shortcut: T
+label: Add bibliography to TOC|#A
+shortcut: 
 resize: FL_RESIZE_ALL
 gravity: FL_NoGravity FL_NoGravity
 name: radio_bibtotoc
-callback: 
-argument: 
+callback: C_FormBaseInputCB
+argument: 0
 
 ==============================
 create_the_forms