#define GUITHESAURUS_H
#include "GuiDialog.h"
-#include "ControlThesaurus.h"
+#include "Thesaurus.h"
#include "ui_ThesaurusUi.h"
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);
+
+ void checkStatus();
private Q_SLOTS:
void change_adaptor();
void itemClicked(QTreeWidgetItem *, int);
private:
- void closeEvent(QCloseEvent * e);
- /// parent controller
- ControlThesaurus & controller();
/// update
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(WordLangTuple const & wl);
+
+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