2001-09-01 03:52:21 +00:00
|
|
|
/**
|
|
|
|
* \file QSpellcheckerDialog.h
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QSPELLCHECKERDIALOG_H
|
|
|
|
#define QSPELLCHECKERDIALOG_H
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-09-01 03:52:21 +00:00
|
|
|
#include <config.h>
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-09-01 03:52:21 +00:00
|
|
|
#include "ui/QSpellcheckerDialogBase.h"
|
|
|
|
|
|
|
|
#include "QSpellchecker.h"
|
|
|
|
|
|
|
|
class QSpellcheckerDialog : public QSpellcheckerDialogBase
|
|
|
|
{ Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
QSpellcheckerDialog(QSpellchecker * form);
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
virtual void stop() {
|
|
|
|
form_->stop();
|
|
|
|
}
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-09-01 03:52:21 +00:00
|
|
|
virtual void acceptClicked() {
|
|
|
|
form_->accept();
|
|
|
|
}
|
|
|
|
virtual void spellcheckClicked() {
|
|
|
|
form_->spellcheck();
|
|
|
|
}
|
|
|
|
virtual void addClicked() {
|
|
|
|
form_->add();
|
|
|
|
}
|
|
|
|
virtual void replaceClicked() {
|
|
|
|
form_->replace();
|
|
|
|
}
|
|
|
|
virtual void ignoreClicked() {
|
|
|
|
form_->ignore();
|
|
|
|
}
|
|
|
|
virtual void optionsClicked() {
|
|
|
|
form_->options();
|
|
|
|
}
|
|
|
|
virtual void suggestionChanged(const QString &);
|
2002-03-21 21:21:28 +00:00
|
|
|
virtual void replaceChanged(const QString &);
|
|
|
|
|
2001-09-01 03:52:21 +00:00
|
|
|
protected:
|
|
|
|
virtual void closeEvent(QCloseEvent * e);
|
|
|
|
|
|
|
|
private:
|
|
|
|
QSpellchecker * form_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QSPELLCHECKERDIALOG_H
|