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 GUISPELLCHECKER_H
14 #define GUISPELLCHECKER_H
16 #include "GuiDialogView.h"
17 #include "ControlSpellchecker.h"
18 #include "ui_SpellcheckerUi.h"
22 class QListWidgetItem;
28 class GuiSpellchecker;
30 class GuiSpellcheckerDialog: public QDialog, public Ui::SpellcheckerUi {
33 GuiSpellcheckerDialog(GuiSpellchecker * form);
35 virtual void suggestionChanged(QListWidgetItem *);
38 virtual void acceptClicked();
39 virtual void addClicked();
40 virtual void replaceClicked();
41 virtual void ignoreClicked();
42 virtual void replaceChanged(const QString &);
43 virtual void reject();
46 virtual void closeEvent(QCloseEvent * e);
49 GuiSpellchecker * form_;
53 class GuiSpellchecker : public GuiView<GuiSpellcheckerDialog>
56 friend class GuiSpellcheckerDialog;
58 GuiSpellchecker(Dialog &);
60 /// update from controller
61 void partialUpdate(int id);
63 ControlSpellchecker & controller()
64 { return static_cast<ControlSpellchecker &>(this->getController()); }
66 ControlSpellchecker const & controller() const
67 { return static_cast<ControlSpellchecker const &>(this->getController()); }
75 virtual void apply() {}
77 virtual void update_contents();
79 virtual void build_dialog();
82 } // namespace frontend
85 #endif // GUISPELLCHECKER_H