Clones.bjs
[gitlive] / Clones.vala
1 static Clones  _Clones;
2
3 public class Clones : Object
4 {
5     public Gtk.Dialog el;
6     private Clones  _this;
7
8     public static Clones singleton()
9     {
10         if (_Clones == null) {
11             _Clones= new Clones();
12         }
13         return _Clones;
14     }
15     public Xcls_spinner spinner;
16     public Xcls_toolbar toolbar;
17     public Xcls_scrolled scrolled;
18     public Xcls_reposView reposView;
19     public Xcls_reposStore reposStore;
20     public Xcls_tv_autocommit tv_autocommit;
21     public Xcls_cr_autocommit cr_autocommit;
22     public Xcls_tv_autopush tv_autopush;
23     public Xcls_cr_autopush cr_autopush;
24     public Xcls_tv_autobranch tv_autobranch;
25     public Xcls_cr_autobranch cr_autobranch;
26     public Xcls_tv_repo tv_repo;
27     public Xcls_cr_repo cr_repo;
28     public Xcls_tv_active_ticket tv_active_ticket;
29     public Xcls_cr_active_ticket cr_active_ticket;
30     public Xcls_tv_current_branch tv_current_branch;
31     public Xcls_cr_current_branch cr_current_branch;
32     public Xcls_tv_last_updated tv_last_updated;
33     public Xcls_cr_last_updated cr_last_updated;
34     public Xcls_tv_all_branches tv_all_branches;
35     public Xcls_cr_all_branches cr_all_branches;
36
37         // my vars (def)
38
39     // ctor
40     public Clones()
41     {
42         _this = this;
43         this.el = new Gtk.Dialog();
44
45         // my vars (dec)
46
47         // set gobject values
48         this.el.title = "Manage Clones";
49         this.el.border_width = 3;
50         this.el.default_height = 500;
51         this.el.default_width = 1024;
52         this.el.deletable = true;
53         this.el.modal = true;
54         var child_0 = new Xcls_Box2( _this );
55         child_0.ref();
56         this.el.get_content_area().add (  child_0.el  );
57
58         //listeners
59         this.el.delete_event.connect( (self, event) => {
60             this.el.hide();
61             return true; 
62             //test  
63         });
64         this.el.response.connect( (self, response_id) =>  { 
65          
66                 this.el.hide();
67           
68         });
69     }
70
71     // user defined functions
72     public void loadAndShow () {
73         
74         _this.el.show_all();
75         
76         _this.toolbar.el.hide();
77         _this.scrolled.el.hide();
78         _this.spinner.el.show();
79         _this.spinner.el.start();       
80         
81         GitRepo.updateAll("show_clones");
82         
83         
84         
85     }
86     public void show ()    {
87     
88     
89         _this.spinner.el.stop();
90         _this.spinner.el.hide();        
91         _this.toolbar.el.show();
92         _this.scrolled.el.show();       
93     
94         GLib.debug("show clones?");
95         this.el.set_deletable(true);
96         this.el.set_gravity(Gdk.Gravity.NORTH);
97         this.el.move((Gdk.Screen.width() / 2 ) -400 ,0);
98         
99         this.el.set_default_size(
100                         int.min(1024,Gdk.Screen.width()),
101                         int.max(500,Gdk.Screen.height() - 300)
102         );
103          
104         this.el.show_all();
105         _this.reposStore.load();
106         this.el.set_keep_above(true);
107             GLib.debug("show clones = run?");
108         this.el.run();
109         // load clones..
110     //     this.get('/reposStore').load();
111         
112         //this.get('/ok_button').el.set_sensitive(false);
113         
114         // block until we return.
115     //    var run_ret = this.el.run();
116     //    if (run_ret < 1 ) {
117     //        return  "DONE";
118     //    }
119     //    print("RUN RETURN : " + run_ret);
120     //    return "DONE";
121         //print(JSON.stringify(this.get('bug').getValue()));
122        // return this.get('bug').getValue();
123         //this.success = c.success;
124     }
125     public class Xcls_Box2 : Object
126     {
127         public Gtk.Box el;
128         private Clones  _this;
129
130
131             // my vars (def)
132
133         // ctor
134         public Xcls_Box2(Clones _owner )
135         {
136             _this = _owner;
137             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
138
139             // my vars (dec)
140
141             // set gobject values
142             var child_0 = new Xcls_spinner( _this );
143             child_0.ref();
144             this.el.pack_start (  child_0.el , false,false,0 );
145             var child_1 = new Xcls_toolbar( _this );
146             child_1.ref();
147             this.el.pack_start (  child_1.el , false,false,0 );
148             var child_2 = new Xcls_scrolled( _this );
149             child_2.ref();
150             this.el.pack_end (  child_2.el , true,true,0 );
151         }
152
153         // user defined functions
154     }
155     public class Xcls_spinner : Object
156     {
157         public Gtk.Spinner el;
158         private Clones  _this;
159
160
161             // my vars (def)
162
163         // ctor
164         public Xcls_spinner(Clones _owner )
165         {
166             _this = _owner;
167             _this.spinner = this;
168             this.el = new Gtk.Spinner();
169
170             // my vars (dec)
171
172             // set gobject values
173         }
174
175         // user defined functions
176     }
177
178     public class Xcls_toolbar : Object
179     {
180         public Gtk.Box el;
181         private Clones  _this;
182
183
184             // my vars (def)
185
186         // ctor
187         public Xcls_toolbar(Clones _owner )
188         {
189             _this = _owner;
190             _this.toolbar = this;
191             this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
192
193             // my vars (dec)
194
195             // set gobject values
196             this.el.homogeneous = true;
197             var child_0 = new Xcls_Button5( _this );
198             child_0.ref();
199             this.el.add (  child_0.el  );
200         }
201
202         // user defined functions
203     }
204     public class Xcls_Button5 : Object
205     {
206         public Gtk.Button el;
207         private Clones  _this;
208
209
210             // my vars (def)
211
212         // ctor
213         public Xcls_Button5(Clones _owner )
214         {
215             _this = _owner;
216             this.el = new Gtk.Button();
217
218             // my vars (dec)
219
220             // set gobject values
221             this.el.label = "Add Repository";
222
223             // init method
224
225             {
226                this.el.get_style_context().add_class("suggested-action");
227             }
228
229             //listeners
230             this.el.clicked.connect( () => {
231                         Clone.singleton().show(this.el);
232                 
233                 
234                 
235             });
236         }
237
238         // user defined functions
239     }
240
241
242     public class Xcls_scrolled : Object
243     {
244         public Gtk.ScrolledWindow el;
245         private Clones  _this;
246
247
248             // my vars (def)
249
250         // ctor
251         public Xcls_scrolled(Clones _owner )
252         {
253             _this = _owner;
254             _this.scrolled = this;
255             this.el = new Gtk.ScrolledWindow( null, null );
256
257             // my vars (dec)
258
259             // set gobject values
260             this.el.expand = true;
261             this.el.hexpand = true;
262             this.el.shadow_type = Gtk.ShadowType.IN;
263             var child_0 = new Xcls_reposView( _this );
264             child_0.ref();
265             this.el.add (  child_0.el  );
266
267             // init method
268
269             {
270               
271                this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
272             }
273         }
274
275         // user defined functions
276     }
277     public class Xcls_reposView : Object
278     {
279         public Gtk.TreeView el;
280         private Clones  _this;
281
282
283             // my vars (def)
284
285         // ctor
286         public Xcls_reposView(Clones _owner )
287         {
288             _this = _owner;
289             _this.reposView = this;
290             this.el = new Gtk.TreeView();
291
292             // my vars (dec)
293
294             // set gobject values
295             this.el.search_column = 0;
296             this.el.activate_on_single_click = true;
297             this.el.enable_grid_lines = Gtk.TreeViewGridLines.HORIZONTAL;
298             var child_0 = new Xcls_reposStore( _this );
299             child_0.ref();
300             this.el.set_model (  child_0.el  );
301             var child_1 = new Xcls_tv_autocommit( _this );
302             child_1.ref();
303             this.el.append_column (  child_1.el  );
304             var child_2 = new Xcls_tv_autopush( _this );
305             child_2.ref();
306             this.el.append_column (  child_2.el  );
307             var child_3 = new Xcls_tv_autobranch( _this );
308             child_3.ref();
309             this.el.append_column (  child_3.el  );
310             var child_4 = new Xcls_tv_repo( _this );
311             child_4.ref();
312             this.el.append_column (  child_4.el  );
313             var child_5 = new Xcls_tv_active_ticket( _this );
314             child_5.ref();
315             this.el.append_column (  child_5.el  );
316             var child_6 = new Xcls_tv_current_branch( _this );
317             child_6.ref();
318             this.el.append_column (  child_6.el  );
319             var child_7 = new Xcls_tv_last_updated( _this );
320             child_7.ref();
321             this.el.append_column (  child_7.el  );
322             var child_8 = new Xcls_tv_all_branches( _this );
323             child_8.ref();
324             this.el.append_column (  child_8.el  );
325
326             // init method
327
328             {
329                 var selection = this.el.get_selection();
330                 selection.set_mode( Gtk.SelectionMode.SINGLE);
331             
332             
333                 var description = new Pango.FontDescription();
334                 description.set_size(10000);
335                 this.el.override_font(description);
336              
337             }
338
339             //listeners
340             this.el.row_activated.connect( (path, col)  =>  {
341             
342                 if (col.title != "Current Branch") {
343                         return;
344                 }
345                 
346                 //
347                 
348                 Gtk.TreeIter iter;
349                 _this.reposStore.el.get_iter(out iter, path);
350                 GLib.Value val;
351                 _this.reposStore.el.get_value(iter, 6, out val);
352                 var git_working_dir = (string)val;
353                 
354                 var repo = GitRepo.singleton().get(git_working_dir);
355                 
356                 Gdk.Rectangle rect;
357                 _this.reposView.el.get_cell_area(path, col, out rect);
358                 RepoStatusPopover.singleton().show(this.el, rect, repo);
359                 
360                  
361                 
362             });
363             this.el.cursor_changed.connect( ()  => {
364               // SEE SELECTION.CHANGED
365               /*
366               
367               return;
368               
369                 if (this.el.get_selection().count_selected_rows() < 1) {
370                     //nothing? - clea it?
371                     return;
372                 }
373                     var ret = {};         
374                 var model = this.get('/changedFilesStore');
375             
376                  var s = this.el.get_selection();
377                  var files = [];
378                 s.selected_foreach(function(model,p,iter) {
379                 
380                    files.push( model.get_value(iter, 0).value.get_string());
381                  
382                 });
383                 this.get('/patchview').showDiff(files); 
384                 //var value = ''+ ret.model.get_value(ret.iter, 1).value.get_string();
385                  //print("OUT?" + value);// id..
386                 // load the list in the right grid..
387                  
388                 return true;
389             */
390             });
391         }
392
393         // user defined functions
394     }
395     public class Xcls_reposStore : Object
396     {
397         public Gtk.ListStore el;
398         private Clones  _this;
399
400
401             // my vars (def)
402
403         // ctor
404         public Xcls_reposStore(Clones _owner )
405         {
406             _this = _owner;
407             _this.reposStore = this;
408             this.el = new Gtk.ListStore( 10,      typeof(string),  // 0 repo
409      typeof(string),  // 1 current branch
410      typeof(string),  // 2 all branch
411      typeof(string),  // 3 updated
412      typeof(bool),   // 4 auto commit
413      typeof(bool),   // 5 auto push
414      typeof(string),   // 6 repopath
415       typeof(string),   // 7 color highlighting?
416        typeof(bool),   // 8 auto branch,
417       typeof(string)   // 9 active Ticket
418        );
419
420             // my vars (dec)
421
422             // set gobject values
423         }
424
425         // user defined functions
426         public void load ()
427         {
428             //this.insert(citer,iter,0);
429             print("getting list");
430             var tr = GitRepo.list();
431             
432             this.el.clear();
433             
434             // fixme .. sort by last updated ...
435             
436             
437             for(var i =0 ; i < tr.length; i++) {
438                     var repo = tr.index(i);
439                     // this is done before we display stuff...
440                     //repo.loadBranches();
441                     //repo.loadStatus();
442                     
443                     Gtk.TreeIter iter;
444                     this.el.append(out iter);
445              
446                 //print(JSON.stringify(ret,null,4));
447                  //tr[i].getBranches();
448                  //tr[i].getStatus();
449                  //var hi;
450                  //try {
451                      //tr[i].debug=1;
452                  //     hi = tr[i].history('/', 1, 'branch', tr[i].currentBranch.name );
453         //             print(JSON.stringify(hi,null,4));
454                 // } catch(e) { print(e);}
455                   
456                 this.el.set_value(iter, 0,   repo.name );
457                 this.el.set_value( iter, 1, repo.currentBranch.name   );
458                 this.el.set_value( iter, 2,  repo.branchesToString()   );
459         //        this.el.set_value(ret.iter, 2, '' + repo.branches.map(
460         //                        function(e) { return e.name; 
461         //                    }).join(', ') 
462          //        );
463         //        this.el.set_value(iter, 3, '' +  (!hi  ? '??' : hi[0].changed_raw));        
464                 this.el.set_value(iter, 4, repo.is_autocommit() );                
465                 this.el.set_value(iter, 5, repo.is_autopush() );                        
466                 this.el.set_value(iter, 6,  repo.git_working_dir );  
467                 // highlight color.
468                 var cb = repo.currentBranch;
469                 //print(JSON.stringify(cb,null,4));
470                 var col = "#ffffff";
471                 
472                 if (cb.lastrev != cb.remoterev) {
473                     col =  "#f2dede";
474                     this.el.set_value( iter, 1, repo.currentBranch.name +"\n" +
475                         (repo.ahead_or_behind == "B" ? "Local is BEHIND remote" : "Local is AHEAD of remote")
476                     
477                        );
478                 }
479                 if (repo.has_local_changes) {
480                     col =  "#d9edf7";
481                     this.el.set_value( iter, 1, repo.currentBranch.name +"\nHas uncommitted changes"   );
482                 }
483                 if  ((cb.lastrev != cb.remoterev) && (repo.has_local_changes)) {
484                     col =  "#fcf8e3";
485                     this.el.set_value( iter, 1, repo.currentBranch.name +"\n" + 
486                     (repo.ahead_or_behind == "B" ? "Local is BEHIND remote" : "Local is AHEAD of remote") +
487                     "\nHas uncommitted changes"   );            
488                 }
489                 
490                 this.el.set_value(iter, 7, col  );      
491                 var ticket = repo.activeTicket;
492                 
493                 this.el.set_value(iter, 8, repo.is_auto_branch()  );      
494                 this.el.set_value(iter, 9, ticket == null ? "" : ticket.id  );      
495                 
496                 
497             }     
498             this.el.set_sort_column_id (0, Gtk.SortType.ASCENDING);
499         }
500     }
501
502     public class Xcls_tv_autocommit : Object
503     {
504         public Gtk.TreeViewColumn el;
505         private Clones  _this;
506
507
508             // my vars (def)
509
510         // ctor
511         public Xcls_tv_autocommit(Clones _owner )
512         {
513             _this = _owner;
514             _this.tv_autocommit = this;
515             this.el = new Gtk.TreeViewColumn();
516
517             // my vars (dec)
518
519             // set gobject values
520             this.el.title = "Auto Commit";
521             this.el.min_width = 50;
522             var child_0 = new Xcls_cr_autocommit( _this );
523             child_0.ref();
524             this.el.pack_start (  child_0.el , false );
525
526             // init method
527
528             //    this.items[0].el.set_activatable(true);
529              this.el.add_attribute(_this.cr_autocommit.el , "active", 4 );
530         }
531
532         // user defined functions
533     }
534     public class Xcls_cr_autocommit : Object
535     {
536         public Gtk.CellRendererToggle el;
537         private Clones  _this;
538
539
540             // my vars (def)
541
542         // ctor
543         public Xcls_cr_autocommit(Clones _owner )
544         {
545             _this = _owner;
546             _this.cr_autocommit = this;
547             this.el = new Gtk.CellRendererToggle();
548
549             // my vars (dec)
550
551             // set gobject values
552             this.el.mode = Gtk.CellRendererMode.ACTIVATABLE;
553
554             //listeners
555             this.el.toggled.connect( (self, path)  => {
556               
557                 Gtk.TreeIter iter;
558                 _this.reposStore.el.get_iter_from_string(out iter, path);
559                 
560                 GLib.Value val;
561                 GLib.Value rval;
562                 _this.reposStore.el.get_value(iter, 4, out val);
563                 _this.reposStore.el.get_value(iter, 6, out rval);
564                 
565                 var repopath = (string)rval;
566                 var bval = (bool)val;
567                 _this.reposStore.el.set_value(iter, 4, !bval);
568                 GLib.debug("got repopath? %s", repopath);
569                 
570                 var repo = GitRepo.get(repopath);
571                 repo.set_autocommit(!bval);
572                 
573                 
574                 
575               
576             });
577         }
578
579         // user defined functions
580     }
581
582
583     public class Xcls_tv_autopush : Object
584     {
585         public Gtk.TreeViewColumn el;
586         private Clones  _this;
587
588
589             // my vars (def)
590
591         // ctor
592         public Xcls_tv_autopush(Clones _owner )
593         {
594             _this = _owner;
595             _this.tv_autopush = this;
596             this.el = new Gtk.TreeViewColumn();
597
598             // my vars (dec)
599
600             // set gobject values
601             this.el.title = "Auto Push";
602             this.el.min_width = 50;
603             var child_0 = new Xcls_cr_autopush( _this );
604             child_0.ref();
605             this.el.pack_start (  child_0.el , false );
606
607             // init method
608
609             this.el.add_attribute(_this.cr_autopush.el , "active", 5 );
610             //      this.items[0].el.set_activatable(true);
611         }
612
613         // user defined functions
614     }
615     public class Xcls_cr_autopush : Object
616     {
617         public Gtk.CellRendererToggle el;
618         private Clones  _this;
619
620
621             // my vars (def)
622
623         // ctor
624         public Xcls_cr_autopush(Clones _owner )
625         {
626             _this = _owner;
627             _this.cr_autopush = this;
628             this.el = new Gtk.CellRendererToggle();
629
630             // my vars (dec)
631
632             // set gobject values
633             this.el.mode = Gtk.CellRendererMode.ACTIVATABLE;
634
635             //listeners
636             this.el.toggled.connect( (self, path)  => {
637               
638                 Gtk.TreeIter iter;
639                 _this.reposStore.el.get_iter_from_string(out iter, path);
640                 
641                 GLib.Value val;
642                 GLib.Value rval;
643                 _this.reposStore.el.get_value(iter, 5, out val);
644                 _this.reposStore.el.get_value(iter, 6, out rval);
645                 
646                 var repopath = (string)rval;
647                 var bval = (bool)val;
648                 _this.reposStore.el.set_value(iter, 5, !bval);
649                 var repo = GitRepo.get(repopath);
650                 repo.set_autopush(!bval);
651                 
652                 
653                 
654               
655             });
656         }
657
658         // user defined functions
659     }
660
661
662     public class Xcls_tv_autobranch : Object
663     {
664         public Gtk.TreeViewColumn el;
665         private Clones  _this;
666
667
668             // my vars (def)
669
670         // ctor
671         public Xcls_tv_autobranch(Clones _owner )
672         {
673             _this = _owner;
674             _this.tv_autobranch = this;
675             this.el = new Gtk.TreeViewColumn();
676
677             // my vars (dec)
678
679             // set gobject values
680             this.el.title = "Auto Branch";
681             this.el.min_width = 50;
682             var child_0 = new Xcls_cr_autobranch( _this );
683             child_0.ref();
684             this.el.pack_start (  child_0.el , false );
685
686             // init method
687
688             this.el.add_attribute(_this.cr_autobranch.el , "active", 8 );
689             //      this.items[0].el.set_activatable(true);
690         }
691
692         // user defined functions
693     }
694     public class Xcls_cr_autobranch : Object
695     {
696         public Gtk.CellRendererToggle el;
697         private Clones  _this;
698
699
700             // my vars (def)
701
702         // ctor
703         public Xcls_cr_autobranch(Clones _owner )
704         {
705             _this = _owner;
706             _this.cr_autobranch = this;
707             this.el = new Gtk.CellRendererToggle();
708
709             // my vars (dec)
710
711             // set gobject values
712             this.el.mode = Gtk.CellRendererMode.ACTIVATABLE;
713
714             //listeners
715             this.el.toggled.connect( (self, path)  => {
716               
717                 Gtk.TreeIter iter;
718                 _this.reposStore.el.get_iter_from_string(out iter, path);
719                 
720                 GLib.Value val;
721                 GLib.Value rval;
722                 _this.reposStore.el.get_value(iter, 8, out val);
723                 _this.reposStore.el.get_value(iter, 6, out rval);
724                 
725                 var repopath = (string)rval;
726                 var bval = (bool)val;
727                 _this.reposStore.el.set_value(iter, 8, !bval);
728                 var repo = GitRepo.get(repopath);
729                 repo.set_auto_branch(!bval);
730                 
731                 
732                 
733               
734             });
735         }
736
737         // user defined functions
738     }
739
740
741     public class Xcls_tv_repo : Object
742     {
743         public Gtk.TreeViewColumn el;
744         private Clones  _this;
745
746
747             // my vars (def)
748
749         // ctor
750         public Xcls_tv_repo(Clones _owner )
751         {
752             _this = _owner;
753             _this.tv_repo = this;
754             this.el = new Gtk.TreeViewColumn();
755
756             // my vars (dec)
757
758             // set gobject values
759             this.el.sort_column_id = 0;
760             this.el.title = "Repo";
761             this.el.min_width = 200;
762             this.el.sort_order = Gtk.SortType.ASCENDING;
763             this.el.resizable = true;
764             var child_0 = new Xcls_cr_repo( _this );
765             child_0.ref();
766             this.el.pack_start (  child_0.el , false );
767
768             // init method
769
770             this.el.add_attribute(_this.cr_repo.el , "markup", 0 );
771         }
772
773         // user defined functions
774     }
775     public class Xcls_cr_repo : Object
776     {
777         public Gtk.CellRendererText el;
778         private Clones  _this;
779
780
781             // my vars (def)
782
783         // ctor
784         public Xcls_cr_repo(Clones _owner )
785         {
786             _this = _owner;
787             _this.cr_repo = this;
788             this.el = new Gtk.CellRendererText();
789
790             // my vars (dec)
791
792             // set gobject values
793         }
794
795         // user defined functions
796     }
797
798
799     public class Xcls_tv_active_ticket : Object
800     {
801         public Gtk.TreeViewColumn el;
802         private Clones  _this;
803
804
805             // my vars (def)
806
807         // ctor
808         public Xcls_tv_active_ticket(Clones _owner )
809         {
810             _this = _owner;
811             _this.tv_active_ticket = this;
812             this.el = new Gtk.TreeViewColumn();
813
814             // my vars (dec)
815
816             // set gobject values
817             this.el.title = "Active Ticket";
818             this.el.min_width = 50;
819             var child_0 = new Xcls_cr_active_ticket( _this );
820             child_0.ref();
821             this.el.pack_start (  child_0.el , false );
822
823             // init method
824
825             this.el.add_attribute(_this.cr_active_ticket.el , "markup", 9 );
826         }
827
828         // user defined functions
829     }
830     public class Xcls_cr_active_ticket : Object
831     {
832         public Gtk.CellRendererText el;
833         private Clones  _this;
834
835
836             // my vars (def)
837
838         // ctor
839         public Xcls_cr_active_ticket(Clones _owner )
840         {
841             _this = _owner;
842             _this.cr_active_ticket = this;
843             this.el = new Gtk.CellRendererText();
844
845             // my vars (dec)
846
847             // set gobject values
848         }
849
850         // user defined functions
851     }
852
853
854     public class Xcls_tv_current_branch : Object
855     {
856         public Gtk.TreeViewColumn el;
857         private Clones  _this;
858
859
860             // my vars (def)
861
862         // ctor
863         public Xcls_tv_current_branch(Clones _owner )
864         {
865             _this = _owner;
866             _this.tv_current_branch = this;
867             this.el = new Gtk.TreeViewColumn();
868
869             // my vars (dec)
870
871             // set gobject values
872             this.el.title = "Current Branch";
873             this.el.min_width = 50;
874             var child_0 = new Xcls_cr_current_branch( _this );
875             child_0.ref();
876             this.el.pack_start (  child_0.el , false );
877
878             // init method
879
880             this.el.add_attribute(_this.cr_current_branch.el , "markup", 1 );
881                  this.el.add_attribute(_this.cr_current_branch.el, "cell-background", 7 );
882         }
883
884         // user defined functions
885     }
886     public class Xcls_cr_current_branch : Object
887     {
888         public Gtk.CellRendererText el;
889         private Clones  _this;
890
891
892             // my vars (def)
893
894         // ctor
895         public Xcls_cr_current_branch(Clones _owner )
896         {
897             _this = _owner;
898             _this.cr_current_branch = this;
899             this.el = new Gtk.CellRendererText();
900
901             // my vars (dec)
902
903             // set gobject values
904         }
905
906         // user defined functions
907     }
908
909
910     public class Xcls_tv_last_updated : Object
911     {
912         public Gtk.TreeViewColumn el;
913         private Clones  _this;
914
915
916             // my vars (def)
917
918         // ctor
919         public Xcls_tv_last_updated(Clones _owner )
920         {
921             _this = _owner;
922             _this.tv_last_updated = this;
923             this.el = new Gtk.TreeViewColumn();
924
925             // my vars (dec)
926
927             // set gobject values
928             this.el.title = "Last updated";
929             this.el.min_width = 50;
930             var child_0 = new Xcls_cr_last_updated( _this );
931             child_0.ref();
932             this.el.pack_start (  child_0.el , false );
933
934             // init method
935
936             this.el.add_attribute(_this.cr_last_updated.el , "markup", 3 );
937         }
938
939         // user defined functions
940     }
941     public class Xcls_cr_last_updated : Object
942     {
943         public Gtk.CellRendererText el;
944         private Clones  _this;
945
946
947             // my vars (def)
948
949         // ctor
950         public Xcls_cr_last_updated(Clones _owner )
951         {
952             _this = _owner;
953             _this.cr_last_updated = this;
954             this.el = new Gtk.CellRendererText();
955
956             // my vars (dec)
957
958             // set gobject values
959         }
960
961         // user defined functions
962     }
963
964
965     public class Xcls_tv_all_branches : Object
966     {
967         public Gtk.TreeViewColumn el;
968         private Clones  _this;
969
970
971             // my vars (def)
972
973         // ctor
974         public Xcls_tv_all_branches(Clones _owner )
975         {
976             _this = _owner;
977             _this.tv_all_branches = this;
978             this.el = new Gtk.TreeViewColumn();
979
980             // my vars (dec)
981
982             // set gobject values
983             this.el.title = "All Branches";
984             this.el.min_width = 50;
985             this.el.resizable = false;
986             var child_0 = new Xcls_cr_all_branches( _this );
987             child_0.ref();
988             this.el.pack_start (  child_0.el , false );
989
990             // init method
991
992             this.el.add_attribute(_this.cr_all_branches.el , "markup", 2 );
993         }
994
995         // user defined functions
996     }
997     public class Xcls_cr_all_branches : Object
998     {
999         public Gtk.CellRendererText el;
1000         private Clones  _this;
1001
1002
1003             // my vars (def)
1004
1005         // ctor
1006         public Xcls_cr_all_branches(Clones _owner )
1007         {
1008             _this = _owner;
1009             _this.cr_all_branches = this;
1010             this.el = new Gtk.CellRendererText();
1011
1012             // my vars (dec)
1013
1014             // set gobject values
1015         }
1016
1017         // user defined functions
1018     }
1019
1020
1021
1022
1023
1024 }