
Demo Calc
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
This is a demo of Krusader's embedded JS-interpreter, based on KJSEmbed.
It shows how to create a simple GUI from a .ui-file, connect UI-signals to JS-Functions and interact with Krusader (setting the window-title). I must confess that this is not very useful but it's a nice demo. ;)
Installation:
-) Copy calc.js and calc.ui to ~/.kde/share/apps/krusader/js/
(you may have to create this dir)
-) Go to the UserAction Konfigurator-page and import action.xml
Please note, that the JS-extension-stuff is under heavy development. The interface may change in future. I've tested this with krusader-cvs-20050510.
The Calculator is based on a KJSEmbed examle and adapted to Krusader.
Have fun,
Jonas
Codeknight
13 years ago
http://www.krusader.org/phpBB/viewtopic.php?t=1989
Report