Builder4/ClutterFiles.bjs
authorAlan Knowles <alan@akbkhome.com>
Sat, 28 Jun 2014 02:58:32 +0000 (10:58 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sat, 28 Jun 2014 02:58:32 +0000 (10:58 +0800)
Builder4/ClutterFiles.js
Builder4/ClutterFiles.vala

Builder4/ClutterFiles.bjs
Builder4/ClutterFiles.js
Builder4/ClutterFiles.vala

index 4e546ae..ddc4cab 100644 (file)
@@ -15,7 +15,7 @@
             "xtype": "ScrollActor",
             "|reactive": "true",
             "|void:set_size": "(float w, float h) \n{\n     if (this.el == null) {\n        print(\"object not ready yet?\");\n        return;\n    }\n   _this.filelayout_manager.el.max_column_width = w - 150;\n   this.el.set_size(this.el.get_stage().width-150,\n                        this.el.get_stage().height);\n            this.el.set_position(100,50);\n}\n",
-            "|void:show": "(Project.Project pr) {\n    // list all the files, and create new Xcls_fileitem for each one.\n    \n    // LEAK --- we should unref all the chilren...\n    this.filelayout.el.remove_all_children();\n    \n    print(\"clutter files - load project: \" + pr.name +\"\\n\");\n    var fiter = pr.files.map_iterator();\n    while (fiter.next()) {\n        var a = new Xcls_fileitem(this,fiter.get_value());\n        a.ref();\n        print(\"add to clutter file view: \" + fiter.get_value().name + \"\\n\");\n        this.filelayout.el.add_child(a.el);\n    }\n    this.el.show_all();\n}\n",
+            "|void:loadProject": "(Project.Project pr) {\n    // list all the files, and create new Xcls_fileitem for each one.\n    \n    // LEAK --- we should unref all the chilren...\n    this.filelayout.el.remove_all_children();\n    \n    print(\"clutter files - load project: \" + pr.name +\"\\n\");\n    var fiter = pr.files.map_iterator();\n    while (fiter.next()) {\n        var a = new Xcls_fileitem(this,fiter.get_value());\n        a.ref();\n        print(\"add to clutter file view: \" + fiter.get_value().name + \"\\n\");\n        this.filelayout.el.add_child(a.el);\n    }\n    this.el.show_all();\n}\n",
             "|xns": "Clutter",
             "items": [
                 {
index ef99e78..e379098 100644 (file)
@@ -67,7 +67,7 @@ ClutterFiles=new XObject({
                             this.el.get_stage().height);
                 this.el.set_position(100,50);
     },
-    'void:show' : (Project.Project pr) {
+    'void:loadProject' : (Project.Project pr) {
         // list all the files, and create new Xcls_fileitem for each one.
         
         // LEAK --- we should unref all the chilren...
index 33a71d1..0d43032 100644 (file)
@@ -98,7 +98,7 @@ public class Xcls_ClutterFiles : Object
                                 this.el.get_stage().height);
                     this.el.set_position(100,50);
         }
-    public void show(Project.Project pr) {
+    public void loadProject(Project.Project pr) {
             // list all the files, and create new Xcls_fileitem for each one.
             
             // LEAK --- we should unref all the chilren...