]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiThesaurus.h
If we are in a closeEvent, we don't want to close all buffers, because these may...
[lyx.git] / src / frontends / qt4 / GuiThesaurus.h
index 3e07f80eec78e31d097d10f4c08fdc276cca80b2..57544a6b3e96c477d33661529cd80ac40bce2241 100644 (file)
@@ -21,12 +21,12 @@ 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);
 
 private Q_SLOTS:
        void change_adaptor();
@@ -37,9 +37,6 @@ private Q_SLOTS:
        void itemClicked(QTreeWidgetItem *, int);
 
 private:
-       void closeEvent(QCloseEvent * e);
-       /// parent controller
-       Controller & controller() { return *this; }
        /// update
        void updateContents();
        ///
@@ -57,7 +54,8 @@ private:
        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
@@ -69,6 +67,9 @@ private:
        /// original string
        docstring text_;
 
+       /// language
+       docstring lang_;
+
        /// not needed.
        void apply() {}
 };