summaryrefslogtreecommitdiffstats
path: root/kate/kjswrapper/samples/katekjsconsolewindow.js
blob: e253ce033ea70d7050416ac6157a0279434d0219 (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 KAction( 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);