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