SourceXtreme, Inc has posted the first in a series of articles on development with KJSEmbed. KJSEmbed is the KDE JavaScript engine with bindings for Qt/KDE.These bindings allow people to create scripts that can tightly integrate into KDE quickly with simple JavaScript. This article goes through the process of how to build a core script, add database connectivity and to add GUI control. Both developers and non-developers are encouraged to check it out.
Vitural Basic for linux-land. Small, custom apps are very easy to throw together quickly with this stuff. Even for developing bigger applications, this could be a great environment for prototyping.
Thats the intention. With budding KDevelop integration we will soon have a full IDE, and some better tools.
In part three I’m going to cover how to migrate a KJSEmbed app from javascript to C++. Very few changes must occur to convert KJSEmbed to C++, and the Qt designer files are still useful. This way effort is not lost when moving from the prototype stage to the actual development of the application.
Is this the language used to deploy say things like `kdialog –yesno “Do you want to quit?”‘. Please clarify. We need something as simple as Visual Basic. Yes…I agree simplicity is relative, butVb is really simple to learn. When you type the above kdialog command on the command line [without the begining “`” and ending “‘”, you get a yes/no dialog in KDE.
Cb..
Very cool app.
Are there any plans to support development in Java? Javascript is cool, but I prefer Java (and I’m not much of a C++ programmer).
There are already Java bindings for Qt/KDE available. They’re part of the kdebindings package.
> Is this the language used to deploy say things like
> `kdialog –yesno “Do you want to quit?”
kdialog is a C++ app which is intended as a helper for shell scripts. after all, there’s no reason they shouldn’t be pretty and well integrated too =)
but doing the same with KJSEmbed (or PyKDE, RubyKDE or even JavaKDE) is quite easy as well. this is because KDE has a nice set of dialog classes where you can say things like:
KMessageBox::questionYesNo(0, “The question?”, “Window Title”);
this sort of powerful, useful, sane and well-documented API allows the kdialog app to offer over 20 types of dialogs to shell scripts and remain a svelt couple hundred lines of code. other fun KDE command line apps include kdesu and the dcop* apps …
all that aside, KJSEmbed rocks and has even more potential given another release or two. kudos to all those involved…