20#ifndef KROSS_API_SCRIPTGUICLIENT_H
21#define KROSS_API_SCRIPTGUICLIENT_H
23#include "scriptcontainer.h"
24#include "scriptaction.h"
29#include <kxmlguiclient.h>
33namespace Kross { namespace Api {
37 class ScriptGUIClientPrivate;
54 typedef TQPtrList<TDEAction> List;
77 bool hasActionCollection( const TQString& name);
92 TQMap<TQString, ScriptActionCollection*> getActionCollections();
103 bool removeActionCollection( const TQString& name);
108 void reloadInstalledScripts();
115 bool installScriptPackage( const TQString& scriptpackagefile);
122 bool uninstallScriptPackage( const TQString& scriptpackagepath);
129 bool loadScriptConfigFile( const TQString& scriptconfigfile);
136 bool loadScriptConfigDocument( const TQString& scriptconfigfile, const TQDomDocument &document);
139 virtual void setXMLFile( const TQString& file, bool merge = false, bool setXMLDoc = true);
141 virtual void setDOMDocument( const TQDomDocument &document, bool merge = false);
149 KURL openScriptFile( const TQString& caption = TQString());
157 bool loadScriptFile();
165 bool executeScriptFile();
172 bool executeScriptFile( const TQString& file);
185 void showScriptManager();
193 void executionFailed( const TQString& errormessage, const TQString& tracedetails);
201 void successfullyExecuted();
212 ScriptGUIClientPrivate* d;
A collection to store ScriptAction shared pointers.
A ScriptAction extends a TDEAction by providing a wrapper around a ScriptContainer to execute scripti...
TDESharedPtr< ScriptAction > Ptr The name of the interpreter used to execute the scripting code.
The ScriptGUIClient class provides abstract access to scripting code used to extend an applications f...
void executionFinished(const Kross::Api::ScriptAction *) This signal is emited when the execution of a script is finished.
void collectionChanged(ScriptActionCollection *) Emitted if a ScriptActionCollection instances changed.
TQPtrList< TDEAction > List List of TDEAction instances.
void executionStarted(const Kross::Api::ScriptAction *) This signal is emited when the execution of a script is started.
The Kross scripting bridge to embed scripting functionality into an application.
|