parley
scriptmanager.cpp
Go to the documentation of this file.
131 QString errorMessage = "<p>" + i18np("A script could not be activated and has been disabled.", "%1 scripts could not be activated and have been disabled.", failed.count()) + ' ' + i18n("This probably means that there are errors in the script or that the required packages are not installed.") + "</p>";
133 KMessageBox::detailedError(m_editor, errorMessage, errorDetails.join("<hr/>"), i18n("Script Activation"));
void addObjects(QMap< QString, QObject * > objects)
Adds more than one scripting Objects to the script.
Definition: script.cpp:116
void clear()
ScriptManager(Editor::EditorWindow *editor)
Definition: scriptmanager.cpp:31
QStringList enabledScripts()
Returns a list of filenames (full path) of enabled scripts.
Definition: scriptmanager.cpp:81
void push_back(const T &value)
void addObject(QObject *obj, const QString &name)
Adds a QObject as a module for the script.
Definition: scriptmanager.cpp:138
void addScriptAction(const QString &name, KAction *action)
Add a KAction to the Scripts menu.
Definition: scriptmanager.cpp:162
bool isActivated()
Returns true if the script was successfully activated; false otherwise.
Definition: script.cpp:36
static QString getScriptEntry(QString desktopFile)
Parses the desktop desktopFile given and returns the value of "Script" entry.
Definition: scriptmanager.cpp:65
QString join(const QString &separator) const
QString getScriptFileName(QString desktopFile)
Returns the full path to the script name given in the desktopFile.
Definition: scriptmanager.cpp:74
const char * name() const
int count(const T &value) const
This class represents the activated script and is used by the ScriptManager to activate/deactivate sc...
Definition: script.h:31
bool empty() const
void loadScripts()
Loads (activates) all the available scripts and notifies the user if any script was not activated (du...
Definition: scriptmanager.cpp:112
Parley scripting class (main entry point of a Parley Kross script)
Definition: parley.h:152
static QMap< QString, QString > categories()
Returns a QMap (from from categories codenames to categories display label) to be used in KPluginSele...
Definition: scriptmanager.cpp:57
QString errorMessage()
Returns an html error message if there have been errors in the script.
Definition: script.cpp:121
Definition: editor.h:50
static QStringList getDesktopFiles()
Finds all the available desktop files in {PARLEY_DATA_FOLDER}/plugins.
Definition: scriptmanager.cpp:45
QString absolutePath() const
void disablePlugin(QString desktopFile)
Modify the parleyrc configuration so it disables the dektopFile plugin.
Definition: scriptmanager.cpp:100
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.