connect(textAfterED, SIGNAL(returnPressed()),
this, SLOT(on_okPB_clicked()));
- connect(this, SIGNAL(rejected()), this, SLOT(cleanUp()));
-
selectionManager = new GuiSelectionManager(availableLV, selectedLV,
addPB, deletePB, upPB, downPB, &available_model_, &selected_model_);
connect(selectionManager, SIGNAL(selectionChanged()),
connect(selectionManager, SIGNAL(okHook()),
this, SLOT(on_okPB_clicked()));
+ setFocusProxy(availableLV);
+
// FIXME: the sizeHint() for this is _way_ too high
infoML->setFixedHeight(60);
}
}
-void GuiCitation::cleanUp()
-{
- clearParams();
- close();
-}
-
-
void GuiCitation::closeEvent(QCloseEvent * e)
{
clearSelection();
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);
else if (field.empty())
data = to_utf8(*it) + ' ' + to_utf8(kvm.allData());
else if (kvm.hasField(field))
- data = to_utf8(kvm.getValueForField(field));
+ data = to_utf8(kvm[field]);
if (data.empty())
continue;
} // namespace frontend
} // namespace lyx
-#include "GuiCitation_moc.cpp"
+#include "moc_GuiCitation.cpp"