Small fixes to the BibTeX form

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2567 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2001-08-21 13:33:25 +00:00
parent 17956728be
commit a400d98de6
4 changed files with 23 additions and 10 deletions

View 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.

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

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

View 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