From 01a74e8e95eacc6ccda6cc8cd56bee5eef286439 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 8 Jul 2018 12:13:47 +0200 Subject: [PATCH] Polish Bib(la)TeX dialog --- src/frontends/qt4/GuiBibtex.cpp | 7 +- src/frontends/qt4/ui/BibtexUi.ui | 496 +++++++++++++++---------------- 2 files changed, 249 insertions(+), 254 deletions(-) diff --git a/src/frontends/qt4/GuiBibtex.cpp b/src/frontends/qt4/GuiBibtex.cpp index 3d958c5102..d22c42e2a1 100644 --- a/src/frontends/qt4/GuiBibtex.cpp +++ b/src/frontends/qt4/GuiBibtex.cpp @@ -62,6 +62,8 @@ GuiBibtex::GuiBibtex(GuiView & lv) connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK())); + connect(applyPB, SIGNAL(clicked()), + this, SLOT(slotApply())); connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose())); connect(stylePB, SIGNAL(clicked()), @@ -120,6 +122,7 @@ GuiBibtex::GuiBibtex(GuiView & lv) bc().setPolicy(ButtonPolicy::NoRepeatedApplyReadOnlyPolicy); bc().setOK(okPB); + bc().setApply(applyPB); bc().setCancel(closePB); bc().addReadOnly(databaseLW); bc().addReadOnly(stylePB); @@ -378,9 +381,7 @@ void GuiBibtex::updateContents() biblatexOptsLE->setVisible(biblatex); // only useful for BibTeX - styleCB->setVisible(!biblatex); - styleLA->setVisible(!biblatex); - stylePB->setVisible(!biblatex); + bstGB->setVisible(!biblatex); if (!biblatex) { styleCB->clear(); diff --git a/src/frontends/qt4/ui/BibtexUi.ui b/src/frontends/qt4/ui/BibtexUi.ui index 0cac4098b9..54b22b52a8 100644 --- a/src/frontends/qt4/ui/BibtexUi.ui +++ b/src/frontends/qt4/ui/BibtexUi.ui @@ -6,8 +6,8 @@ 0 0 - 368 - 441 + 397 + 536 @@ -16,225 +16,246 @@ true - + - - - - 0 - 0 - - - - BibTeX database to use - - - Da&tabases - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - databaseLW - - - - - - - - - - Add a BibTeX database file - - - &Add... - - - - - + - Remove the selected database - - - &Delete - + BibTeX database(s) to use + + + &Databases + + + + + + + + + + + Add a BibTeX database file + + + &Add... + + + + + + + Remove the selected database + + + &Delete + + + + + + + Move the selected database upwards in the list + + + &Up + + + + + + + Move the selected database downwards in the list + + + Do&wn + + + + + + + + + + + E&ncoding: + + + bibEncodingCO + + + + + + + If your bibliography databases use a different encoding than the LyX document, specify it here + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + - - - - Move the selected database upwards in the list - - - &Up - - - - - - - Move the selected database downwards in the list - - - Do&wn - - - - - - - Qt::Vertical - - - QSizePolicy::Expanding - - - - 77 - 16 - - - - - - - - Scan for new databases and styles - - - &Rescan - - - - - - - - 0 - 0 - - + + The BibTeX style - + St&yle - - styleCB - - - - - - - Choose a style file - - - true - - - true - - - false - - - - - - - Choose a style file - - - &Browse... - - - false - + + + + + + 0 + 0 + + + + Choose a style file + + + true + + + true + + + false + + + + + + + Choose a style file + + + &Browse... + + + false + + + + - - - - - 0 - 0 - - - - This bibliography section contains... - - - &Content: - - - btPrintCO - + + + + Options + + + + + + + + + 0 + 0 + + + + This bibliography section contains... + + + &Content: + + + btPrintCO + + + + + + + This bibliography section contains... + + + + all cited references + + + + + all uncited references + + + + + all references + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + Add bibliography to the table of contents + + + Add bibliography to &TOC + + + + + + + + + Custo&m: + + + biblatexOptsLE + + + + + + + Options to the biblatex bibliography command. See the biblatex manual for details. + + + + + + - - - - This bibliography section contains... - - - - all cited references - - - - - all uncited references - - - - - all references - - - - - - - - Qt::Vertical - - - QSizePolicy::Expanding - - - - 20 - 20 - - - - - - - - - - O&ptions: - - - biblatexOptsLE - - - - - - - Options to the biblatex bibliography command. See the biblatex manual for details. - - - - - - + 6 @@ -251,6 +272,16 @@ 0 + + + + Scan for new databases and styles + + + &Rescan + + + @@ -281,61 +312,24 @@ - + - Cancel - - - false + App&ly - - - - - + - &Encoding: - - - bibEncodingCO + Cancel - - - - - - If your bibliography databases use a different encoding than the LyX document, specify it here + + false - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Add bibliography to the table of contents - - - Add bibliography to &TOC - - - -- 2.39.2