X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiThesaurus.h;h=5fab7f69781279d9c38225f2387a245e048d8bac;hb=161f7b7f62cb33dab681add6c5b5b68a887e2ea1;hp=3e07f80eec78e31d097d10f4c08fdc276cca80b2;hpb=bb1c76d479da2f63b8e5a7d8a95ff564e7b541b6;p=lyx.git diff --git a/src/frontends/qt4/GuiThesaurus.h b/src/frontends/qt4/GuiThesaurus.h index 3e07f80eec..5fab7f6978 100644 --- a/src/frontends/qt4/GuiThesaurus.h +++ b/src/frontends/qt4/GuiThesaurus.h @@ -21,12 +21,14 @@ class QTreeWidgetItem; 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(); @@ -37,9 +39,6 @@ private Q_SLOTS: void itemClicked(QTreeWidgetItem *, int); private: - void closeEvent(QCloseEvent * e); - /// parent controller - Controller & controller() { return *this; } /// update void updateContents(); /// @@ -57,7 +56,7 @@ private: void replace(docstring const & newstr); /// get meanings - Thesaurus::Meanings const & getMeanings(docstring const & str); + Thesaurus::Meanings const & getMeanings(WordLangTuple const & wl); private: /// last string looked up @@ -69,6 +68,9 @@ private: /// original string docstring text_; + /// language + docstring lang_; + /// not needed. void apply() {} };