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)
Manage the scripts on disks – find them and query them.
Definition: katescriptmanager.h:43
void sync()
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
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
void setScriptType(Kate::ScriptType scriptType)
Definition: katescript.h:86
Command
KStandardDirs * dirs()
int stat(const QString &path, KDE_struct_stat *buf)
bool hasGroup(const QString &group) const
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
void setKateVersion(const QString &kateVersion)
Definition: katescript.h:76
Definition: katescript.h:53
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
A specialized class for scripts that are of type KateScriptInformation::IndentationScript.
Definition: katecommandlinescript.h:80
KSharedConfigPtr config()
const QStringList & functions() const
Definition: katecommandlinescript.h:40
static QString katePartVersion()
Returns the current version of Kate Part: KDE X.Y.Z contains Kate Part X-1.Y.
Definition: kateglobal.cpp:59
void setGeneralHeader(const KateScriptHeader &generalHeader)
set the general header after construction of the script
Definition: katescript.cpp:229
const KShortcut & reload()
A specialized class for scripts that are of type KateScriptInformation::IndentationScript.
Definition: kateindentscript.h:94
void collect(bool force=false)
Find all of the scripts matching the wildcard directory.
Definition: katescriptmanager.cpp:89
virtual ~KateScriptManager()
Definition: katescriptmanager.cpp:52
void setBaseName(const QString &baseName)
Definition: kateindentscript.h:56
void unregisterTemplateScript(KTextEditor::TemplateScript *templateScript)
unregister a given script
Definition: katescriptmanager.cpp:389
KTextEditor::TemplateScript * registerTemplateScript(QObject *owner, const QString &script)
managing of scripts for the template handler.
Definition: katescriptmanager.cpp:378
QStringList findAllResources(const char *type, const QString &filter=QString(), SearchOptions options=NoSearchOptions) const
Definition: kateindentscript.h:30
Definition: katetemplatescript.h:28
void slotTemplateScriptOwnerDestroyed(QObject *owner)
Definition: katescriptmanager.cpp:400
T readEntry(const QString &key, const T &aDefault) const
const QStringList & indentLanguages() const
Definition: kateindentscript.h:48
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
QMap< QString, QString > entryMap() const
const KateIndentScriptHeader & indentHeader() const
Definition: kateindentscript.cpp:35
KateTemplateScript * templateScript(KTextEditor::TemplateScript *templateScript)
Definition: katescriptmanager.cpp:410
QStringList list(const QString &fileClass)
void setIndentLanguages(const QStringList &indentLanguages)
Definition: kateindentscript.h:46
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:52 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:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.