lyx_mirror/src/frontends/qt/GuiThesaurus.h
Jean-Marc Lasgouttes c293be56bd Rename frontend qt4 to qt
In particular, the directory frontends/qt4 is renamed to frontends/qt.

Many configurations file have to be updated. All mentions of qt4 in
the source have been audited, and changed to qt if necessary.

The only part that has not been updated is the CMake build system.
2019-07-20 23:39:40 +02:00

82 lines
1.4 KiB
C++

// -*- C++ -*-
/**
* \file GuiThesaurus.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author John Levon
*
* Full author contact details are available in file CREDITS.
*/
#ifndef GUITHESAURUS_H
#define GUITHESAURUS_H
#include "GuiDialog.h"
#include "Thesaurus.h"
#include "ui_ThesaurusUi.h"
class QTreeWidgetItem;
namespace lyx {
namespace frontend {
class GuiThesaurus : public GuiDialog, public Ui::ThesaurusUi
{
Q_OBJECT
public:
GuiThesaurus(GuiView & lv);
void checkStatus();
private Q_SLOTS:
void change_adaptor();
void entryChanged();
void replaceClicked();
void selectionChanged();
void selectionClicked(QTreeWidgetItem *, int);
void itemClicked(QTreeWidgetItem *, int);
private:
/// 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
} // namespace lyx
#endif // GUITHESAURUS_H