Sample/Editor.bjs
authorAlan Knowles <alan@akbkhome.com>
Thu, 4 Nov 2010 03:15:37 +0000 (11:15 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 4 Nov 2010 03:15:37 +0000 (11:15 +0800)
Sample/Editor.bjs

index 6d5ae18..3b66208 100644 (file)
@@ -6,8 +6,8 @@
     "path": "/home/alan/gitlive/app.Builder.js/Sample/Editor.bjs",
     "items": [
         {
+            "|save": "function (self, event) {\n    if (!this.get('/Editor.RightEditor').save()) {\n        // no hiding with errors.\n        return true;\n    }\n    this.get('/Editor').activePath = false;\n    this.el.hide();\n    return true;\n}",
             "listeners": {
-                "destroy_event": "function (self, event) {\n    if (!this.get('/Editor.RightEditor').save()) {\n        // no hiding with errors.\n        return true;\n    }\n    this.get('/Editor').activePath = false;\n    this.el.hide();\n    return true;\n}",
                 "delete_event": "function (self, event) {\n    if (!this.get('/Editor.RightEditor').save()) {\n        // no hiding with errors.\n        return true;\n    }\n    this.el.hide();\n    this.get('/Editor').activePath = false;\n    return true;\n}",
                 "configure_event": "function (self, object) {\n    this.pos = this.el.get_position();\n\n\n    return false;\n}",
                 "show": "function (self) {\n    if (this.pos) {\n        this.el.set_uposition(this.pos.root_x,this.pos.root_y);\n    }\n}"
@@ -17,9 +17,9 @@
             "title": "Application Builder - Editor",
             "width_request": 500,
             "xtype": "Window",
+            "|": "function() {\n    \n}\n",
             "|init": "function() {\n    XObject.prototype.init.call(this);\n   // this.show_all();\n}\n",
             "|xns": "Gtk",
-            "|": "function() {\n    \n}\n",
             "items": [
                 {
                     "pack": "add",