#include <kjsembedpart.h>
Inheritance diagram for KJSEmbed::KJSEmbedPart::
Public Slots | |
virtual bool | openURL (const KURL &url) |
bool | openURL (const QString &url) |
virtual bool | executeScript (const QString &filename) |
virtual bool | execute (const QString &script) |
bool | loadActionSet (const QString &file) |
QString | loadScript (const QString &file) |
Public Methods | |
KJSEmbedPart (QObject *parent=0, const char *name=0) | |
KJSEmbedPart (QWidget *wparent, const char *wname=0, QObject *parent=0, const char *name=0) | |
KJSEmbedPart (KJS::Interpreter *js, QWidget *wparent=0, const char *wname=0, QObject *parent=0, const char *name=0) | |
virtual | ~KJSEmbedPart () |
KJS::Interpreter * | interpreter () const |
virtual JSConsoleWidget * | view () |
void | publishStdBindings () |
KJS::Object | publish (QObject *obj, const char *name=0) |
KJS::Object | bind (QObject *obj) |
virtual bool | run (KJSEmbed::XMLActionClient *client, const KJSEmbed::XMLActionScript &script) |
Protected Methods | |
virtual bool | openFile () |
Friends | |
class | KJSEmbedPartImp |
|
Create a KJSEmbedPart.
|
|
Create a KJSEmbedPart for which the parents of the view and part are different.
|
|
Create a KJSEmbedPart with the specified interpreter.
|
|
Cleans up.
|
|
Returns the current interpreter.
|
|
Returns the view widget, creating one if required.
|
|
Overloaded to use the interpreter's global ExecState and object.
|
|
Publishes 'obj' as property 'name' of the global object.
|
|
Binds a QObject to a Javascript object using JSObjectProxy.
|
|
Reimplemented to run KJS actions in the interpreter.
|
|
Opens a URL. If the URL has the protocol 'javascript' then it is executed. |
|
Opens a URL. If the URL has the protocol 'javascript' then it is executed. |
|
Loads and runs the specified file.
|
|
Executes the specified string.
|
|
Loads the XML actions defined in the specified file to the default XMLActionClient.
|
|
Loads a script from the specified file, removing the #! line (if present).
|
|
For internal use only. |