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