KTextEditor
katescript.h
Thinish wrapping around KTextEditor::DocumentPrivate, exposing the methods we want exposed and adding...
Definition katescriptdocument.h:34
This class wraps the global editor instance KateGlobal, exposing some helper methods such as the clip...
Definition katescripteditor.h:26
Thinish wrapping around KTextEditor::ViewPrivate, exposing the methods we want exposed and adding som...
Definition katescriptview.h:32
KateScript objects represent a script that can be executed and inspected.
Definition katescript.h:107
QJSValue global(const QString &name)
Get a QJSValue for a global item in the script given its name, or an invalid QJSValue if no such glob...
Definition katescript.cpp:73
void displayBacktrace(const QJSValue &error, const QString &header=QString())
Displays the backtrace when a script has errored out.
Definition katescript.cpp:57
bool setView(KTextEditor::ViewPrivate *view)
set view for this script for the execution will trigger load!
Definition katescript.cpp:224
void clearExceptions()
Clears any uncaught exceptions in the script engine.
Definition katescript.cpp:66
QJSValue evaluate(const QString &program, const FieldMap &env=FieldMap())
Execute a piece of code.
Definition katescript.cpp:184
static QString backtrace(const QJSValue &error, const QString &header=QString())
Returns the backtrace when a script has errored out.
Definition katescript.cpp:44
void setGeneralHeader(const KateScriptHeader &generalHeader)
set the general header after construction of the script
Definition katescript.cpp:235
QJSValue function(const QString &name)
Return a function in the script of the given name, or an invalid QJSValue if no such function exists.
Definition katescript.cpp:82
bool hasException(const QJSValue &object, const QString &file)
Checks for exception and gives feedback on the console.
Definition katescript.cpp:211
KateScript(const QString &urlOrScript, enum InputType inputType=InputURL)
Create a new script representation, passing either a file or the script content urlOrScript to it.
Definition katescript.cpp:26
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition katetextblock.h:18
Unknown
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.