Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

KJSEmbed::JSFactory Class Reference

Factory class for KJSEmbed. More...

#include <factory.h>

List of all members.

Static Public Methods

KJS::Interpreter * createInterpreter ()
KJS::Object addObject (KJS::Interpreter *js, QObject *obj, KJS::Object &parent, const char *name=0)
KJS::Object bind (KJS::Interpreter *js, QObject *obj)
void addStdBindings (KJSEmbedPart *part, KJS::ExecState *exec, KJS::Object &object)
void addBuiltIn (KJSEmbedPart *part, KJS::ExecState *state, KJS::Object &parent)
void addFactory (KJSEmbedPart *part, KJS::ExecState *state, KJS::Object &parent)
void addIO (KJSEmbedPart *part, KJS::ExecState *state, KJS::Object &parent)
void addSystem (KJSEmbedPart *part, KJS::ExecState *state, KJS::Object &parent)
void addWidgets (KJSEmbedPart *part, KJS::ExecState *state, KJS::Object &parent)
QObjectcreate (QString classname, QObject *parent=0, const char *name=0)
QWidgetloadUI (const QString &uiFile, QObject *connector=0, QWidget *parent=0, const char *name=0)


Detailed Description

Factory class for KJSEmbed.


Member Function Documentation

KJS::Interpreter* createInterpreter [static]
 

Returns a new interpreter each time it is called.

KJS::Object addObject KJS::Interpreter * js,
QObject * obj,
KJS::Object & parent,
const char * name = 0
[static]
 

Publishes 'obj' as property 'name' of object 'parent'.

The binding is defined using JSObjectProxy, and is subject to the current default SecurityPolicy.

KJS::Object bind KJS::Interpreter * js,
QObject * obj
[static]
 

Returns a JS::Object that provides a binding to the specified QObject.

QObject* create QString classname,
QObject * parent = 0,
const char * name = 0
[static]
 

Creates an instance of a QObject subclass.

If the instance cannot be created then 0 is returned.

QWidget* loadUI const QString & uiFile,
QObject * connector = 0,
QWidget * parent = 0,
const char * name = 0
[static]
 

Loads the widget defined in the specified .ui file.

If the widget cannot be created then 0 is returned.


The documentation for this class was generated from the following file:
Generated at Sat Feb 1 03:23:35 2003 for KJSEmbed by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001