var ls = this.get('method-list-store');
this.data.allmethods.forEach(function(v) {
- ls.append( [ v ]);
+ ls.append( [ v , 0, 1 ]);
});
var ls = this.get('children-list-store');
this.data.allchildren.forEach(function(v) {
- ls.append( [ v ]);
+ ls.append( [ v , 0, 1]);
});
var ls = this.get('class-list-store');
+ var i =0;
for (var c in this.data.methods) {
- ls.append( [ c , true ]);
+ i++;
+ ls.append( [ c , true , i > 10 ? 1 : 0]);
};
xtype: Gtk.TreeView,
items : [
{
- xtype: Gtk.ListStore,
- id : "class-list-store",
- init : function()
- {
- XObject.prototype.init.call(this);
- this.el.set_column_types ( 6, [
- GObject.TYPE_STRING,
- GObject.TYPE_BOOLEAN,
- GObject.TYPE_STRING,
- GObject.TYPE_STRING,
- GObject.TYPE_STRING,
- GObject.TYPE_STRING
- ] );
-
- }
+ xtype: Gtk.TreeModelFilter,
+ init : function() {
+ this.items[0].pack = false;
+ this.items[0].init();
+ this.list = this.items[0];
+ this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);
+ this.el.set_visible_column(2);
+ XObject.prototype.init.call(this);
+
+ },
+ items : [
+ {
+ xtype: Gtk.ListStore,
+ id : "class-list-store",
+ pack : false,
+ init : function()
+ {
+ XObject.prototype.init.call(this);
+ this.el.set_column_types ( 6, [
+ GObject.TYPE_STRING,
+ GObject.TYPE_BOOLEAN,
+ GObject.TYPE_BOOLEAN,
+ GObject.TYPE_STRING,
+ GObject.TYPE_STRING,
+ GObject.TYPE_STRING
+ ] );
+
+ }
+ }
+ ]
},
{
xtype: Gtk.TreeViewColumn,
title : "Class",
+ expand : true,
items : [
{
xtype: Gtk.CellRendererText
xtype: Gtk.TreeView,
items : [
{
- xtype: Gtk.ListStore,
- id : "method-list-store"
+ xtype: Gtk.TreeModelFilter,
+ init : function() {
+ this.items[0].pack = false;
+ this.items[0].init();
+ this.list = this.items[0];
+ this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);
+ this.el.set_visible_column(2);
+ XObject.prototype.init.call(this);
+
+ },
+ items : [
+ {
+ xtype: Gtk.ListStore,
+ id : "method-list-store",
+ init : function()
+ {
+ XObject.prototype.init.call(this);
+ this.el.set_column_types ( 6, [
+ GObject.TYPE_STRING,
+ GObject.TYPE_BOOLEAN,
+ GObject.TYPE_BOOLEAN,
+ GObject.TYPE_STRING,
+ GObject.TYPE_STRING,
+ GObject.TYPE_STRING
+ ] );
+
+ }
+ }
+ ]
},
{
xtype: Gtk.TreeViewColumn,
title : "Methods",
+ expand : true,
items : [
{
xtype: Gtk.CellRendererText
{
xtype: Gtk.TreeViewColumn,
title : "Active",
- pack : false,
items : [
{
xtype: Gtk.CellRendererToggle,
items : [
{
xtype: Gtk.ListStore,
- id : "children-list-store"
+ id : "children-list-store",
+ init : function()
+ {
+ XObject.prototype.init.call(this);
+ this.el.set_column_types ( 6, [
+ GObject.TYPE_STRING,
+ GObject.TYPE_BOOLEAN,
+ GObject.TYPE_STRING,
+ GObject.TYPE_STRING,
+ GObject.TYPE_STRING,
+ GObject.TYPE_STRING
+ ] );
+
+ }
},
{
xtype: Gtk.TreeViewColumn,
title : "Child classes",
+ expand : true,
items : [
{
xtype: Gtk.CellRendererText
{
xtype: Gtk.TreeViewColumn,
title : "Active",
- pack : false,
items : [
{
xtype: Gtk.CellRendererToggle,