]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QSpellcheckerDialog.h
enable Font cache only for MacOSX and inline width() for other platform.
[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 class QListWidgetItem;
21
22 namespace lyx {
23 namespace frontend {
24
25 class QSpellchecker;
26
27 class QSpellcheckerDialog: public QDialog, public Ui::QSpellcheckerUi {
28         Q_OBJECT
29 public:
30         QSpellcheckerDialog(QSpellchecker * form);
31 public Q_SLOTS:
32         virtual void suggestionChanged(QListWidgetItem *);
33
34 protected Q_SLOTS:
35         virtual void acceptClicked();
36         virtual void addClicked();
37         virtual void replaceClicked();
38         virtual void ignoreClicked();
39         virtual void replaceChanged(const QString &);
40         virtual void reject();
41
42 protected:
43         virtual void closeEvent(QCloseEvent * e);
44
45 private:
46         QSpellchecker * form_;
47 };
48
49 } // namespace frontend
50 } // namespace lyx
51
52 #endif // QSPELLCHECKERDIALOG_H