X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=tests%2FGladeTest.vala;h=5c0cf017a0c2d323691d12ba1768505ccda2477f;hb=fd48eb7398d7c37db2fd01eaf7fbfb3bfc288a9e;hp=0267bb35d3c04ac536a3a48ecc4d289c3b6850c4;hpb=ba90a699471d2ea54fa57e9148b0518103ee2a1e;p=app.Builder.js diff --git a/tests/GladeTest.vala b/tests/GladeTest.vala index 0267bb35d..5c0cf017a 100644 --- a/tests/GladeTest.vala +++ b/tests/GladeTest.vala @@ -10,32 +10,25 @@ int main (string[] args) { new JsRender.Lang_Class(); GLib.Log.set_always_fatal(LogLevelFlags.LEVEL_ERROR | LogLevelFlags.LEVEL_CRITICAL); Project.Project.loadAll(); -/* - var p = Palete.factory("Roo"); - var cl = p.getClass("Roo.form.Form").toJSON();; + var proj = Project.Project.getProject("Builder4"); - var n = new Json.Node(Json.NodeType.OBJECT); - n.set_object(cl); - var generator = new Json.Generator (); - generator.indent = 4; - generator.pretty = true; - generator.set_root (n); + proj.scanDirs(); + print("load %s\n", proj.firstPath() + "/WindowLeftProps.bjs"); + + var tf = proj.files.get(proj.firstPath() + "/WindowLeftProps.bjs"); + tf.loadItems(); - print(generator.to_data (null)); - */ - + + var w = new Gtk.Window( Gtk.WindowType.TOPLEVEL ); var left_props =new Xcls_GladeView(); - + left_props.el.show(); w.add(left_props.el); - w.show_all(); - + w.show_all(); + left_props.load(tf); - var p = left_props.el.get_project(); - - p.load("/home/alan/gitlive/app.Builder.js/tests/test.glade"); - + Gtk.main();