wrote manual for term explorer and fixed a few problems

This commit is contained in:
dockes
2006-11-06 17:37:22 +00:00
parent 1384276a3f
commit b4a4eb76d8
4 changed files with 95 additions and 21 deletions
+2 -2
View File
@@ -240,10 +240,10 @@
<iconset>spell.png</iconset>
</property>
<property name="menuText">
<string>Spelling &amp;expansion</string>
<string>Term &amp;explorer</string>
</property>
<property name="toolTip">
<string>Spelling expansion tool</string>
<string>Term explorer tool</string>
</property>
</action>
<action>
+7 -3
View File
@@ -1,5 +1,5 @@
#ifndef lint
static char rcsid[] = "@(#$Id: spell_w.cpp,v 1.4 2006-11-04 17:09:08 dockes Exp $ (C) 2005 J.F.Dockes";
static char rcsid[] = "@(#$Id: spell_w.cpp,v 1.5 2006-11-06 17:37:22 dockes Exp $ (C) 2005 J.F.Dockes";
#endif
/*
* This program is free software; you can redistribute it and/or modify
@@ -96,12 +96,16 @@ void SpellW::doExpand()
case 2: {
LOGDEB(("SpellW::doExpand: aspelling\n"));
if (!aspell) {
QMessageBox::warning(0, "Recoll",
tr("Aspell init failed. "
"Aspell not installed?"));
LOGDEB(("SpellW::doExpand: aspell init error\n"));
return;
}
if (!aspell->suggest(*rcldb, expr, suggs, reason)) {
QMessageBox::warning(0, "Recoll",
tr("Aspell expansion error. "));
LOGERR(("SpellW::doExpand:suggest failed: %s\n", reason.c_str()));
return;
}
}
#endif
@@ -131,7 +135,7 @@ void SpellW::wordChanged(const QString &text)
void SpellW::textDoubleClicked(int para, int)
{
suggsTE->setSelection(para, 0, para+1, 0);
suggsTE->setSelection(para, 0, para, 1000);
if (suggsTE->hasSelectedText())
emit(wordSelect(suggsTE->selectedText()));
}