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 class QTreeWidgetItem;
24 class GuiThesaurus : public GuiDialog, public Ui::ThesaurusUi
29 GuiThesaurus(GuiView & lv);
34 void change_adaptor();
36 void replaceClicked();
37 void selectionChanged();
38 void selectionClicked(QTreeWidgetItem *, int);
39 void itemClicked(QTreeWidgetItem *, int);
43 void updateContents();
47 bool initialiseParams(std::string const & data);
51 void dispatchParams() {}
53 bool isBufferDependent() const { return true; }
55 /// replace the particular string
56 void replace(docstring const & newstr);
59 Thesaurus::Meanings const & getMeanings(WordLangTuple const & wl);
62 /// last string looked up
65 /// entries for last string
66 Thesaurus::Meanings meanings_;
78 } // namespace frontend
81 #endif // GUITHESAURUS_H