/*************************************************************************** * copyright : (C) 2007 by Pascal Brachet * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef SPELLERDIALOG_H #define SPELLERDIALOG_H #include "ui_spellerdialog.h" #include "latexeditor.h" #include #include #include class SpellerDialog : public QDialog { Q_OBJECT public: SpellerDialog(QWidget *parent=0,LatexEditor *ed=0, QString AspellCommand="", QString lang="", QString encoding=""); ~SpellerDialog(); Ui::SpellerDialog ui; private : QString spell_command, spell_lang, spell_encoding; LatexEditor *editor; QPointer spellproc; int numlines,currentline, wordcount; QStringList miswordList,suggestionList, ignoredwordList; QList lineList,colList; QPointer progressDialog; int startpos, endpos, deltacol, spellingline; protected: void closeEvent( QCloseEvent* ); private slots: void accept(); void scanDocument(); void spellingInit(); void spellingNext(); void endProcess(int err); void readOutput(); void slotIgnore(); void slotReplace(); void updateItem(); signals: void scanfinished(); }; #endif