]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiThesaurus.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiThesaurus.h
index e21bab5a2abd38676e85824af62d942850c8f1ba..57544a6b3e96c477d33661529cd80ac40bce2241 100644 (file)
@@ -13,7 +13,7 @@
 #define GUITHESAURUS_H
 
 #include "GuiDialog.h"
-#include "ControlThesaurus.h"
+#include "Thesaurus.h"
 #include "ui_ThesaurusUi.h"
 
 class QTreeWidgetItem;
@@ -21,12 +21,12 @@ class QTreeWidgetItem;
 namespace lyx {
 namespace frontend {
 
-class GuiThesaurusDialog : public GuiDialog, public Ui::ThesaurusUi
+class GuiThesaurus : public GuiDialog, public Ui::ThesaurusUi
 {
        Q_OBJECT
 
 public:
-       GuiThesaurusDialog(LyXView & lv);
+       GuiThesaurus(GuiView & lv);
 
 private Q_SLOTS:
        void change_adaptor();
@@ -37,13 +37,41 @@ private Q_SLOTS:
        void itemClicked(QTreeWidgetItem *, int);
 
 private:
-       void closeEvent(QCloseEvent * e);
-       /// parent controller
-       ControlThesaurus & controller() const;
        /// update
-       void update_contents();
+       void updateContents();
        ///
        void updateLists();
+       ///
+       bool initialiseParams(std::string const & data);
+       ///
+       void clearParams();
+       ///
+       void dispatchParams() {}
+       ///
+       bool isBufferDependent() const { return true; }
+
+       /// replace the particular string
+       void replace(docstring const & newstr);
+
+       /// get meanings
+       Thesaurus::Meanings const & getMeanings(docstring const & str,
+               docstring const & lang);
+
+private:
+       /// last string looked up
+       docstring laststr_;
+
+       /// entries for last string
+       Thesaurus::Meanings meanings_;
+
+       /// original string
+       docstring text_;
+
+       /// language
+       docstring lang_;
+
+       /// not needed.
+       void apply() {}
 };
 
 } // namespace frontend