typedef QController<ControlBibtex, QView<QBibtexDialog> > base_class;
QBibtex::QBibtex(Dialog & parent)
- : base_class(parent, _("BibTeX Bibliography"))
+ : base_class(parent, lyx::to_utf8(_("BibTeX Bibliography")))
{
}
else if (btprint == "btPrintAll")
btp = 2;
- dialog_->btPrintCO->setCurrentItem(btp);
+ dialog_->btPrintCO->setCurrentIndex(btp);
dialog_->btPrintCO->setEnabled(bibtopic);
dialog_->styleCB->clear();
string item(changeExtension(*it, ""));
if (item == bibstyle)
item_nr = int(it - str.begin());
- dialog_->styleCB->insertItem(toqstr(item));
+ dialog_->styleCB->addItem(toqstr(item));
}
if (item_nr == -1 && !bibstyle.empty()) {
- dialog_->styleCB->insertItem(toqstr(bibstyle));
+ dialog_->styleCB->addItem(toqstr(bibstyle));
item_nr = dialog_->styleCB->count() - 1;
}
if (item_nr != -1)
- dialog_->styleCB->setCurrentItem(item_nr);
+ dialog_->styleCB->setCurrentIndex(item_nr);
else
- dialog_->styleCB->clearEdit();
+ dialog_->styleCB->clearEditText();
}
// 1. sections that include all cited references of the database(s)
// 2. sections that include all uncited references of the database(s)
// 3. sections that include all references of the database(s), cited or not
- int btp = dialog_->btPrintCO->currentItem();
+ int btp = dialog_->btPrintCO->currentIndex();
switch (btp) {
case 0: