You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit
|
2 years ago | |
|---|---|---|
| .. | ||
| bindings | 2 years ago | |
| bindwizard | 4 years ago | |
| builtins | 5 years ago | |
| cpptests | 7 years ago | |
| docs | 2 years ago | |
| kjsembed | 7 years ago | |
| plugin | 2 years ago | |
| plugins | 2 years ago | |
| qjscmd | 7 years ago | |
| qjscmdw | 7 years ago | |
| qtbindings | 2 years ago | |
| stdlib | 7 years ago | |
| tdescript | 2 years ago | |
| tests | 4 years ago | |
| tools | 2 years ago | |
| Doxyfile | 13 years ago | |
| Doxyfile-Internal | 12 years ago | |
| Makefile.am | 3 years ago | |
| README | 14 years ago | |
| TODO | 16 years ago | |
| binding_type.desktop | 13 years ago | |
| customobject_imp.cpp | 5 years ago | |
| customobject_imp.h | 5 years ago | |
| design.h | 14 years ago | |
| doxygen_fakes.h | 14 years ago | |
| global.cpp | 14 years ago | |
| global.h | 5 years ago | |
| jsbinding.cpp | 6 years ago | |
| jsbinding.h | 5 years ago | |
| jsbindingbase.h | 5 years ago | |
| jsbindingplugin.cpp | 5 years ago | |
| jsbindingplugin.h | 2 years ago | |
| jsbuiltin.cpp | 13 years ago | |
| jsbuiltin.h | 5 years ago | |
| jsbuiltin_imp.cpp | 5 years ago | |
| jsbuiltin_imp.h | 5 years ago | |
| jsbuiltinproxy.cpp | 14 years ago | |
| jsbuiltinproxy.h | 5 years ago | |
| jsconsolewidget.cpp | 5 years ago | |
| jsconsolewidget.h | 2 years ago | |
| jseventmapper.cpp | 5 years ago | |
| jseventmapper.h | 5 years ago | |
| jseventutils.cpp | 14 years ago | |
| jseventutils.h | 5 years ago | |
| jsfactory.cpp | 5 years ago | |
| jsfactory.h | 5 years ago | |
| jsfactory_imp.cpp | 5 years ago | |
| jsfactory_imp.h | 5 years ago | |
| jsobjecteventproxy.cpp | 14 years ago | |
| jsobjecteventproxy.h | 2 years ago | |
| jsobjectproxy.cpp | 5 years ago | |
| jsobjectproxy.h | 5 years ago | |
| jsobjectproxy_imp.cpp | 5 years ago | |
| jsobjectproxy_imp.h | 5 years ago | |
| jsopaqueproxy.cpp | 5 years ago | |
| jsopaqueproxy.h | 5 years ago | |
| jsopaqueproxy_imp.cpp | 5 years ago | |
| jsopaqueproxy_imp.h | 5 years ago | |
| jsproxy.cpp | 5 years ago | |
| jsproxy.h | 5 years ago | |
| jsproxy_imp.cpp | 5 years ago | |
| jsproxy_imp.h | 5 years ago | |
| jssecuritypolicy.cpp | 14 years ago | |
| jssecuritypolicy.h | 5 years ago | |
| jsvalueproxy.cpp | 5 years ago | |
| jsvalueproxy.h | 5 years ago | |
| jsvalueproxy_imp.cpp | 5 years ago | |
| jsvalueproxy_imp.h | 5 years ago | |
| kjs.pro | 14 years ago | |
| kjscmd.cpp | 5 years ago | |
| kjscmd.desktop | 11 years ago | |
| kjsembedpart.cpp | 5 years ago | |
| kjsembedpart.h | 2 years ago | |
| kjsembedpart_imp.cpp | 5 years ago | |
| kjsembedpart_imp.h | 5 years ago | |
| ksimpleprocess.cpp | 5 years ago | |
| ksimpleprocess.h | 2 years ago | |
| lgpl.txt | 14 years ago | |
| qjscmd.cpp | 5 years ago | |
| qjsembed.nsi | 7 years ago | |
| qjsembed.pri | 7 years ago | |
| qjsembed.pro | 7 years ago | |
| qtstubs.cpp | 14 years ago | |
| qtstubs.h | 2 years ago | |
| setup_qtonly | 14 years ago | |
| slotproxy.cpp | 14 years ago | |
| slotproxy.h | 2 years ago | |
| slotutils.cpp | 5 years ago | |
| slotutils.h | 5 years ago | |
| testkjsembed.cpp | 5 years ago | |
| xmlactionclient.cpp | 13 years ago | |
| xmlactionclient.h | 2 years ago | |
README
WARNING:
-------
This library does not keep source or binary compatibility. Unless every one
of your users compiles from source and recompiles after upgrading kjsembed,
you should be making a complete copy of this code in your app and using that
instead of the installed version.
-----------------------------------------------------------------------------
A library for embedding the KJS Javascript interpreter in application.
- A tutorial is under development, see http://xmelegance.org/kjsembed/
or take a look in the docs directory.
- For information on using the library run kdoc over the header files.
Here is an example interactive session with the test application, all
lines beginning with 'kjs>' show the commands typed.
-- Enter a JS expression and press enter --
kjs> 10+20
30
kjs> print("Hello World!")
Hello World!
undefined
kjs> Math.sin(0)
0
kjs> Math.cos(0)
1
kjs> console
JSConsoleWidget (KJSEmbed::JSConsoleWidget)
kjs> console.childCount()
4
kjs> console.child(1)
CmdEdit (TQComboBox)
kjs> console.child(2)
RunButton (TQPushButton)
kjs> console.child("RunButton")
RunButton (TQPushButton)
kjs> console.child("RunButton").text = "Go!"
Go!
kjs> console.caption = "Different Title"
Different Title
Copyright (C) 2001-2003, Richard J. Moore <rich@kde.org>