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