Kate
KateIndentScript Class Reference
#include <kateindentscript.h>
Inheritance diagram for KateIndentScript:
Public Member Functions | |
KateIndentScript (const QString &url, const KateIndentScriptHeader &header) | |
QPair< int, int > | indent (KateView *view, const KTextEditor::Cursor &position, QChar typedCharacter, int indentWidth) |
const KateIndentScriptHeader & | indentHeader () const |
const QString & | triggerCharacters () |
Public Member Functions inherited from KateScript | |
KateScript (const QString &urlOrScript, enum InputType inputType=InputURL) | |
virtual | ~KateScript () |
QString | backtrace (const QScriptValue &error, const QString &header=QString()) |
void | clearExceptions () |
void | displayBacktrace (const QScriptValue &error, const QString &header=QString()) |
const QString & | errorMessage () |
QScriptValue | function (const QString &name) |
KateScriptHeader & | generalHeader () |
QScriptValue | global (const QString &name) |
bool | load () |
void | setGeneralHeader (const KateScriptHeader &generalHeader) |
bool | setView (KateView *view) |
const QString & | url () |
Additional Inherited Members | |
Public Types inherited from KateScript | |
enum | InputType { InputURL, InputSCRIPT } |
Protected Member Functions inherited from KateScript | |
bool | hasException (const QScriptValue &object, const QString &file) |
Protected Attributes inherited from KateScript | |
QScriptEngine * | m_engine |
Detailed Description
A specialized class for scripts that are of type KateScriptInformation::IndentationScript.
Definition at line 94 of file kateindentscript.h.
Constructor & Destructor Documentation
KateIndentScript::KateIndentScript | ( | const QString & | url, |
const KateIndentScriptHeader & | header | ||
) |
Definition at line 28 of file kateindentscript.cpp.
Member Function Documentation
QPair< int, int > KateIndentScript::indent | ( | KateView * | view, |
const KTextEditor::Cursor & | position, | ||
QChar | typedCharacter, | ||
int | indentWidth | ||
) |
Returns a pair where the first value is the indent amount, and the second value is the alignment.
Definition at line 55 of file kateindentscript.cpp.
const KateIndentScriptHeader & KateIndentScript::indentHeader | ( | ) | const |
Definition at line 35 of file kateindentscript.cpp.
const QString & KateIndentScript::triggerCharacters | ( | ) |
Definition at line 40 of file kateindentscript.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.