lyx_mirror/src/frontends/qt4/GuiSpellchecker.h
André Pönitz 470aba2a0e cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20217 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-11 18:33:42 +00:00

63 lines
1.1 KiB
C++

// -*- C++ -*-
/**
* \file GuiSpellchecker.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author John Levon
* \author Kalle Dalheimer
*
* Full author contact details are available in file CREDITS.
*/
#ifndef GUISPELLCHECKER_H
#define GUISPELLCHECKER_H
#include "GuiDialog.h"
#include "ControlSpellchecker.h"
#include "ui_SpellcheckerUi.h"
class QListWidgetItem;
namespace lyx {
namespace frontend {
class GuiSpellcheckerDialog : public GuiDialog, public Ui::SpellcheckerUi
{
Q_OBJECT
public:
GuiSpellcheckerDialog(LyXView & lv);
public Q_SLOTS:
void suggestionChanged(QListWidgetItem *);
private Q_SLOTS:
void acceptClicked();
void addClicked();
void replaceClicked();
void ignoreClicked();
void replaceChanged(const QString &);
void reject();
private:
///
void closeEvent(QCloseEvent * e);
/// update from controller
void partialUpdate(int id);
/// parent controller
ControlSpellchecker & controller();
////
void accept();
void add();
void ignore();
void replace();
///
void updateContents();
};
} // namespace frontend
} // namespace lyx
#endif // GUISPELLCHECKER_H