Kate
katescriptmanager.cpp
Go to the documentation of this file.
65 if(highestPriorityIndenter && indenter->indentHeader().priority() < highestPriorityIndenter->indentHeader().priority()) {
118 const QStringList list = KGlobal::dirs()->findAllResources("data", "katepart/script/" + type + "/*.js", KStandardDirs::NoDuplicates);
236 commandHeader.setFunctions(pairs.take("functions").split(QRegExp("\\s*,\\s*"), QString::SkipEmptyParts));
260 kDebug( 13050 ) << "Python: " << indenter("Python")->global("triggerCharacters").isValid() << "\n";
261 kDebug( 13050 ) << "Python: " << indenter("Python")->function("triggerCharacters").isValid() << "\n";
378 KTextEditor::TemplateScript* KateScriptManager::registerTemplateScript (QObject* owner, const QString& script)
410 KateTemplateScript* KateScriptManager::templateScript(KTextEditor::TemplateScript* templateScript)
void setCodec(QTextCodec *codec)
void clear()
Manage the scripts on disks – find them and query them.
Definition: katescriptmanager.h:43
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
bool help(KTextEditor::View *view, const QString &cmd, QString &msg)
get help for a command
Definition: katescriptmanager.cpp:353
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
bool unregisterCommand(KTextEditor::Command *cmd)
Definition: katecmd.cpp:59
static bool parseMetaInformation(const QString &url, QHash< QString, QString > &pairs)
Extract the meta data from the script at url and put in pairs.
Definition: katescriptmanager.cpp:275
QString readLine(qint64 maxlen)
void setFunctions(const QStringList &functions)
Definition: katecommandlinescript.h:38
bool exec(KTextEditor::View *view, const QString &cmd, QString &errorMsg)
execute command
Definition: katescriptmanager.cpp:333
void setRequiredStyle(const QString &requiredStyle)
Definition: kateindentscript.h:41
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
const_iterator constBegin() const
void setScriptType(Kate::ScriptType scriptType)
Definition: katescript.h:86
void setKateVersion(const QString &kateVersion)
Definition: katescript.h:76
Definition: katescript.h:53
A specialized class for scripts that are of type KateScriptInformation::IndentationScript.
Definition: katecommandlinescript.h:80
bool isNull() const
bool isLetter() const
const QStringList & functions() const
Definition: katecommandlinescript.h:40
const_iterator constEnd() const
static QString katePartVersion()
Returns the current version of Kate Part: KDE X.Y.Z contains Kate Part X-1.Y.
Definition: kateglobal.cpp:60
bool isEmpty() const
QString absoluteFilePath() const
QString trimmed() const
const_iterator constEnd() const
void setGeneralHeader(const KateScriptHeader &generalHeader)
set the general header after construction of the script
Definition: katescript.cpp:229
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
A specialized class for scripts that are of type KateScriptInformation::IndentationScript.
Definition: kateindentscript.h:94
QString right(int n) const
void collect(bool force=false)
Find all of the scripts matching the wildcard directory.
Definition: katescriptmanager.cpp:89
QString toLower() const
const T value(const Key &key) const
virtual ~KateScriptManager()
Definition: katescriptmanager.cpp:52
void setBaseName(const QString &baseName)
Definition: kateindentscript.h:56
bool contains(QChar ch, Qt::CaseSensitivity cs) const
void unregisterTemplateScript(KTextEditor::TemplateScript *templateScript)
unregister a given script
Definition: katescriptmanager.cpp:389
virtual void close()
const_iterator constBegin() const
KTextEditor::TemplateScript * registerTemplateScript(QObject *owner, const QString &script)
managing of scripts for the template handler.
Definition: katescriptmanager.cpp:378
QString mid(int position, int n) const
T take(const Key &key)
const QChar at(int position) const
int length() const
Definition: kateindentscript.h:30
Definition: katetemplatescript.h:28
void slotTemplateScriptOwnerDestroyed(QObject *owner)
Definition: katescriptmanager.cpp:400
const QStringList & indentLanguages() const
Definition: kateindentscript.h:48
QString baseName() const
KateIndentScript * indenter(const QString &language)
Get an indentation script for the given language – if there is more than one result, this will return the script with the highest priority.
Definition: katescriptmanager.cpp:60
const KateIndentScriptHeader & indentHeader() const
Definition: kateindentscript.cpp:35
KateTemplateScript * templateScript(KTextEditor::TemplateScript *templateScript)
Definition: katescriptmanager.cpp:410
void setIndentLanguages(const QStringList &indentLanguages)
Definition: kateindentscript.h:46
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.