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.
tdebindings/kjsembed/docs/examples/actions/simple-actions.js

20 lines
358 B

#!/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();