resources/RooUsage.txt
[app.Builder.js] / src / Builder4 / ValaCompileResults.bjs
1 {
2  "name" : "ValaCompileResults",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/alan/gitlive/app.Builder.js/src/Builder4/ValaCompileResults.bjs",
6  "permname" : "",
7  "modOrder" : "",
8  "build_module" : "builder",
9  "items" : [
10   {
11    "int height_request" : 400,
12    "id" : "ValaCompileResults",
13    "| void show" : "( Gtk.Widget onbtn, bool reset) {\n\tint w, h;\n \n\tthis.window.el.get_size(out w, out h);\n    \n    // left tree = 250, editor area = 500?\n    \n    var new_w = int.min(750, w-100);\n    if (new_w > (w-100)) {\n        new_w = w-100;\n    }\n    this.el.set_size_request( int.max(100, new_w), int.max(100, h-120));\n \n\n    if (this.el.relative_to == null) {\n        this.el.set_relative_to(onbtn);\n    }\n    this.el.show_all();\n   // not sure why..\n   \n   if (reset) {\n\t\tvar buf = (Gtk.SourceBuffer)this.sourceview.el.get_buffer();\n\t\tbuf.set_text(\"\",0);\n\t}\n   \n    while(Gtk.events_pending()) { \n            Gtk.main_iteration();\n    }\n    \n    \n    \n}\n",
14    "Xcls_MainWindow window" : "",
15    "xtype" : "Popover",
16    "Gtk.PositionType position" : "Gtk.PositionType.TOP",
17    "bool active" : true,
18    "int width_request" : 600,
19    "$ xns" : "Gtk",
20    "| void addLine" : "(string str) {\n\tvar buf = (Gtk.SourceBuffer)this.sourceview.el.get_buffer();\n\tGtk.TextIter iter;\n\tbuf.get_end_iter (out  iter);\n\tbuf.insert(ref iter, str, str.length);\n\t/// scroll..\n\tbuf.get_end_iter (out  iter);\n\tthis.sourceview.el.scroll_to_iter(iter, 0.0f, true, 0.0f, 1.0f);\n\t\n\n}\n",
21    "bool modal" : true,
22    "items" : [
23     {
24      "id" : "compile_view",
25      "* pack" : "add",
26      "xtype" : "Box",
27      "gboolean homogeneous" : false,
28      "$ xns" : "Gtk",
29      "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
30      "items" : [
31       {
32        "* init" : "{\n this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);\n \n\n}\n",
33        "bool hexpand" : true,
34        "* pack" : "pack_end,true,true,0",
35        "xtype" : "ScrolledWindow",
36        "$ xns" : "Gtk",
37        "items" : [
38         {
39          "id" : "sourceview",
40          "* init" : "{\n\n    var description =   Pango.FontDescription.from_string(\"monospace\");\n    description.set_size(8000);\n    this.el.override_font(description);\n\n\n}\n",
41          "xtype" : "SourceView",
42          "* pack" : "add",
43          "bool editable" : false,
44          "$ xns" : "Gtk",
45          "bool show_line_numbers" : false
46         }
47        ]
48       }
49      ]
50     }
51    ]
52   }
53  ]
54 }