using SigC::slot;
ControlThesaurus::ControlThesaurus(LyXView & lv, Dialogs & d)
- : ControlDialog<ControlConnectBD>(lv, d)
+ : ControlDialogBD(lv, d)
{
d_.showThesaurus.connect(SigC::slot(this, &ControlThesaurus::showEntry));
}
}
-std::vector<string>
-ControlThesaurus::getEntries(string const & str, Thesaurus::POS pos)
+Thesaurus::Meanings const & ControlThesaurus::getMeanings(string const & str)
{
if (str != laststr_)
- entries_ = thesaurus.lookup(str);
+ meanings_ = thesaurus.lookup(str);
- laststr_ = str;
-
- std::vector<string> strs;
-
- for (std::vector<Thesaurus::ThesaurusEntry>::const_iterator it = entries_.begin();
- it != entries_.end(); ++it) {
- if (it->pos & pos)
- strs.push_back(it->entry);
- }
-
- return strs;
+ return meanings_;
}