4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef GUITHESAURUS_H
13 #define GUITHESAURUS_H
15 #include "GuiDialog.h"
16 #include "Thesaurus.h"
17 #include "ui_ThesaurusUi.h"
19 #include "WordLangTuple.h"
21 class QTreeWidgetItem;
26 class GuiThesaurus : public GuiDialog, public Ui::ThesaurusUi
31 GuiThesaurus(GuiView & lv);
36 void change_adaptor();
38 void replaceClicked();
39 void selectionChanged();
40 void selectionClicked(QTreeWidgetItem *, int);
41 void itemClicked(QTreeWidgetItem *, int);
45 void updateContents();
49 bool initialiseParams(std::string const & data);
53 void dispatchParams() {}
55 bool isBufferDependent() const { return true; }
57 /// replace the particular string
58 void replace(docstring const & newstr);
61 Thesaurus::Meanings const & getMeanings(WordLangTuple const & wl);
64 /// last string looked up
67 /// entries for last string
68 Thesaurus::Meanings meanings_;
80 } // namespace frontend
83 #endif // GUITHESAURUS_H