void QCitationDialog::slotBibSelected(int sel)
{
slotBibHighlighted(sel);
-
- if (form_->controller().isReadonly())
+
+ if (form_->readOnly())
return;
-
+
slotAddClicked();
}
-
+
void QCitationDialog::slotBibHighlighted(int sel)
{
biblio::InfoMap const & theMap = form_->controller().bibkeysInfo();
citeLB->setTopItem(n);
}
- if (!form_->controller().isReadonly()) {
+ if (!form_->readOnly()) {
if (cit != form_->citekeys.end()) {
form_->setBibButtons(QCitation::OFF);
form_->setCiteButtons(QCitation::ON);
return;
}
- if (!form_->controller().isReadonly()) {
+ if (!form_->readOnly()) {
form_->setBibButtons(QCitation::OFF);
form_->setCiteButtons(QCitation::ON);
}
}
-void QCitationDialog::doFind(biblio::Direction const dir)
+void QCitationDialog::doFind(biblio::Direction dir)
{
biblio::InfoMap const & theMap = form_->controller().bibkeysInfo();
string const str = searchED->text().latin1();
start -= 1;
bool const caseSensitive = searchCaseCB->isChecked();
-
+
vector<string>::const_iterator cit =
biblio::searchKeys(theMap, form_->bibkeys, str,
start, type, dir, caseSensitive);
- // FIXME: should work ...
+ // FIXME: should work ...
if (cit == form_->bibkeys.end()) {
// not found. let's loop round
if (dir == biblio::FORWARD)
start = form_->bibkeys.begin();
else
start = form_->bibkeys.end();
-
+
cit = biblio::searchKeys(theMap, form_->bibkeys, str,
start, type, dir, caseSensitive);
-
+
if (cit == form_->bibkeys.end())
return;
}