3 * \file QSpellchecker.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 "QDialogView.h"
17 #include "ui/SpellcheckerUi.h"
20 #include <QCloseEvent>
22 class QListWidgetItem;
29 class QSpellcheckerDialog: public QDialog, public Ui::QSpellcheckerUi {
32 QSpellcheckerDialog(QSpellchecker * 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 QSpellchecker * form_;
52 class ControlSpellchecker;
55 : public QController<ControlSpellchecker, QView<QSpellcheckerDialog> >
58 friend class QSpellcheckerDialog;
60 QSpellchecker(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