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