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, public Controller
29 GuiThesaurus(LyXView & lv);
32 void change_adaptor();
34 void replaceClicked();
35 void selectionChanged();
36 void selectionClicked(QTreeWidgetItem *, int);
37 void itemClicked(QTreeWidgetItem *, int);
40 void closeEvent(QCloseEvent * e);
42 Controller & controller() { return *this; }
44 void updateContents();
48 bool initialiseParams(std::string const & data);
52 void dispatchParams() {}
54 bool isBufferDependent() const { return true; }
56 /// replace the particular string
57 void replace(docstring const & newstr);
60 Thesaurus::Meanings const & getMeanings(docstring const & str);
63 /// last string looked up
66 /// entries for last string
67 Thesaurus::Meanings meanings_;
76 } // namespace frontend
79 #endif // GUITHESAURUS_H