src/Builder4/Editor.bjs
[app.Builder.js] / src / Palete / GirObject.vala
index 7a45562..d3da377 100644 (file)
@@ -23,7 +23,8 @@ namespace Palete {
                public string propertyof;
                public string type;
                public string nodetype;
-               public string  package;
+               public string package;
+               public string direction; // used for vala in/out/ref...
                
                public GirObject paramset = null;
                public GirObject return_value = null;
@@ -51,6 +52,8 @@ namespace Palete {
                public Gee.HashMap<string,GirObject> props;
                public Gee.HashMap<string,GirObject> consts;
                public Gee.HashMap<string,GirObject> signals;
+               
+               public Gee.ArrayList<string> optvalues; // used by Roo only..
                public string doctxt;
 
 
@@ -85,6 +88,8 @@ namespace Palete {
                        this.props      = new Gee.HashMap<string,GirObject>();
                        this.consts     = new Gee.HashMap<string,GirObject>();
                        this.signals    = new Gee.HashMap<string,GirObject>();
+                       
+                       this.optvalues = new Gee.ArrayList<string>();
                        this.is_overlaid = false;
                        this.paramset = null;
                }
@@ -107,12 +112,14 @@ namespace Palete {
                                this.is_overlaid = true;
                                return;
                        }
-                       // print("Overlaying " +this.name + " with " + this.parent + "\n");
+                        
+                       //print("Overlaying " +this.name + " with " + this.parent + "\n");
 
                        var pcls = this.clsToObject( this.parent);
                        if (pcls == null) {
-                               throw new GirError.INVALID_VALUE("Could not find class : " + 
-                                       this.parent + " of " + this.name  + " in " + this.ns);
+                               return;
+                               //throw new GirError.INVALID_VALUE("Could not find class : " + 
+                               //      this.parent + " of " + this.name  + " in " + this.ns);
                        }
                        
                        pcls.overlayParent( );