void
getConjugation(const FrenchVerbDictionary &fvd,
- const string &infinitive,
- const string &tname,
- VVVS &dest,
- #ifndef QT_NO_DEBUG
- QElapsedTimer &timer,
- #endif
- bool includePronouns)
+ const string &infinitive,
+ const string &tname,
+ VVVS &dest,
+ bool includePronouns)
{
-#ifndef QT_NO_DEBUG
- qDebug() << " *>> Inside getConjugation " << timer.elapsed();
-#endif
const TemplateSpec *templ = fvd.getTemplate(tname);
if (templ == NULL)
return;
modes where pronouns are used
*/
void getConjugation(const verbiste::FrenchVerbDictionary &fvd,
- const std::string &infinitive,
- const std::string &tname,
- VVVS &dest,
- #ifndef QT_NO_DEBUG
- QElapsedTimer &timer,
- #endif
- bool includePronouns = false);
+ const std::string &infinitive,
+ const std::string &tname,
+ VVVS &dest,
+ bool includePronouns = false);
/** Get the tense name for a certain cell of the conjugation table.
bool includePronouns = btnPron->isChecked();
bool isItalian = filItalian->isChecked(); // TODO: Will get this value from external
-#ifndef QT_NO_DEBUG
- timer.start();
- qDebug() << "Start " << timer.elapsed();
-#endif
freVerbDic->deconjugate(word, infles);
resultPages->setUpdatesEnabled(false);
{
const InflectionDesc &d = *it;
-#ifndef QT_NO_DEBUG
- qDebug() << ">> Infinitive " << d.infinitive.c_str();
- qDebug() << " Template " << d.templateName.c_str();
-#endif
/* If this infinitive has been conjugated, we skip to the next infinitive */
if (d.infinitive == prevUTF8Infinitive && d.templateName == prevTemplateName) {
continue;
}
- /* FIXME:
- * In original source (Verbiste), this checking is done later,
- * after getConjugation(). I place it here to avoid calling again
- * multitimes getConjugation(), which is very slow.
- * We need to test more to see which place is more correct.
- */
VVVS conjug;
-#ifndef QT_NO_DEBUG
- qDebug() << " START getConjugation " << timer.elapsed();
-#endif
- getConjugation(*freVerbDic, d.infinitive, d.templateName, conjug,
- #ifndef QT_NO_DEBUG
- timer,
- #endif
- includePronouns);
-
-#ifndef QT_NO_DEBUG
- qDebug() << " getConjugation() returns: " << timer.elapsed();
-#endif
+ getConjugation(*freVerbDic, d.infinitive, d.templateName, conjug, includePronouns);
if (conjug.size() == 0 // if no tenses
|| conjug[0].size() == 0 // if no infinitive tense
}
std::string utf8Infinitive = conjug[0][0][0];
-#ifndef QT_NO_DEBUG
- qDebug() << " Infinitive " << utf8Infinitive.c_str();
- qDebug() << " Template " << d.templateName.c_str();
-#endif
/* Add result to GUI (not show yet) */
ResultPage *rsp = addResultPage(utf8Infinitive);