X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiBibtex.cpp;h=ff0a03e272222dfcb0b7d2c6eb41d12d9fea0154;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=3b78e406a79a45a76ff3fcf2b6cce4fe2189f925;hpb=b66a83ca8edc70d14f04b95b14a6ba7926e35c44;p=lyx.git diff --git a/src/frontends/qt4/GuiBibtex.cpp b/src/frontends/qt4/GuiBibtex.cpp index 3b78e406a7..ff0a03e272 100644 --- a/src/frontends/qt4/GuiBibtex.cpp +++ b/src/frontends/qt4/GuiBibtex.cpp @@ -4,9 +4,9 @@ * Licence details can be found in the file COPYING. * * \author John Levon - * \author Herbert Voß + * \author Herbert Voß * \author Angus Leeming - * \author Jürgen Spitzmüller + * \author Jürgen Spitzmüller * * Full author contact details are available in file CREDITS. */ @@ -79,6 +79,8 @@ GuiBibtex::GuiBibtex(GuiView & lv) this, SLOT(change_adaptor())); connect(addBibPB, SIGNAL(clicked()), this, SLOT(addPressed())); + connect(rescanPB, SIGNAL(clicked()), + this, SLOT(rescanClicked())); add_ = new GuiBibtexAddDialog(this); add_bc_.setPolicy(ButtonPolicy::OkCancelPolicy); @@ -92,6 +94,8 @@ GuiBibtex::GuiBibtex(GuiView & lv) this, SLOT(addDatabase())); connect(add_->addPB, SIGNAL(clicked()), add_, SLOT(accept())); + connect(add_->rescanPB, SIGNAL(clicked()), + this, SLOT(rescanClicked())); connect(add_->bibLW, SIGNAL(itemActivated(QListWidgetItem *)), this, SLOT(addDatabase())); connect(add_->bibLW, SIGNAL(itemActivated(QListWidgetItem *)), @@ -264,6 +268,13 @@ void GuiBibtex::downPressed() } +void GuiBibtex::rescanClicked() +{ + rescanBibStyles(); + updateContents(); +} + + void GuiBibtex::databaseChanged() { bool readOnly = isBufferReadonly(); @@ -555,4 +566,4 @@ Dialog * createGuiBibtex(GuiView & lv) { return new GuiBibtex(lv); } } // namespace frontend } // namespace lyx -#include "GuiBibtex_moc.cpp" +#include "moc_GuiBibtex.cpp"