namespace KJSEmbed


List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types


Detailed Description

JSHookLoader (class)

JSHookLoader

A class for executing javascript code fragment loaded from a config file. By default the commands are loaded from the config group 'JScript Hooks'.

JSConsolePart (class)

JSConsolePart

A KPart that provides a console for executing Javascript commands.

MessageLogWidget (class)

MessageLogWidget

A widget for displaying a message log.

DialogFactory (class)

DialogFactory

Factory class that loads dialogs from Qt Designer XML files.

JSConsoleWidget (class)

JSConsoleWidget

A QWidget that provides a console for executing Javascript commands. Creating a JS console is easy, as you can see below:


   KJS::Object global( new KJS::ObjectImp() );
   KJS::Interpreter *js = new KJS::Interpreter( global );
   KJSEmbed::JSConsoleWidget *win = new KJSEmbed::JSConsoleWidget( js );
   win->addBindings( js->globalExec(), global );

This example creates a console for a JS interpreter and adds a print function to the interpreter.

JSObjectProxy (class)

JSObjectProxy

A JS object that provides a binding to a QObject. The JS object created lets scripts access all the properties defined by the object in a similar way to the DCOP/QObject bridge.

The following example creates a KJS::ObjectImp that provides a binding to the properties of a QLineEdit . This binding is then used to create a property 'edit' for the object 'jsparent'.


   QLineEdit *edit = new QLineEdit();
   KJSEmbed::JSObjectProxy *proxy = new KJSEmbed::JSObjectProxy( js, edit );
   jsparent.put( js->globalExec(), "edit", proxy );

It is


Generated by: rich on pegasus on Fri Nov 9 01:30:42 2001, using kdoc 2.0a53.