Builder4/Editor.bjs.26RBMX
authorAlan Knowles <alan@roojs.com>
Fri, 19 Sep 2014 07:37:07 +0000 (15:37 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 19 Sep 2014 07:37:07 +0000 (15:37 +0800)
Builder4/Editor.bjs
Builder4/Editor.vala
Builder4/Editor.bjs.9QU1LX
Builder4/Editor.bjs.H6IGMX

Builder4/Editor.bjs
Builder4/Editor.vala

index 0d8c32f..f53f52a 100644 (file)
@@ -15,7 +15,7 @@
             "# string key" : "\"\"",
             "* pack" : "add",
             "xtype" : "VBox",
-            "|   void show" : "(JsRender.Node node, string ptype, string key)\n{\n    this.ptype = ptype;\n    this.key  = key;\n    this.node = node;\n    \n   string val = \"\";\n    // find the text for the node..\n    if (ptype == \"listener\") {\n        val = node.listeners.get(key);\n    \n    } else {\n        val = node.props.get(key);\n    }\n    this.view.load(val);\n    this.key_edit.el.text = key;    \n\n}",
+            "|   void show" : "(JsRender.JsRender file, JsRender.Node node, string ptype, string key)\n{\n    this.ptype = ptype;\n    this.key  = key;\n    this.node = node;\n    this.file = file;\n    \n   string val = \"\";\n    // find the text for the node..\n    if (ptype == \"listener\") {\n        val = node.listeners.get(key);\n    \n    } else {\n        val = node.props.get(key);\n    }\n    this.view.load(val);\n    this.key_edit.el.text = key;    \n\n}",
             "# bool pos" : false,
             "string id" : "Editor",
             "# bool dirty" : false,
index f1bcdef..b5f8f25 100644 (file)
@@ -94,11 +94,12 @@ public class Editor : Object
         return true;
     
     }
-    public   void show (JsRender.Node node, string ptype, string key)
+    public   void show (JsRender.JsRender file, JsRender.Node node, string ptype, string key)
     {
         this.ptype = ptype;
         this.key  = key;
         this.node = node;
+        this.file = file;
         
        string val = "";
         // find the text for the node..