2 "build_module" : "builder",
3 "gen_extended" : false,
7 "Gtk.PositionType position" : "Gtk.PositionType.TOP",
8 "Xcls_MainWindow window" : "",
11 "id" : "ValaCompileResults",
12 "int height_request" : 400,
13 "int width_request" : 600,
17 "* pack" : "set_child",
18 "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
19 "bool hexpand" : true,
20 "bool vexpand" : true,
21 "gboolean homogeneous" : false,
22 "id" : "compile_view",
28 " this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);",
34 "bool hexpand" : true,
35 "bool vexpand" : true,
38 "$ xns" : "GtkSource",
42 " \tthis.css = new Gtk.CssProvider();",
44 "\tthis.css.load_from_string(",
45 "\t\t\"#compile-results-view { font: 10px monospace ;}\"",
48 "\t\t\tGtk.StyleContext.add_provider_for_display(",
49 "\t\tthis.el.get_display(),",
51 "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION",
59 "Gtk.CssProvider css" : "",
60 "bool editable" : false,
61 "bool hexpand" : true,
62 "bool show_line_numbers" : false,
63 "bool vexpand" : true,
65 "string name" : "compile-results-view",
69 "xtype" : "ScrolledWindow"
77 "( Gtk.Widget onbtn, bool reset) {",
78 "\tvar win = this.window.el;",
79 " var w = win.get_width();",
80 " var h = win.get_height();",
82 " // left tree = 250, editor area = 500?",
84 " var new_w = int.min(750, w-100);",
85 " if (new_w > (w-100)) {",
88 " this.el.set_size_request( int.max(100, new_w), int.max(100, h-120));",
89 " \tif (this.el.parent == null) {",
90 "\t\tthis.el.set_parent(win);",
92 " // Gtk.Allocation rect;",
93 "\t//onbtn.get_allocation(out rect);",
94 " //this.el.set_pointing_to(rect);",
100 "\t\tvar buf = (GtkSource.Buffer)this.sourceview.el.get_buffer();",
101 "\t\tbuf.set_text(\"\",0);",
110 "| void xaddLine" : [
113 "\tif (this.window.windowstate.project.path != BuilderApplication.valasource.file.project.path) {",
114 "\t\t// not our project.",
119 "\tvar buf = (GtkSource.Buffer)this.sourceview.el.get_buffer();",
120 "\tGtk.TextIter iter;",
121 "\tbuf.get_end_iter (out iter);",
122 "\tbuf.insert(ref iter, str, str.length);",
124 "\tbuf.get_end_iter (out iter);",
125 "\tthis.sourceview.el.scroll_to_iter(iter, 0.0f, true, 0.0f, 1.0f);",
132 "name" : "ValaCompileResults"