Kross
ui/plugin.cpp
Go to the documentation of this file.
74 ScriptingPlugin::ScriptingPlugin(const QString& collectionName, const QString& userActionsFile, const QString& referenceActionsDir, QObject* parent)
88 Kross::ActionCollection* collection=Kross::Manager::self().actionCollection()->collection(d->collectionName);
109 void ScriptingPlugin::addObject(QObject* object, const QString& name, ChildrenInterface::Options options)
117 Kross::ActionCollection* collection=Kross::Manager::self().actionCollection()->collection(d->collectionName);
119 collection=new Kross::ActionCollection(d->collectionName, Kross::Manager::self().actionCollection());
122 QStringList allActionFiles = KGlobal::dirs()->findAllResources("appdata", "scripts/"+d->referenceActionsDir+"/*.rc");
127 else if (QFile::exists(d->userActionsFile)) //in case d->userActionsFile isn't in the standard local dir
209 Kross::ActionCollection* collection=Kross::Manager::self().actionCollection()->collection(d->collectionName);
210 bool collectionEmpty = !collection||(collection->actions().empty()&&collection->collections().empty());
224 "Collection name attribute represents the name of the menu, e.g., to use menu \"File\" use \"file\" or \"Help\" use \"help\". You can add new menus."
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Feb 9 2013 12:12:22 by doxygen 1.8.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Feb 9 2013 12:12:22 by doxygen 1.8.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.