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 * Full author contact details are available in file CREDITS.
13 #ifndef QSPELLCHECKER_H
14 #define QSPELLCHECKER_H
16 #include "GuiDialogView.h"
17 #include "ui_SpellcheckerUi.h"
20 #include <QCloseEvent>
22 class QListWidgetItem;
27 class GuiSpellchecker;
29 class GuiSpellcheckerDialog: public QDialog, public Ui::SpellcheckerUi {
32 GuiSpellcheckerDialog(GuiSpellchecker * form);
34 virtual void suggestionChanged(QListWidgetItem *);
37 virtual void acceptClicked();
38 virtual void addClicked();
39 virtual void replaceClicked();
40 virtual void ignoreClicked();
41 virtual void replaceChanged(const QString &);
42 virtual void reject();
45 virtual void closeEvent(QCloseEvent * e);
48 GuiSpellchecker * form_;
52 class ControlSpellchecker;
55 : public QController<ControlSpellchecker, GuiView<GuiSpellcheckerDialog> >
58 friend class GuiSpellcheckerDialog;
60 GuiSpellchecker(Dialog &);
62 /// update from controller
63 void partialUpdate(int id);
71 virtual void apply() {}
73 virtual void update_contents();
75 virtual void build_dialog();
78 } // namespace frontend
81 #endif // QSPELLCHECKER_H