/*
    Copyright (c) 2009 by Nigmatullin Ruslan <euroelessar@gmail.com>

 ***************************************************************************
 *                                                                         *
 *   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 SPELLERHIGHLIGHTER_H
#define SPELLERHIGHLIGHTER_H

#include <QSyntaxHighlighter>
#include <QTextEdit>

class SpellerHighlighter : public QSyntaxHighlighter
{
	Q_OBJECT
public:
	SpellerHighlighter( QTextEdit *edit );
	void setActive( bool active );
protected:
	virtual void highlightBlock( const QString &text );
private:
	bool m_active;
};

#endif // SPELLERHIGHLIGHTER_H
