// static array of all projects.
public Gee.HashMap<string,Project> projects;
-
+
public bool projects_loaded = false;
public Gee.HashMap<string,JsRender.JsRender> files ;
//tree : false,
public string xtype;
+
+ public JSON.Object json_project_data;
+
bool is_scanned;
public Project (string path) {
this.name = GLib.Path.get_basename(path); // default..
-
+ this.json_project_data = new JSON.Object();
+
this.is_scanned = false;
this.paths = new Gee.HashMap<string,string>();
this.files = new Gee.HashMap<string,JsRender.JsRender>();
return;
}
- var obj = node.get_object ();
+ var obj = node.get_object ();
var xtype = obj.get_string_member("xtype");
var proj = factory(xtype, fpath);
-
+
+ proj.json_project_data = obj; // store the original object...
+
proj.fn = Path.get_basename(jsonfile).split(".")[0];
// might not exist?
}
}
-
\ No newline at end of file
+