5 "path" : "/home/alan/gitlive/app.Builder.js/src/Builder4/GtkView.bjs",
8 "build_module" : "builder",
12 "size_allocate" : "(aloc) => {\n\n this.width = aloc.width;\n this.height =aloc.height;\n }\n"
15 "| void createThumb" : "() {\n \n \n if (this.file == null) {\n return;\n }\n var filename = this.file.getIconFileName(false);\n \n var win = this.el.get_parent_window();\n var width = win.get_width();\n var height = win.get_height();\n\n Gdk.Pixbuf screenshot = Gdk.pixbuf_get_from_window(win, 0, 0, width, height); // this.el.position?\n\n screenshot.save(filename,\"png\");\n return;\n \n \n \n \n \n \n \n // should we hold until it's printed...\n \n \n\n \n \n\n\n \n \n}\n",
16 "# Gtk.Widget lastObj" : "null",
17 "| void loadFile" : "(JsRender.JsRender file) \n{\n \n // this.el.set_position((int)(this.el.max_position * 0.7));\n this.el.set_position(this.el.max_position );\n this.file = null;\n \n if (file.tree == null) {\n return;\n }\n this.file = file;\n if (this.lastObj != null) {\n this.container.el.remove(this.lastObj);\n }\n \n // hide the compile view at present..\n \n \n var w = this.width;\n var h = this.height;\n \n print(\"ALLOC SET SIZES %d, %d\\n\", w,h); \n \n // set the container size min to 500/500 or 20 px less than max..\n w = int.max (w-20, 500);\n h = int.max (h-20, 500); \n \n print(\"SET SIZES %d, %d\\n\", w,h); \n _this.container.el.set_size_request(w,h);\n \n _this.view_layout.el.set_size(w,h); // should be baded on calc.. -- see update_scrolled.\n var rgba = Gdk.RGBA ();\n rgba.parse (\"#ccc\");\n _this.view_layout.el.override_background_color(Gtk.StateFlags.NORMAL, rgba);\n \n \n\tvar x = new JsRender.NodeToGtk(file.tree);\n var obj = x.munge() as Gtk.Widget;\n this.lastObj = null;\n\tif (obj == null) {\n \treturn;\n\t}\n\tthis.lastObj = obj;\n \n this.container.el.add(obj);\n obj.show_all();\n \n \n \n}\n ",
19 "Xcls_MainWindow main_window" : "",
21 "# JsRender.JsRender file" : "null",
23 "| void compileNotice" : "( string type, string file, int line, string message) {\n // if type = \"START\"... then we reset the tree?\n // the issue is that the compiler is continually going..\n // so editing a file etc.. may change things.?\n // probably not an issue.\n if (type ==\"START\") {\n // reset the tree;\n return;\n }\n var ts = _this.compile_result_store;\n var top = 0;\n switch(type) {\n case \"ERR\":\n top = 0;\n break;\n case \"WARN\":\n top =1;\n break;\n case \"DEPR\":\n top =2;\n break;\n }\n \n //var tn = ts.nodeFindOrCreate(null,top.to_string(), type);\n //tn = ts.nodeFindOrCreate(tn, \"%d:%s\".printf(top, file), file); \n //ts.nodeFindOrAppend(tn, \"%d:%s:%d\".printf(top, file,line), message); \n // tree:\n \n // error_type\n // filename\n // line - message\n \n // sort (and 'id'?)\n \n // 0-2 : fname : line\n // display\n \n \n}\n",
27 "* pack" : "pack1,true,true",
28 "xtype" : "ScrolledWindow",
39 "* pack" : "put,10,10",
48 "id" : "compile_view",
50 "* pack" : "pack2,true,true",
51 "gboolean homogeneous" : false,
56 "* pack" : "pack_start,false,false,0",
60 "* pack" : "pack_start,true,true,0",
63 "utf8 label" : "Full Compile"
68 "* pack" : "pack_start,true,true,0",
70 "gboolean homogeneous" : true,
80 "id" : "compile_result_store",
81 "columns" : " typeof(string), typeof(int), typeof(string), typeof(string) ",
82 "* pack" : "set_model",
83 "xtype" : "TreeStore",
87 "utf8 title" : "Compile output",
88 "xtype" : "TreeViewColumn",
89 "string id" : "column",
93 "* pack" : "pack_start,false",
94 "xtype" : "CellRendererText",
102 "* pack" : "pack_start,true,true,0",
103 "xtype" : "ScrolledWindow",
107 "gboolean show_line_marks" : true,
110 "$ xns" : "GtkSource",
111 "gboolean show_line_numbers" : true,
112 "gboolean editable" : false