Kate
katecommandlinescript.cpp
Go to the documentation of this file.
33 KateCommandLineScript::KateCommandLineScript(const QString &url, const KateCommandLineScriptHeader &header)
51 bool KateCommandLineScript::callFunction(const QString& cmd, const QStringList args, QString &errorMessage)
virtual bool setSelection(const Range &range)=0
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
virtual bool help(KTextEditor::View *view, const QString &cmd, QString &msg)
Definition: katecommandlinescript.cpp:155
virtual const QStringList & cmds()
Definition: katecommandlinescript.cpp:107
bool unregisterCommand(KTextEditor::Command *cmd)
Definition: katecmd.cpp:59
KateScript objects represent a script that can be executed and inspected.
Definition: katescript.h:106
QString backtrace(const QScriptValue &error, const QString &header=QString())
Returns the backtrace when a script has errored out.
Definition: katescript.cpp:106
virtual ~KateCommandLineScript()
Definition: katecommandlinescript.cpp:40
ScriptActionInfo actionInfo(const QString &cmd)
Definition: katecommandlinescript.cpp:76
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QStringList splitArgs(const QString &cmd, Options flags=NoOptions, Errors *err=0)
bool callFunction(const QString &cmd, const QStringList args, QString &errorMessage)
Definition: katecommandlinescript.cpp:51
void setShortcut(const QString &shortcut)
Definition: katecommandlinescript.h:64
void setCommand(const QString &command)
Definition: katecommandlinescript.h:54
const QStringList & functions() const
Definition: katecommandlinescript.h:40
Errors
void setInteractive(bool interactive)
Definition: katecommandlinescript.h:62
void setCategory(const QString &category)
Definition: katecommandlinescript.h:60
void clearExceptions()
Clears any uncaught exceptions in the script engine.
Definition: katescript.cpp:128
const KateCommandLineScriptHeader & commandHeader()
Definition: katecommandlinescript.cpp:45
Definition: kateview.h:78
KateCommandLineScript(const QString &url, const KateCommandLineScriptHeader &header)
Definition: katecommandlinescript.cpp:33
virtual bool supportsRange(const QString &cmd)
Definition: katecommandlinescript.cpp:150
bool setView(KateView *view)
set view for this script for the execution will trigger load!
Definition: katescript.cpp:219
void displayBacktrace(const QScriptValue &error, const QString &header=QString())
Displays the backtrace when a script has errored out.
Definition: katescript.cpp:119
Definition: katecommandlinescript.h:47
virtual bool exec(KTextEditor::View *view, const QString &cmd, QString &msg)
Definition: katecommandlinescript.cpp:112
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:51 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:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.