connect(selectionManager, SIGNAL(okHook()),
this, SLOT(on_okPB_clicked()));
+ setFocusProxy(availableLV);
+
// FIXME: the sizeHint() for this is _way_ too high
infoML->setFixedHeight(60);
}
bool const isNocite = currentStyle == NOCITE;
- fulllistCB->setEnabled(natbib_engine && haveSelection && !isNocite);
- forceuppercaseCB->setEnabled(natbib_engine && haveSelection && !isNocite);
+ bool const isCiteyear =
+ currentStyle == CITEYEAR ||
+ currentStyle == CITEYEARPAR;
+
+ fulllistCB->setEnabled(natbib_engine && haveSelection && !isNocite
+ && !isCiteyear);
+ forceuppercaseCB->setEnabled(natbib_engine && haveSelection
+ && !isNocite && !isCiteyear);
textBeforeED->setEnabled(!basic_engine && haveSelection && !isNocite);
textBeforeLA->setEnabled(!basic_engine && haveSelection && !isNocite);
textAfterED->setEnabled(haveSelection && !isNocite);
int const oldIndex = fieldsCO->currentIndex();
fieldsCO->clear();
QStringList const fields = to_qstring_list(bi.getFields());
- fieldsCO->insertItem(0, qt_("All Fields"));
+ fieldsCO->insertItem(0, qt_("All fields"));
fieldsCO->insertItem(1, qt_("Keys"));
fieldsCO->insertItems(2, fields);
if (oldIndex != -1 && oldIndex < fieldsCO->count())
int const oldIndex = entriesCO->currentIndex();
entriesCO->clear();
QStringList const entries = to_qstring_list(bi.getEntries());
- entriesCO->insertItem(0, qt_("All Entry Types"));
+ entriesCO->insertItem(0, qt_("All entry types"));
entriesCO->insertItems(1, entries);
if (oldIndex != -1 && oldIndex < entriesCO->count())
entriesCO->setCurrentIndex(oldIndex);
data = to_utf8(*it);
else if (field.empty())
data = to_utf8(*it) + ' ' + to_utf8(kvm.allData());
- else if (kvm.hasField(field))
- data = to_utf8(kvm.getValueForField(field));
+ else
+ data = to_utf8(kvm[field]);
if (data.empty())
continue;
BiblioInfo const & GuiCitation::bibInfo() const
{
+ buffer().checkBibInfoCache();
return buffer().masterBibInfo();
}
} // namespace frontend
} // namespace lyx
-#include "GuiCitation_moc.cpp"
+#include "moc_GuiCitation.cpp"