this, SLOT(bibtexChanged(int)));
connect(biblioModule->bibtexOptionsLE, SIGNAL(textChanged(QString)),
this, SLOT(change_adaptor()));
+ connect(biblioModule->bibtexStyleLE, SIGNAL(textChanged(QString)),
+ this, SLOT(change_adaptor()));
biblioModule->bibtexOptionsLE->setValidator(new NoNewLineValidator(
biblioModule->bibtexOptionsLE));
+ biblioModule->bibtexStyleLE->setValidator(new NoNewLineValidator(
+ biblioModule->bibtexStyleLE));
biblioModule->citeStyleCO->addItem(qt_("Author-year"));
biblioModule->citeStyleCO->addItem(qt_("Numerical"));
bp_.use_bibtopic =
biblioModule->bibtopicCB->isChecked();
+ bp_.biblio_style = fromqstr(biblioModule->bibtexStyleLE->text());
+
string const bibtex_command =
fromqstr(biblioModule->bibtexCO->itemData(
biblioModule->bibtexCO->currentIndex()).toString());
biblioModule->bibtopicCB->setChecked(
bp_.use_bibtopic);
+ biblioModule->bibtexStyleLE->setText(toqstr(bp_.biblio_style));
+
string command;
string options =
split(bp_.bibtex_command, command, ' ');
</widget>
</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>
+ <widget class="QGroupBox" name="BiblioStyleBG" >
+ <property name="title" >
+ <string>Bibliography Style</string>
</property>
- <property name="text" >
- <string>S&ectioned bibliography</string>
+ <property name="flat" >
+ <bool>true</bool>
</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>
</item>
<item row="2" column="0" >