]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QSpellcheckerDialog.h
This new citation dialog follows a new design similar to lyx-1.3:
[lyx.git] / src / frontends / qt4 / QSpellcheckerDialog.h
1 // -*- C++ -*-
2 /**
3  * \file QSpellcheckerDialog.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef QSPELLCHECKERDIALOG_H
13 #define QSPELLCHECKERDIALOG_H
14
15 #include "ui/QSpellcheckerUi.h"
16
17 #include <QDialog>
18 #include <QCloseEvent>
19
20 namespace lyx {
21 namespace frontend {
22
23 class QSpellchecker;
24
25 class QSpellcheckerDialog: public QDialog, public Ui::QSpellcheckerUi {
26         Q_OBJECT
27 public:
28         QSpellcheckerDialog(QSpellchecker * form);
29 public slots:
30         virtual void suggestionChanged(const QString &);
31
32 protected slots:
33         virtual void acceptClicked();
34         virtual void addClicked();
35         virtual void replaceClicked();
36         virtual void ignoreClicked();
37         virtual void replaceChanged(const QString &);
38         virtual void reject();
39
40 protected:
41         virtual void closeEvent(QCloseEvent * e);
42
43 private:
44         QSpellchecker * form_;
45 };
46
47 } // namespace frontend
48 } // namespace lyx
49
50 #endif // QSPELLCHECKERDIALOG_H