]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QSpellcheckerDialog.h
Some Qt graphics dialog improvements. Yet more work needed :/
[lyx.git] / src / frontends / qt2 / QSpellcheckerDialog.h
1 /**
2  * \file QSpellcheckerDialog.h
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon <moz@compsoc.man.ac.uk>
7  */
8
9 #ifndef QSPELLCHECKERDIALOG_H
10 #define QSPELLCHECKERDIALOG_H
11
12 #include <config.h>
13
14 #include "QSpellchecker.h"
15 #include "ui/QSpellcheckerDialogBase.h"
16
17 class QSpellcheckerDialog : public QSpellcheckerDialogBase
18 { Q_OBJECT
19
20 public:
21         QSpellcheckerDialog(QSpellchecker * form);
22
23 protected slots:
24         virtual void stop() {
25                 form_->stop();
26         }
27
28         virtual void acceptClicked() {
29                 form_->accept();
30         }
31         virtual void spellcheckClicked() {
32                 form_->spellcheck();
33         }
34         virtual void addClicked() {
35                 form_->add();
36         }
37         virtual void replaceClicked() {
38                 form_->replace();
39         }
40         virtual void ignoreClicked() {
41                 form_->ignore();
42         }
43         virtual void suggestionChanged(const QString &);
44         virtual void replaceChanged(const QString &);
45
46 protected:
47         virtual void closeEvent(QCloseEvent * e);
48
49 private:
50         QSpellchecker * form_;
51 };
52
53 #endif // QSPELLCHECKERDIALOG_H