src/Builder4/ValaCompileResults.bjs
[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" : "",
9  "items" : [
10   {
11    "int height_request" : 400,
12    "id" : "ValaCompileResults",
13    "| void show" : "( Gtk.Widget onbtn) {\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(250, 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\n    if (this.el.relative_to == null) {\n        this.el.set_relative_to(onbtn);\n    }\n    this.el.show_all();\n   \n    while(Gtk.events_pending()) { \n            Gtk.main_iteration();\n    }       \n}\n",
14    "Xcls_MainWindow window" : "",
15    "xtype" : "Popover",
16    "Gtk.PositionType position" : "Gtk.PositionType.TOP",
17    "bool active" : false,
18    "int width_request" : 600,
19    "$ xns" : "Gtk",
20    "bool modal" : true,
21    "items" : [
22     {
23      "id" : "compile_view",
24      "* pack" : "add",
25      "xtype" : "Box",
26      "gboolean homogeneous" : false,
27      "$ xns" : "Gtk",
28      "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
29      "items" : [
30       {
31        "* init" : "{\n this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);\n \n\n}\n",
32        "bool hexpand" : true,
33        "* pack" : "pack_end,true,true,0",
34        "xtype" : "ScrolledWindow",
35        "$ xns" : "Gtk",
36        "items" : [
37         {
38          "* 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",
39          "xtype" : "SourceView",
40          "* pack" : "add",
41          "$ xns" : "Gtk",
42          "bool show_line_numbers" : true
43         }
44        ]
45       }
46      ]
47     }
48    ]
49   }
50  ]
51 }