mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
User frontend for the new document-wide bibliography style feature.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40485 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0f30a858f8
commit
667ecbdd1d
@ -1119,9 +1119,13 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
this, SLOT(bibtexChanged(int)));
|
this, SLOT(bibtexChanged(int)));
|
||||||
connect(biblioModule->bibtexOptionsLE, SIGNAL(textChanged(QString)),
|
connect(biblioModule->bibtexOptionsLE, SIGNAL(textChanged(QString)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
|
connect(biblioModule->bibtexStyleLE, SIGNAL(textChanged(QString)),
|
||||||
|
this, SLOT(change_adaptor()));
|
||||||
|
|
||||||
biblioModule->bibtexOptionsLE->setValidator(new NoNewLineValidator(
|
biblioModule->bibtexOptionsLE->setValidator(new NoNewLineValidator(
|
||||||
biblioModule->bibtexOptionsLE));
|
biblioModule->bibtexOptionsLE));
|
||||||
|
biblioModule->bibtexStyleLE->setValidator(new NoNewLineValidator(
|
||||||
|
biblioModule->bibtexStyleLE));
|
||||||
|
|
||||||
biblioModule->citeStyleCO->addItem(qt_("Author-year"));
|
biblioModule->citeStyleCO->addItem(qt_("Author-year"));
|
||||||
biblioModule->citeStyleCO->addItem(qt_("Numerical"));
|
biblioModule->citeStyleCO->addItem(qt_("Numerical"));
|
||||||
@ -2240,6 +2244,8 @@ void GuiDocument::applyView()
|
|||||||
bp_.use_bibtopic =
|
bp_.use_bibtopic =
|
||||||
biblioModule->bibtopicCB->isChecked();
|
biblioModule->bibtopicCB->isChecked();
|
||||||
|
|
||||||
|
bp_.biblio_style = fromqstr(biblioModule->bibtexStyleLE->text());
|
||||||
|
|
||||||
string const bibtex_command =
|
string const bibtex_command =
|
||||||
fromqstr(biblioModule->bibtexCO->itemData(
|
fromqstr(biblioModule->bibtexCO->itemData(
|
||||||
biblioModule->bibtexCO->currentIndex()).toString());
|
biblioModule->bibtexCO->currentIndex()).toString());
|
||||||
@ -2671,6 +2677,8 @@ void GuiDocument::paramsToDialog()
|
|||||||
biblioModule->bibtopicCB->setChecked(
|
biblioModule->bibtopicCB->setChecked(
|
||||||
bp_.use_bibtopic);
|
bp_.use_bibtopic);
|
||||||
|
|
||||||
|
biblioModule->bibtexStyleLE->setText(toqstr(bp_.biblio_style));
|
||||||
|
|
||||||
string command;
|
string command;
|
||||||
string options =
|
string options =
|
||||||
split(bp_.bibtex_command, command, ' ');
|
split(bp_.bibtex_command, command, ' ');
|
||||||
|
@ -105,13 +105,46 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" >
|
<item row="1" column="0" >
|
||||||
<widget class="QCheckBox" name="bibtopicCB" >
|
<widget class="QGroupBox" name="BiblioStyleBG" >
|
||||||
<property name="toolTip" >
|
<property name="title" >
|
||||||
<string>Select this if you want to split your bibliography into sections</string>
|
<string>Bibliography Style</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text" >
|
<property name="flat" >
|
||||||
<string>S&ectioned bibliography</string>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_1" >
|
||||||
|
<item row="0" column="0" >
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_1" >
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="bibtexStyleLA" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Default st&yle:</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy" >
|
||||||
|
<cstring>bibtexStyleLE</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="bibtexStyleLE" >
|
||||||
|
<property name="toolTip" >
|
||||||
|
<string>Define the default BibTeX style</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" >
|
||||||
|
<widget class="QCheckBox" name="bibtopicCB" >
|
||||||
|
<property name="toolTip" >
|
||||||
|
<string>Select this if you want to split your bibliography into sections</string>
|
||||||
|
</property>
|
||||||
|
<property name="text" >
|
||||||
|
<string>S&ectioned bibliography</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" >
|
<item row="2" column="0" >
|
||||||
|
Loading…
Reference in New Issue
Block a user