namespace lyx {
namespace frontend {
-class GuiThesaurus : public GuiDialog, public Ui::ThesaurusUi, public Controller
+class GuiThesaurus : public GuiDialog, public Ui::ThesaurusUi
{
Q_OBJECT
public:
- GuiThesaurus(LyXView & lv);
+ GuiThesaurus(GuiView & lv);
+
+ void checkStatus();
private Q_SLOTS:
void change_adaptor();
void itemClicked(QTreeWidgetItem *, int);
private:
- void closeEvent(QCloseEvent * e);
- /// parent controller
- Controller & controller() { return *this; }
/// update
void updateContents();
///
void replace(docstring const & newstr);
/// get meanings
- Thesaurus::Meanings const & getMeanings(docstring const & str);
+ Thesaurus::Meanings const & getMeanings(docstring const & str,
+ docstring const & lang);
private:
/// last string looked up
/// original string
docstring text_;
+ /// language
+ docstring lang_;
+
/// not needed.
void apply() {}
};