summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/actions/simple-actions.js
blob: 63fcd83d1ef538a10b8d764adeac4ae214cbfa95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env kjscmd

var mw = new TDEMainWindow();

var view = new KTextEdit(mw);
mw.setCentralWidget( view );

mw.open = function() {
  System.err.println('open!!!!!!!!!!!!!!!!!!!!!!!!');
}

StdAction.quit( mw, 'close()', mw.actionCollection() );
StdAction.open( 0, 0, mw.actionCollection() );


mw.createGUI("kjscmdui.rc");
mw.show();

application.exec();