2 "build_module" : "roobuilder",
3 "gen_extended" : false,
11 "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
15 "* prop" : "end_child",
26 "string tab_label" : "Documentation",
27 "xtype" : "NotebookPage"
34 "* prop" : "start_child",
35 "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
36 "bool hexpand" : true,
37 "bool vexpand" : true,
42 "bool hexpand" : true,
43 "bool search_mode_enabled" : true,
48 "bool activates_default" : true,
49 "bool hexpand" : true,
50 "xtype" : "SearchEntry"
57 "bool hexpand" : true,
58 "bool vexpand" : true,
74 "\t// GLib.debug(\"listitme is is %s\", ((Gtk.ListItem)listitem).get_type().name());",
76 "\t//var expand = (Gtk.TreeExpander) ((Gtk.ListItem)listitem).get_child();",
77 "\tvar expand = (Gtk.TreeExpander) ((Gtk.ListItem)listitem).get_child();",
80 "\tvar hbox = (Gtk.Box) expand.child;",
83 "\tvar img = (Gtk.Image) hbox.get_first_child();",
84 "\tvar lbl = (Gtk.Label) img.get_next_sibling();",
86 "\tvar lr = (Gtk.TreeListRow)((Gtk.ListItem)listitem).get_item();",
87 "\tvar node = (JsRender.Node) lr.get_item();",
88 "\tif (node == null || node.fqn() == \"\") {",
92 " expand.set_hide_expander( !node.hasChildren() );",
93 " \texpand.set_list_row(lr);",
95 " \tnode.bind_property(\"iconResourceName\",",
96 " img, \"resource\",",
97 " GLib.BindingFlags.SYNC_CREATE);",
99 " \tnode.bind_property(\"nodeTitleProp\",",
101 " GLib.BindingFlags.SYNC_CREATE);",
102 " \tnode.bind_property(\"nodeTipProp\",",
103 " lbl, \"tooltip_markup\",",
104 " GLib.BindingFlags.SYNC_CREATE);",
105 " \t// bind image...",
113 "\tvar expand = new Gtk.TreeExpander();",
115 "\texpand.set_indent_for_depth(true);",
116 "\texpand.set_indent_for_icon(true);",
117 "\tvar hbox = new Gtk.Box(Gtk.Orientation.HORIZONTAL,0);",
118 "\tvar icon = new Gtk.Image();",
119 "\tvar lbl = new Gtk.Label(\"\");",
120 "\tlbl.use_markup = true;",
121 "\tlbl.ellipsize = Pango.EllipsizeMode.END;",
123 "\ticon.margin_end = 4;",
124 " \tlbl.justify = Gtk.Justification.LEFT;",
125 " \tlbl.xalign = 0;",
127 "//\tlistitem.activatable = true; ??",
129 "\thbox.append(icon);",
130 "\thbox.append(lbl);",
131 "\texpand.set_child(hbox);",
132 "\t((Gtk.ListItem)listitem).set_child(expand);",
138 "xtype" : "SignalListItemFactory"
141 "string title" : "Object Navigation",
142 "xtype" : "ColumnViewColumn"
149 "$ Gtk.TreeListModelCreateModelFunc create_func" : [
152 "\treturn ((JsRender.Node)item).childstore;",
158 "bool autoexpand" : true,
159 "bool passthrough" : false,
162 "$ GLib.Type item_type" : "typeof(JsRender.Node)",
165 "xtype" : "ListStore"
168 "xtype" : "TreeListModel"
171 "xtype" : "SingleSelection"
174 "xtype" : "ColumnView"
177 "xtype" : "ScrolledWindow"
188 "(Gtk.Widget onbtn) {",
189 " this.el.set_parent(onbtn);",
190 "\tthis.el.popup();",