summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/actions/simple-actions.js
blob: 121c9d15b2496368e3d2b12e706e09bd2cc0ce85 (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 KMainWindow();

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();