// init method
- this.el.add_attribute(_this.packages_render.el , "text", 0 ); }
+ this.el.add_attribute(_this.packages_render.el , "text", 0 );
+ }
// user defined functions
}
{
this.el.add_attribute(_this.packages_render_use.el , "active", 1 );
- } }
+ }
+ }
// user defined functions
}
// init method
- this.el.add_attribute(_this.directory_render.el , "text", 0 ); }
+ this.el.add_attribute(_this.directory_render.el , "text", 0 );
+ }
// user defined functions
}
{
this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
- } }
+ }
+ }
// user defined functions
}
_this.build_pack_target.el.set_text(cg.target_bin);
_this.build_compile_flags.el.set_text(cg.compile_flags);
-
+ _this.set_vbox.cgroup = cg;
//_this.files_tree_store.updatesel(cg);
// load the srouces
//this.el.set_value(citer, 1, items.get(i) );
};
this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);
-
+ _this.set_vbox.el.hide();
}
}
public class Xcls_TreeViewColumn35 : Object
{
this.el.add_attribute(_this.targets_render.el , "text", 0 );
- } }
+ }
+ }
// user defined functions
}
// my vars (def)
+ public Project.GtkValaSettings cgroup;
// ctor
public Xcls_set_vbox(ValaProjectSettings _owner )
this.el = new Gtk.VBox( false, 0 );
// my vars (dec)
+ this.cgroup = null;
// set gobject values
var child_0 = new Xcls_Label38( _this );
}
this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);
+ }
+ public void update () {
+
+
+ Gtk.TreeIter citer;
+
+ for(var i =0 ; i < this.el.iter_n_children(null); i++) {
+ this.el.iter_nth_child(citer,null,i);
+
+ GLib.Value val;
+ this.el.get_value(iter,0, out val);
+ var fn = (string) val;
+
+ var active = false;
+ if (_this.set_vbox.cgroup.sources.contains(fn)) {
+ active = true;
+ }
+
+ this.el.set_value(citer, 3, active ); // checked
+ }
+
+
}
}
public class Xcls_TreeViewColumn46 : Object
this.el.add_attribute(_this.files_render.el , "markup", 1 ); // basnemae
/* this.el.add_attribute(_this.files_render.el , "markup", 2 );
- */ }
+ */
+ }
// user defined functions
}
{
this.el.add_attribute(_this.files_render_use.el , "active", 3 );
- } }
+ }
+ }
// user defined functions
}
m.get_value(iter, 2, out ftval);
var ftype = (string)ftval;
- // full name...
+ // full name...
GLib.Value fval;
m.get_value(iter, 0, out fval);
var fn = (string)fval;
+
+ var cg = _this.set_vbox.cgroup;
// what's the sleected target?
// update the list..
// if ftype is a dir == then toggle all the bellow.
// if ftype is a file .. see if all the files in that directory are check and check the dir.
- return;
- var def = _this.project.compilegroups.get("_default_");
- var items = def.packages;
+
+
if ((bool)val) {
// renive
- items.remove(fn);
+ cg.sources.remove(fn);
} else {
- items.add(fn);
+ cg.sources.add(fn);
}
});