X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiThesaurus.h;h=57544a6b3e96c477d33661529cd80ac40bce2241;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=e21bab5a2abd38676e85824af62d942850c8f1ba;hpb=c9ea6e6eef090b863fb54445010f24443b15eb23;p=lyx.git diff --git a/src/frontends/qt4/GuiThesaurus.h b/src/frontends/qt4/GuiThesaurus.h index e21bab5a2a..57544a6b3e 100644 --- a/src/frontends/qt4/GuiThesaurus.h +++ b/src/frontends/qt4/GuiThesaurus.h @@ -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