"items" : [
{
"id" : "compile_view",
- "* pack" : "add",
"xtype" : "VBox",
+ "* pack" : "add",
"gboolean homogeneous" : false,
"$ xns" : "Gtk",
"items" : [
},
{
"id" : "save_btn",
- "* pack" : "pack_start,true,true,0",
"xtype" : "Button",
+ "* pack" : "pack_start,true,true,0",
"$ xns" : "Gtk",
"utf8 label" : "Save",
"bool visible" : false
}
]
},
+ {
+ "* init" : "{\n this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);\n \n\n}\n",
+ "xtype" : "ScrolledWindow",
+ "* pack" : "add",
+ "$ xns" : "Gtk",
+ "items" : [
+ {
+ "listeners" : {
+ "cursor_changed" : "() => {\n var sel = this.el.get_selection();\n\n if (sel.count_selected_rows() < 1) {\n\n print(\"selected rows < 1\\n\");\n //??this.mo \n return ;\n }\n \n //console.log('changed');\n \n Gtk.TreeIter iter;\n Gtk.TreeModel mod;\n sel.get_selected(out mod, out iter);\n /*\n store.set(citer, \n 0, file + \":\" + line, \n 1, int.parse(line), \n 2, GLib.Markup.escape_text(line + \": \" + msg), \n 3, file,-1);\n \n });\n */\n \n \n \n // var val = \"\";\n GLib.Value value;\n _this.compile_result_store.el.get_value(iter, 3, out value);\n var fname = (string)value;\n GLib.Value lvalue;\n _this.compile_result_store.el.get_value(iter, 1, out lvalue);\n var line = (int) lvalue;\n \n \n \n \n \n \n print (\"loadfile %s : %d\", fname,line);\n \n _this.sourceview.loadFile(fname, line);\n \n \n \n \n}\n "
+ },
+ "id" : "compile_tree",
+ "* init" : "{\n var description = new Pango.FontDescription();\n description.set_size(8000);\n this.el.modify_font(description);\n\n}\n",
+ "* pack" : "add",
+ "xtype" : "TreeView",
+ "$ xns" : "Gtk",
+ "items" : [
+ {
+ "gint n_columns" : 4,
+ "id" : "compile_result_store",
+ "columns" : " typeof(string), typeof(int), typeof(string), typeof(string) ",
+ "* pack" : "set_model",
+ "xtype" : "TreeStore",
+ "$ xns" : "Gtk"
+ },
+ {
+ "utf8 title" : "Compile output",
+ "* init" : "{\n this.el.add_attribute(_this.renderer.el , \"markup\", 2 );\n \n}\n",
+ "xtype" : "TreeViewColumn",
+ "* pack" : "append_column",
+ "string id" : "column",
+ "$ xns" : "Gtk",
+ "items" : [
+ {
+ "id" : "renderer",
+ "* pack" : "pack_start,true",
+ "xtype" : "CellRendererText",
+ "$ xns" : "Gtk"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
{
"id" : "hpane",
- "* pack" : "pack_start,true,true,0",
"xtype" : "HPaned",
+ "* pack" : "pack_start,true,true,0",
"$ xns" : "Gtk",
"items" : [
{
},
{
"* init" : "{\n this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);\n \n\n}\n",
- "xtype" : "ScrolledWindow",
"* pack" : "add",
+ "xtype" : "ScrolledWindow",
"$ xns" : "Gtk",
"items" : [
{
"items" : [
{
"id" : "renderer",
- "* pack" : "pack_start,true",
"xtype" : "CellRendererText",
+ "* pack" : "pack_start,true",
"$ xns" : "Gtk"
}
]
static Xcls_ValaCompileErrors _ValaCompileErrors;
-public class Xcls_ValaCompileErrors : Object
+public class Xcls_ValaCompileErrors : Object
{
public Gtk.Popover el;
private Xcls_ValaCompileErrors _this;
}
public Xcls_compile_view compile_view;
public Xcls_save_btn save_btn;
+ public Xcls_compile_tree compile_tree;
+ public Xcls_compile_result_store compile_result_store;
+ public Xcls_renderer renderer;
public Xcls_hpane hpane;
public Xcls_sourceview sourceview;
public Xcls_compile_tree compile_tree;
public JsRender.JsRender? file;
public Json.Object notices;
- // ctor
+ // ctor
public Xcls_ValaCompileErrors()
{
_this = this;
child_0.ref();
this.el.add ( child_0.el );
- // listeners
+ //listeners
this.el.closed.connect( () => {
if (this.active) {
this.el.show();
});
}
- // user defined functions
+ // user defined functions
public void show (Json.Object tree, Gtk.Widget onbtn) {
}
this.hpane.el.set_position( 0);
}
- public class Xcls_compile_view : Object
+ public class Xcls_compile_view : Object
{
public Gtk.VBox el;
private Xcls_ValaCompileErrors _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_compile_view(Xcls_ValaCompileErrors _owner )
{
_this = _owner;
var child_0 = new Xcls_HBox3( _this );
child_0.ref();
this.el.pack_start ( child_0.el , false,false,0 );
- var child_1 = new Xcls_hpane( _this );
+ var child_1 = new Xcls_ScrolledWindow7( _this );
child_1.ref();
- this.el.pack_start ( child_1.el , true,true,0 );
+ this.el.add ( child_1.el );
+ var child_2 = new Xcls_hpane( _this );
+ child_2.ref();
+ this.el.pack_start ( child_2.el , true,true,0 );
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_HBox3 : Object
+ public class Xcls_HBox3 : Object
{
public Gtk.HBox el;
private Xcls_ValaCompileErrors _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_HBox3(Xcls_ValaCompileErrors _owner )
{
_this = _owner;
this.el.pack_start ( child_2.el , true,true,0 );
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_Button4 : Object
+ public class Xcls_Button4 : Object
{
public Gtk.Button el;
private Xcls_ValaCompileErrors _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_Button4(Xcls_ValaCompileErrors _owner )
{
_this = _owner;
this.el.label = "Compile and Run";
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_Button5 : Object
+
+ public class Xcls_Button5 : Object
{
public Gtk.Button el;
private Xcls_ValaCompileErrors _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_Button5(Xcls_ValaCompileErrors _owner )
{
_this = _owner;
// set gobject values
this.el.label = "Edit";
- // listeners
+ //listeners
this.el.clicked.connect( () => {
// is the file managed by the builder?
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_save_btn : Object
+
+ public class Xcls_save_btn : Object
{
public Gtk.Button el;
private Xcls_ValaCompileErrors _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_save_btn(Xcls_ValaCompileErrors _owner )
{
_this = _owner;
this.el.visible = false;
}
- // user defined functions
+ // user defined functions
+ }
+
+
+ public class Xcls_ScrolledWindow7 : Object
+ {
+ public Gtk.ScrolledWindow el;
+ private Xcls_ValaCompileErrors _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_ScrolledWindow7(Xcls_ValaCompileErrors _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.ScrolledWindow( null, null );
+
+ // my vars (dec)
+
+ // set gobject values
+ var child_0 = new Xcls_compile_tree( _this );
+ child_0.ref();
+ this.el.add ( child_0.el );
+
+ // init method
+
+ {
+ this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
+
+
+ }
+ }
+
+ // user defined functions
+ }
+ public class Xcls_compile_tree : Object
+ {
+ public Gtk.TreeView el;
+ private Xcls_ValaCompileErrors _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_compile_tree(Xcls_ValaCompileErrors _owner )
+ {
+ _this = _owner;
+ _this.compile_tree = this;
+ this.el = new Gtk.TreeView();
+
+ // my vars (dec)
+
+ // set gobject values
+ var child_0 = new Xcls_compile_result_store( _this );
+ child_0.ref();
+ this.el.set_model ( child_0.el );
+ var child_1 = new Xcls_column( _this );
+ child_1.ref();
+ this.el.append_column ( child_1.el );
+
+ // init method
+
+ {
+ var description = new Pango.FontDescription();
+ description.set_size(8000);
+ this.el.modify_font(description);
+
+ }
+
+ //listeners
+ this.el.cursor_changed.connect( () => {
+ var sel = this.el.get_selection();
+
+ if (sel.count_selected_rows() < 1) {
+
+ print("selected rows < 1\n");
+ //??this.mo
+ return ;
+ }
+
+ //console.log('changed');
+
+ Gtk.TreeIter iter;
+ Gtk.TreeModel mod;
+ sel.get_selected(out mod, out iter);
+ /*
+ store.set(citer,
+ 0, file + ":" + line,
+ 1, int.parse(line),
+ 2, GLib.Markup.escape_text(line + ": " + msg),
+ 3, file,-1);
+
+ });
+ */
+
+
+
+ // var val = "";
+ GLib.Value value;
+ _this.compile_result_store.el.get_value(iter, 3, out value);
+ var fname = (string)value;
+ GLib.Value lvalue;
+ _this.compile_result_store.el.get_value(iter, 1, out lvalue);
+ var line = (int) lvalue;
+
+
+
+
+
+
+ print ("loadfile %s : %d", fname,line);
+
+ _this.sourceview.loadFile(fname, line);
+
+
+
+
+ });
+ }
+
+ // user defined functions
+ }
+ public class Xcls_compile_result_store : Object
+ {
+ public Gtk.TreeStore el;
+ private Xcls_ValaCompileErrors _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_compile_result_store(Xcls_ValaCompileErrors _owner )
+ {
+ _this = _owner;
+ _this.compile_result_store = this;
+ this.el = new Gtk.TreeStore( 4, typeof(string), typeof(int), typeof(string), typeof(string) );
+
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
+ }
+
+ public class Xcls_column : Object
+ {
+ public Gtk.TreeViewColumn el;
+ private Xcls_ValaCompileErrors _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_column(Xcls_ValaCompileErrors _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.TreeViewColumn();
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.title = "Compile output";
+ var child_0 = new Xcls_renderer( _this );
+ child_0.ref();
+ this.el.pack_start ( child_0.el , true );
+
+ // init method
+
+ {
+ this.el.add_attribute(_this.renderer.el , "markup", 2 );
+
+ }
+ }
+
+ // user defined functions
+ }
+ public class Xcls_renderer : Object
+ {
+ public Gtk.CellRendererText el;
+ private Xcls_ValaCompileErrors _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_renderer(Xcls_ValaCompileErrors _owner )
+ {
+ _this = _owner;
+ _this.renderer = this;
+ this.el = new Gtk.CellRendererText();
+
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
}
- public class Xcls_hpane : Object
+
+
+
+
+ public class Xcls_hpane : Object
{
public Gtk.HPaned el;
private Xcls_ValaCompileErrors _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_hpane(Xcls_ValaCompileErrors _owner )
{
_this = _owner;
// my vars (dec)
// set gobject values
- var child_0 = new Xcls_ScrolledWindow8( _this );
+ var child_0 = new Xcls_ScrolledWindow13( _this );
child_0.ref();
this.el.add ( child_0.el );
- var child_1 = new Xcls_ScrolledWindow10( _this );
+ var child_1 = new Xcls_ScrolledWindow15( _this );
child_1.ref();
this.el.add ( child_1.el );
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_ScrolledWindow8 : Object
+ public class Xcls_ScrolledWindow13 : Object
{
public Gtk.ScrolledWindow el;
private Xcls_ValaCompileErrors _this;
// my vars (def)
- // ctor
- public Xcls_ScrolledWindow8(Xcls_ValaCompileErrors _owner )
+ // ctor
+ public Xcls_ScrolledWindow13(Xcls_ValaCompileErrors _owner )
{
_this = _owner;
this.el = new Gtk.ScrolledWindow( null, null );
this.el.add ( child_0.el );
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_sourceview : Object
+ public class Xcls_sourceview : Object
{
public Gtk.SourceView el;
private Xcls_ValaCompileErrors _this;
// my vars (def)
public string curfname;
- // ctor
+ // ctor
public Xcls_sourceview(Xcls_ValaCompileErrors _owner )
{
_this = _owner;
this.el.show_line_marks = true;
this.el.show_line_numbers = true;
- // init method
+ // init method
{
this.curfname = "";
}
}
- // user defined functions
+ // user defined functions
public void loadFile (string fname, int line ) {
}
}
- public class Xcls_ScrolledWindow10 : Object
+
+
+ public class Xcls_ScrolledWindow15 : Object
{
public Gtk.ScrolledWindow el;
private Xcls_ValaCompileErrors _this;
// my vars (def)
- // ctor
- public Xcls_ScrolledWindow10(Xcls_ValaCompileErrors _owner )
+ // ctor
+ public Xcls_ScrolledWindow15(Xcls_ValaCompileErrors _owner )
{
_this = _owner;
this.el = new Gtk.ScrolledWindow( null, null );
child_0.ref();
this.el.add ( child_0.el );
- // init method
+ // init method
{
this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
}
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_compile_tree : Object
+ public class Xcls_compile_tree : Object
{
public Gtk.TreeView el;
private Xcls_ValaCompileErrors _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_compile_tree(Xcls_ValaCompileErrors _owner )
{
_this = _owner;
child_1.ref();
this.el.append_column ( child_1.el );
- // init method
+ // init method
{
var description = new Pango.FontDescription();
}
- // listeners
+ //listeners
this.el.cursor_changed.connect( () => {
var sel = this.el.get_selection();
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_compile_result_store : Object
+ public class Xcls_compile_result_store : Object
{
public Gtk.TreeStore el;
private Xcls_ValaCompileErrors _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_compile_result_store(Xcls_ValaCompileErrors _owner )
{
_this = _owner;
// set gobject values
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_column : Object
+
+ public class Xcls_column : Object
{
public Gtk.TreeViewColumn el;
private Xcls_ValaCompileErrors _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_column(Xcls_ValaCompileErrors _owner )
{
_this = _owner;
child_0.ref();
this.el.pack_start ( child_0.el , true );
- // init method
+ // init method
{
this.el.add_attribute(_this.renderer.el , "markup", 2 );
}
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_renderer : Object
+ public class Xcls_renderer : Object
{
public Gtk.CellRendererText el;
private Xcls_ValaCompileErrors _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_renderer(Xcls_ValaCompileErrors _owner )
{
_this = _owner;
// set gobject values
}
- // user defined functions
+ // user defined functions
}
+
+
+
+
+
+
}