summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/actions/simple-actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/docs/examples/actions/simple-actions.js')
-rw-r--r--kjsembed/docs/examples/actions/simple-actions.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/kjsembed/docs/examples/actions/simple-actions.js b/kjsembed/docs/examples/actions/simple-actions.js
new file mode 100644
index 00000000..121c9d15
--- /dev/null
+++ b/kjsembed/docs/examples/actions/simple-actions.js
@@ -0,0 +1,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();