1 static CodeInfo _CodeInfo;
3 public class CodeInfo : Object
6 private CodeInfo _this;
8 public static CodeInfo singleton()
10 if (_CodeInfo == null) {
11 _CodeInfo= new CodeInfo();
22 this.el = new Gtk.Popover();
27 var child_1 = new Xcls_Paned1( _this );
29 this.el.child = child_1.el;
32 // user defined functions
33 public void show (Gtk.Widget onbtn) {
34 this.el.set_parent(onbtn);
37 public class Xcls_Paned1 : Object
40 private CodeInfo _this;
46 public Xcls_Paned1(CodeInfo _owner )
49 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
54 var child_1 = new Xcls_Notebook2( _this );
56 this.el.end_child = child_1.el;
57 var child_2 = new Xcls_Box5( _this );
59 this.el.start_child = child_2.el;
62 // user defined functions
64 public class Xcls_Notebook2 : Object
66 public Gtk.Notebook el;
67 private CodeInfo _this;
73 public Xcls_Notebook2(CodeInfo _owner )
76 this.el = new Gtk.Notebook();
81 var child_1 = new Xcls_NotebookPage3( _this , this);
85 // user defined functions
87 public class Xcls_NotebookPage3 : Object
89 public Gtk.NotebookPage el;
90 private CodeInfo _this;
94 public string tab_label;
97 public Xcls_NotebookPage3(CodeInfo _owner , Xcls_Notebook2 notebook)
102 this.tab_label = "Documentation";
103 var child_1 = new Xcls_WebView4( _this );
105 notebook.el.append_page( child_1.el , new Gtk.Label(this.tab_label) );
108 // user defined functions
110 public class Xcls_WebView4 : Object
112 public WebKit.WebView el;
113 private CodeInfo _this;
119 public Xcls_WebView4(CodeInfo _owner )
122 this.el = new WebKit.WebView();
126 // set gobject values
129 // user defined functions
134 public class Xcls_Box5 : Object
137 private CodeInfo _this;
143 public Xcls_Box5(CodeInfo _owner )
146 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
150 // set gobject values
151 this.el.hexpand = true;
152 this.el.vexpand = true;
153 var child_1 = new Xcls_SearchBar6( _this );
155 this.el.append( child_1.el );
156 var child_2 = new Xcls_ScrolledWindow595( _this );
158 this.el.append( child_2.el );
161 // user defined functions
163 public class Xcls_SearchBar6 : Object
165 public Gtk.SearchBar el;
166 private CodeInfo _this;
172 public Xcls_SearchBar6(CodeInfo _owner )
175 this.el = new Gtk.SearchBar();
179 // set gobject values
180 this.el.hexpand = true;
181 this.el.search_mode_enabled = true;
182 var child_1 = new Xcls_SearchEntry1881( _this );
184 this.el.child = child_1.el;
187 // user defined functions
189 public class Xcls_SearchEntry1881 : Object
191 public Gtk.SearchEntry el;
192 private CodeInfo _this;
198 public Xcls_SearchEntry1881(CodeInfo _owner )
201 this.el = new Gtk.SearchEntry();
205 // set gobject values
206 this.el.hexpand = true;
207 this.el.activates_default = true;
210 // user defined functions
214 public class Xcls_ScrolledWindow595 : Object
216 public Gtk.ScrolledWindow el;
217 private CodeInfo _this;
223 public Xcls_ScrolledWindow595(CodeInfo _owner )
226 this.el = new Gtk.ScrolledWindow();
230 // set gobject values
231 this.el.hexpand = true;
232 this.el.vexpand = true;
233 var child_1 = new Xcls_ColumnView596( _this );
235 this.el.child = child_1.el;
238 // user defined functions
240 public class Xcls_ColumnView596 : Object
242 public Gtk.ColumnView el;
243 private CodeInfo _this;
249 public Xcls_ColumnView596(CodeInfo _owner )
252 var child_1 = new Xcls_SingleSelection35( _this );
254 this.el = new Gtk.ColumnView( child_1.el );
258 // set gobject values
259 var child_2 = new Xcls_ColumnViewColumn597( _this );
261 this.el.append_column( child_2.el );
264 // user defined functions
266 public class Xcls_ColumnViewColumn597 : Object
268 public Gtk.ColumnViewColumn el;
269 private CodeInfo _this;
275 public Xcls_ColumnViewColumn597(CodeInfo _owner )
278 var child_1 = new Xcls_SignalListItemFactory95( _this );
280 this.el = new Gtk.ColumnViewColumn( "Object Navigation", child_1.el );
284 // set gobject values
285 this.el.expand = true;
288 // user defined functions
290 public class Xcls_SignalListItemFactory95 : Object
292 public Gtk.SignalListItemFactory el;
293 private CodeInfo _this;
299 public Xcls_SignalListItemFactory95(CodeInfo _owner )
302 this.el = new Gtk.SignalListItemFactory();
306 // set gobject values
309 this.el.setup.connect( (listitem) => {
311 var expand = new Gtk.TreeExpander();
313 expand.set_indent_for_depth(true);
314 expand.set_indent_for_icon(true);
315 var hbox = new Gtk.Box(Gtk.Orientation.HORIZONTAL,0);
316 var icon = new Gtk.Image();
317 var lbl = new Gtk.Label("");
318 lbl.use_markup = true;
319 lbl.ellipsize = Pango.EllipsizeMode.END;
322 lbl.justify = Gtk.Justification.LEFT;
325 // listitem.activatable = true; ??
329 expand.set_child(hbox);
330 ((Gtk.ListItem)listitem).set_child(expand);
333 this.el.bind.connect( (listitem) => {
334 // GLib.debug("listitme is is %s", ((Gtk.ListItem)listitem).get_type().name());
336 //var expand = (Gtk.TreeExpander) ((Gtk.ListItem)listitem).get_child();
337 var expand = (Gtk.TreeExpander) ((Gtk.ListItem)listitem).get_child();
340 var hbox = (Gtk.Box) expand.child;
343 var img = (Gtk.Image) hbox.get_first_child();
344 var lbl = (Gtk.Label) img.get_next_sibling();
346 var lr = (Gtk.TreeListRow)((Gtk.ListItem)listitem).get_item();
347 var node = (JsRender.Node) lr.get_item();
348 if (node == null || node.fqn() == "") {
352 expand.set_hide_expander( !node.hasChildren() );
353 expand.set_list_row(lr);
355 node.bind_property("iconResourceName",
357 GLib.BindingFlags.SYNC_CREATE);
359 node.bind_property("nodeTitleProp",
361 GLib.BindingFlags.SYNC_CREATE);
362 node.bind_property("nodeTipProp",
363 lbl, "tooltip_markup",
364 GLib.BindingFlags.SYNC_CREATE);
370 // user defined functions
374 public class Xcls_SingleSelection35 : Object
376 public Gtk.SingleSelection el;
377 private CodeInfo _this;
383 public Xcls_SingleSelection35(CodeInfo _owner )
386 var child_1 = new Xcls_TreeListModel58( _this );
388 this.el = new Gtk.SingleSelection( child_1.el );
392 // set gobject values
395 // user defined functions
397 public class Xcls_TreeListModel58 : Object
399 public Gtk.TreeListModel el;
400 private CodeInfo _this;
406 public Xcls_TreeListModel58(CodeInfo _owner )
409 var child_1 = new Xcls_ListStore81( _this );
411 this.el = new Gtk.TreeListModel( child_1.el, false, true, (item) => {
413 return ((JsRender.Node)item).childstore;
419 // set gobject values
422 // user defined functions
424 public class Xcls_ListStore81 : Object
426 public GLib.ListStore el;
427 private CodeInfo _this;
433 public Xcls_ListStore81(CodeInfo _owner )
436 this.el = new GLib.ListStore( typeof(JsRender.Node) );
440 // set gobject values
443 // user defined functions