summaryrefslogtreecommitdiffstats
path: root/kate/kjswrapper/samples/katekjsconsolewindow.js
blob: ef19ac14b17fb14e0584f0f16df7775751980fdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);