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 #if QT_VERSION >= 0x040600
29 class SpellcheckerWidget : public QTabWidget
31 class SpellcheckerWidget : public QWidget
37 SpellcheckerWidget(GuiView * gv, QWidget * parent = 0);
38 ~SpellcheckerWidget();
42 bool initialiseParams(std::string const & data);
45 void on_findNextPB_clicked();
46 void on_replaceAllPB_clicked();
47 void on_suggestionsLW_itemClicked(QListWidgetItem *);
48 void on_replaceCO_highlighted(const QString & str);
49 void on_languageCO_activated(int index);
50 void on_ignoreAllPB_clicked();
51 void on_addPB_clicked();
52 void on_ignorePB_clicked();
53 void on_replacePB_clicked();
57 bool eventFilter(QObject *obj, QEvent *event);
63 class GuiSpellchecker : public DockView
69 GuiView & parent, ///< the main window where to dock.
70 Qt::DockWidgetArea area = Qt::RightDockWidgetArea, ///< Position of the dock (and also drawer)
71 Qt::WindowFlags flags = 0);
77 bool initialiseParams(std::string const &) { return true; }
79 void dispatchParams() {}
80 bool isBufferDependent() const { return false; }
82 /// The encapsulated widget.
83 SpellcheckerWidget * widget_;
86 } // namespace frontend
89 #endif // GUISPELLCHECKER_H