You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdeaddons/kate/kjswrapper/samples/katekjsconsolewindow.js

19 lines
419 B

function newWindowCallBack(mainwindow) {
var ac=mainwindow.actionCollection();
action = new TDEAction( ac, 'kjsconsole_show_action' );
action.text = 'Javascript Console Window';
action.icon = 'konsole';
mainwindow.showConsole = function()
{
KJSConsole();
}
action.connect( action, 'activated()', mainwindow, 'showConsole' );
}
setWindowConfiguration(null,newWindowCallBack,null);