3 * \file GuiSpellchecker.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Kalle Dalheimer
10 * \author Abdelrazak Younes
12 * Full author contact details are available in file CREDITS.
15 #ifndef GUISPELLCHECKER_H
16 #define GUISPELLCHECKER_H
20 class QListWidgetItem;
28 class SpellcheckerWidget : public QWidget
33 SpellcheckerWidget(GuiView * gv, QWidget * parent = 0);
34 ~SpellcheckerWidget();
38 bool initialiseParams(std::string const & data);
41 void on_findNextPB_clicked();
42 void on_replaceAllPB_clicked();
43 void on_suggestionsLW_itemClicked(QListWidgetItem *);
44 void on_replaceCO_highlighted(const QString & str);
45 void on_languageCO_activated(int index);
46 void on_ignoreAllPB_clicked();
47 void on_addPB_clicked();
48 void on_ignorePB_clicked();
49 void on_replacePB_clicked();
53 bool eventFilter(QObject *obj, QEvent *event);
59 class GuiSpellchecker : public DockView
65 GuiView & parent, ///< the main window where to dock.
66 Qt::DockWidgetArea area = Qt::RightDockWidgetArea, ///< Position of the dock (and also drawer)
67 Qt::WindowFlags flags = 0);
73 bool initialiseParams(std::string const &) { return true; }
75 void dispatchParams() {}
76 bool isBufferDependent() const { return false; }
78 /// The encapsulated widget.
79 SpellcheckerWidget * widget_;
82 } // namespace frontend
85 #endif // GUISPELLCHECKER_H