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);
32 void change_adaptor();
34 void replaceClicked();
35 void selectionChanged();
36 void selectionClicked(QTreeWidgetItem *, int);
37 void itemClicked(QTreeWidgetItem *, int);
41 void updateContents();
45 bool initialiseParams(std::string const & data);
49 void dispatchParams() {}
51 bool isBufferDependent() const { return true; }
53 /// replace the particular string
54 void replace(docstring const & newstr);
57 Thesaurus::Meanings const & getMeanings(docstring const & str,
58 docstring const & lang);
61 /// last string looked up
64 /// entries for last string
65 Thesaurus::Meanings meanings_;
77 } // namespace frontend
80 #endif // GUITHESAURUS_H