diff options
author | Leandro Melo <leandro.melo@nokia.com> | 2010-05-20 13:56:11 +0200 |
---|---|---|
committer | Leandro Melo <leandro.melo@nokia.com> | 2010-05-20 14:10:34 +0200 |
commit | 55b26868e61bdfc11cb7de23471ebd1dbc9973d3 (patch) | |
tree | 05ecd2ad062dd61734dd7c95cbfb7b093e773954 /src/plugins/texteditor/generichighlighter/progressdata.h | |
parent | 9b6c86bdc17f184937c36c5a101e6eead36d9e89 (diff) |
Generic highlighter is now part of the text editor plugin.
Diffstat (limited to 'src/plugins/texteditor/generichighlighter/progressdata.h')
-rw-r--r-- | src/plugins/texteditor/generichighlighter/progressdata.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/src/plugins/texteditor/generichighlighter/progressdata.h b/src/plugins/texteditor/generichighlighter/progressdata.h new file mode 100644 index 0000000000..a621c15dc7 --- /dev/null +++ b/src/plugins/texteditor/generichighlighter/progressdata.h @@ -0,0 +1,72 @@ +/************************************************************************** +** +** This file is part of Qt Creator +** +** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +** +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** Commercial Usage +** +** Licensees holding valid Qt Commercial licenses may use this file in +** accordance with the Qt Commercial License Agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Nokia. +** +** GNU Lesser General Public License Usage +** +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** If you are unsure which license is appropriate for your use, please +** contact the sales department at http://qt.nokia.com/contact. +** +**************************************************************************/ + +#ifndef PROGRESSDATA_H +#define PROGRESSDATA_H + +#include <QtCore/QStringList> + +namespace TextEditor { +namespace Internal { + +class ProgressData +{ +public: + ProgressData(); + + void setOffset(const int offset); + int offset() const; + + void incrementOffset(); + void incrementOffset(const int increment); + + void saveOffset(); + void restoreOffset(); + + void setOnlySpacesSoFar(const bool onlySpaces); + bool onlySpacesSoFar() const; + + void setWillContinueLine(const bool willContinue); + bool willContinueLine() const; + + void setCaptures(const QStringList &captures); + const QStringList &captures() const; + +private: + int m_offset; + int m_savedOffset; + bool m_onlySpacesSoFar; + bool m_willContinueLine; + QStringList m_captures; +}; + +} // namespace Internal +} // namespace TextEditor + +#endif // PROGRESSDATA_H |