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.get('/reposView');
324                 var rs = this.get('/reposStore');
325                 if (rv.el.get_selection().count_selected_rows() != 1) {
326                     //nothing?
327                     // error condition.
328                     return;
329                 }
330                 var Merger =     imports.Merger.Merger;
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.enable_grid_lines = Gtk.TreeViewGridLines.HORIZONTAL;
491             var child_0 = new Xcls_reposStore( _this );
492             child_0.ref();
493             this.el.set_model (  child_0.el  );
494             var child_1 = new Xcls_tv_autocommit( _this );
495             child_1.ref();
496             this.el.append_column (  child_1.el  );
497             var child_2 = new Xcls_tv_autopush( _this );
498             child_2.ref();
499             this.el.append_column (  child_2.el  );
500             var child_3 = new Xcls_tv_autobranch( _this );
501             child_3.ref();
502             this.el.append_column (  child_3.el  );
503             var child_4 = new Xcls_tv_repo( _this );
504             child_4.ref();
505             this.el.append_column (  child_4.el  );
506             var child_5 = new Xcls_tv_active_ticket( _this );
507             child_5.ref();
508             this.el.append_column (  child_5.el  );
509             var child_6 = new Xcls_tv_current_branch( _this );
510             child_6.ref();
511             this.el.append_column (  child_6.el  );
512             var child_7 = new Xcls_tv_last_updated( _this );
513             child_7.ref();
514             this.el.append_column (  child_7.el  );
515             var child_8 = new Xcls_tv_all_branches( _this );
516             child_8.ref();
517             this.el.append_column (  child_8.el  );
518
519             // init method
520
521             {
522                 var selection = this.el.get_selection();
523                 selection.set_mode( Gtk.SelectionMode.SINGLE);
524             
525             
526                 var description = new Pango.FontDescription();
527                 description.set_size(10000);
528                 this.el.override_font(description);
529              
530             }
531
532             //listeners
533             this.el.cursor_changed.connect( ()  => {
534               // SEE SELECTION.CHANGED
535               /*
536               
537               return;
538               
539                 if (this.el.get_selection().count_selected_rows() < 1) {
540                     //nothing? - clea it?
541                     return;
542                 }
543                     var ret = {};         
544                 var model = this.get('/changedFilesStore');
545             
546                  var s = this.el.get_selection();
547                  var files = [];
548                 s.selected_foreach(function(model,p,iter) {
549                 
550                    files.push( model.get_value(iter, 0).value.get_string());
551                  
552                 });
553                 this.get('/patchview').showDiff(files); 
554                 //var value = ''+ ret.model.get_value(ret.iter, 1).value.get_string();
555                  //print("OUT?" + value);// id..
556                 // load the list in the right grid..
557                  
558                 return true;
559             */
560             });
561         }
562
563         // user defined functions
564     }
565     public class Xcls_reposStore : Object
566     {
567         public Gtk.ListStore el;
568         private Clones  _this;
569
570
571             // my vars (def)
572
573         // ctor
574         public Xcls_reposStore(Clones _owner )
575         {
576             _this = _owner;
577             _this.reposStore = this;
578             this.el = new Gtk.ListStore( 10,      typeof(string),  // 0 repo
579      typeof(string),  // 1 current branch
580      typeof(string),  // 2 all branch
581      typeof(string),  // 3 updated
582      typeof(bool),   // 4 auto commit
583      typeof(bool),   // 5 auto push
584      typeof(string),   // 6 repopath
585       typeof(string),   // 7 color highlighting?
586        typeof(bool),   // 8 auto branch,
587       typeof(string)   // 9 active Ticket
588        );
589
590             // my vars (dec)
591
592             // set gobject values
593         }
594
595         // user defined functions
596         public void load ()
597         {
598             //this.insert(citer,iter,0);
599             print("getting list");
600             var tr = GitRepo.list();
601             
602             this.el.clear();
603             
604             // fixme .. sort by last updated ...
605             
606             
607             for(var i =0 ; i < tr.length; i++) {
608                     var repo = tr.index(i);
609                     repo.loadBranches();
610                     
611                     Gtk.TreeIter iter;
612                     this.el.append(out iter);
613              
614                 
615                 //print(JSON.stringify(ret,null,4));
616                  //tr[i].getBranches();
617                  //tr[i].getStatus();
618                  //var hi;
619                  //try {
620                      //tr[i].debug=1;
621                  //     hi = tr[i].history('/', 1, 'branch', tr[i].currentBranch.name );
622         //             print(JSON.stringify(hi,null,4));
623                 // } catch(e) { print(e);}
624                   
625                 this.el.set_value(iter, 0,   repo.name );
626                 this.el.set_value( iter, 1, repo.currentBranch.name   );
627                 this.el.set_value( iter, 2,  repo.branchesToString()   );
628         //        this.el.set_value(ret.iter, 2, '' + repo.branches.map(
629         //                        function(e) { return e.name; 
630         //                    }).join(', ') 
631          //        );
632         //        this.el.set_value(iter, 3, '' +  (!hi  ? '??' : hi[0].changed_raw));        
633                 this.el.set_value(iter, 4, repo.is_autocommit() );                
634                 this.el.set_value(iter, 5, repo.is_autopush() );                        
635                 this.el.set_value(iter, 6,  repo.git_working_dir );  
636                 // highlight color.
637                 var cb = repo.currentBranch;
638                 //print(JSON.stringify(cb,null,4));
639                 var col = "#ffffff";
640                 /*
641                 if (cb.lastrev != cb.remoterev) {
642                     col =  '#ff0000';
643                 }
644                 if (tr[i].hasLocalChanges) {
645                     col =  '#0000ff';
646                 }
647                 if  ((cb.lastrev != cb.remoterev) && (tr[i].hasLocalChanges)) {
648                     col =  '#ff00ff';
649                 }
650                 */
651                 this.el.set_value(iter, 7, col  );      
652                 var ticket = repo.activeTicket;
653                 
654                 this.el.set_value(iter, 8, repo.is_auto_branch()  );      
655                 this.el.set_value(iter, 9, ticket == null ? "" : ticket.id  );      
656                 
657                 
658             }     
659             this.el.set_sort_column_id (0, Gtk.SortType.ASCENDING);
660         }
661     }
662
663     public class Xcls_tv_autocommit : Object
664     {
665         public Gtk.TreeViewColumn el;
666         private Clones  _this;
667
668
669             // my vars (def)
670
671         // ctor
672         public Xcls_tv_autocommit(Clones _owner )
673         {
674             _this = _owner;
675             _this.tv_autocommit = this;
676             this.el = new Gtk.TreeViewColumn();
677
678             // my vars (dec)
679
680             // set gobject values
681             this.el.title = "Auto Commit";
682             this.el.min_width = 50;
683             var child_0 = new Xcls_cr_autocommit( _this );
684             child_0.ref();
685             this.el.pack_start (  child_0.el , false );
686
687             // init method
688
689             //    this.items[0].el.set_activatable(true);
690              this.el.add_attribute(_this.cr_autocommit.el , "active", 4 );
691         }
692
693         // user defined functions
694     }
695     public class Xcls_cr_autocommit : Object
696     {
697         public Gtk.CellRendererToggle el;
698         private Clones  _this;
699
700
701             // my vars (def)
702
703         // ctor
704         public Xcls_cr_autocommit(Clones _owner )
705         {
706             _this = _owner;
707             _this.cr_autocommit = this;
708             this.el = new Gtk.CellRendererToggle();
709
710             // my vars (dec)
711
712             // set gobject values
713             this.el.mode = Gtk.CellRendererMode.ACTIVATABLE;
714
715             //listeners
716             this.el.toggled.connect( (self, path)  => {
717               
718                 Gtk.TreeIter iter;
719                 _this.reposStore.el.get_iter_from_string(out iter, path);
720                 
721                 GLib.Value val;
722                 GLib.Value rval;
723                 _this.reposStore.el.get_value(iter, 4, out val);
724                 _this.reposStore.el.get_value(iter, 6, out rval);
725                 
726                 var repopath = (string)rval;
727                 var bval = (bool)val;
728                 _this.reposStore.el.set_value(iter, 4, !bval);
729                 GLib.debug("got repopath? %s", repopath);
730                 
731                 var repo = GitRepo.get(repopath);
732                 repo.set_autocommit(!bval);
733                 
734                 
735                 
736               
737             });
738         }
739
740         // user defined functions
741     }
742
743
744     public class Xcls_tv_autopush : Object
745     {
746         public Gtk.TreeViewColumn el;
747         private Clones  _this;
748
749
750             // my vars (def)
751
752         // ctor
753         public Xcls_tv_autopush(Clones _owner )
754         {
755             _this = _owner;
756             _this.tv_autopush = this;
757             this.el = new Gtk.TreeViewColumn();
758
759             // my vars (dec)
760
761             // set gobject values
762             this.el.title = "Auto Push";
763             this.el.min_width = 50;
764             var child_0 = new Xcls_cr_autopush( _this );
765             child_0.ref();
766             this.el.pack_start (  child_0.el , false );
767
768             // init method
769
770             this.el.add_attribute(_this.cr_autopush.el , "active", 5 );
771             //      this.items[0].el.set_activatable(true);
772         }
773
774         // user defined functions
775     }
776     public class Xcls_cr_autopush : Object
777     {
778         public Gtk.CellRendererToggle el;
779         private Clones  _this;
780
781
782             // my vars (def)
783
784         // ctor
785         public Xcls_cr_autopush(Clones _owner )
786         {
787             _this = _owner;
788             _this.cr_autopush = this;
789             this.el = new Gtk.CellRendererToggle();
790
791             // my vars (dec)
792
793             // set gobject values
794             this.el.mode = Gtk.CellRendererMode.ACTIVATABLE;
795
796             //listeners
797             this.el.toggled.connect( (self, path)  => {
798               
799                 Gtk.TreeIter iter;
800                 _this.reposStore.el.get_iter_from_string(out iter, path);
801                 
802                 GLib.Value val;
803                 GLib.Value rval;
804                 _this.reposStore.el.get_value(iter, 5, out val);
805                 _this.reposStore.el.get_value(iter, 6, out rval);
806                 
807                 var repopath = (string)rval;
808                 var bval = (bool)val;
809                 _this.reposStore.el.set_value(iter, 5, !bval);
810                 var repo = GitRepo.get(repopath);
811                 repo.set_autopush(!bval);
812                 
813                 
814                 
815               
816             });
817         }
818
819         // user defined functions
820     }
821
822
823     public class Xcls_tv_autobranch : Object
824     {
825         public Gtk.TreeViewColumn el;
826         private Clones  _this;
827
828
829             // my vars (def)
830
831         // ctor
832         public Xcls_tv_autobranch(Clones _owner )
833         {
834             _this = _owner;
835             _this.tv_autobranch = this;
836             this.el = new Gtk.TreeViewColumn();
837
838             // my vars (dec)
839
840             // set gobject values
841             this.el.title = "Auto Branch";
842             this.el.min_width = 50;
843             var child_0 = new Xcls_cr_autobranch( _this );
844             child_0.ref();
845             this.el.pack_start (  child_0.el , false );
846
847             // init method
848
849             this.el.add_attribute(_this.cr_autobranch.el , "active", 8 );
850             //      this.items[0].el.set_activatable(true);
851         }
852
853         // user defined functions
854     }
855     public class Xcls_cr_autobranch : Object
856     {
857         public Gtk.CellRendererToggle el;
858         private Clones  _this;
859
860
861             // my vars (def)
862
863         // ctor
864         public Xcls_cr_autobranch(Clones _owner )
865         {
866             _this = _owner;
867             _this.cr_autobranch = this;
868             this.el = new Gtk.CellRendererToggle();
869
870             // my vars (dec)
871
872             // set gobject values
873             this.el.mode = Gtk.CellRendererMode.ACTIVATABLE;
874
875             //listeners
876             this.el.toggled.connect( (self, path)  => {
877               
878                 Gtk.TreeIter iter;
879                 _this.reposStore.el.get_iter_from_string(out iter, path);
880                 
881                 GLib.Value val;
882                 GLib.Value rval;
883                 _this.reposStore.el.get_value(iter, 8, out val);
884                 _this.reposStore.el.get_value(iter, 6, out rval);
885                 
886                 var repopath = (string)rval;
887                 var bval = (bool)val;
888                 _this.reposStore.el.set_value(iter, 8, !bval);
889                 var repo = GitRepo.get(repopath);
890                 repo.set_auto_branch(!bval);
891                 
892                 
893                 
894               
895             });
896         }
897
898         // user defined functions
899     }
900
901
902     public class Xcls_tv_repo : Object
903     {
904         public Gtk.TreeViewColumn el;
905         private Clones  _this;
906
907
908             // my vars (def)
909
910         // ctor
911         public Xcls_tv_repo(Clones _owner )
912         {
913             _this = _owner;
914             _this.tv_repo = this;
915             this.el = new Gtk.TreeViewColumn();
916
917             // my vars (dec)
918
919             // set gobject values
920             this.el.sort_column_id = 0;
921             this.el.title = "Repo";
922             this.el.min_width = 200;
923             this.el.sort_order = Gtk.SortType.ASCENDING;
924             this.el.resizable = true;
925             var child_0 = new Xcls_cr_repo( _this );
926             child_0.ref();
927             this.el.pack_start (  child_0.el , false );
928
929             // init method
930
931             this.el.add_attribute(_this.cr_repo.el , "markup", 0 );
932         }
933
934         // user defined functions
935     }
936     public class Xcls_cr_repo : Object
937     {
938         public Gtk.CellRendererText el;
939         private Clones  _this;
940
941
942             // my vars (def)
943
944         // ctor
945         public Xcls_cr_repo(Clones _owner )
946         {
947             _this = _owner;
948             _this.cr_repo = this;
949             this.el = new Gtk.CellRendererText();
950
951             // my vars (dec)
952
953             // set gobject values
954         }
955
956         // user defined functions
957     }
958
959
960     public class Xcls_tv_active_ticket : Object
961     {
962         public Gtk.TreeViewColumn el;
963         private Clones  _this;
964
965
966             // my vars (def)
967
968         // ctor
969         public Xcls_tv_active_ticket(Clones _owner )
970         {
971             _this = _owner;
972             _this.tv_active_ticket = this;
973             this.el = new Gtk.TreeViewColumn();
974
975             // my vars (dec)
976
977             // set gobject values
978             this.el.title = "Active Ticket";
979             this.el.min_width = 50;
980             var child_0 = new Xcls_cr_active_ticket( _this );
981             child_0.ref();
982             this.el.pack_start (  child_0.el , false );
983
984             // init method
985
986             this.el.add_attribute(_this.cr_active_ticket.el , "markup", 9 );
987         }
988
989         // user defined functions
990     }
991     public class Xcls_cr_active_ticket : Object
992     {
993         public Gtk.CellRendererText el;
994         private Clones  _this;
995
996
997             // my vars (def)
998
999         // ctor
1000         public Xcls_cr_active_ticket(Clones _owner )
1001         {
1002             _this = _owner;
1003             _this.cr_active_ticket = this;
1004             this.el = new Gtk.CellRendererText();
1005
1006             // my vars (dec)
1007
1008             // set gobject values
1009         }
1010
1011         // user defined functions
1012     }
1013
1014
1015     public class Xcls_tv_current_branch : Object
1016     {
1017         public Gtk.TreeViewColumn el;
1018         private Clones  _this;
1019
1020
1021             // my vars (def)
1022
1023         // ctor
1024         public Xcls_tv_current_branch(Clones _owner )
1025         {
1026             _this = _owner;
1027             _this.tv_current_branch = this;
1028             this.el = new Gtk.TreeViewColumn();
1029
1030             // my vars (dec)
1031
1032             // set gobject values
1033             this.el.title = "Current Branch";
1034             this.el.min_width = 50;
1035             var child_0 = new Xcls_cr_current_branch( _this );
1036             child_0.ref();
1037             this.el.pack_start (  child_0.el , false );
1038
1039             // init method
1040
1041             this.el.add_attribute(_this.cr_current_branch.el , "markup", 1 );
1042                  this.el.add_attribute(_this.cr_current_branch.el, "cell-background", 7 );
1043         }
1044
1045         // user defined functions
1046     }
1047     public class Xcls_cr_current_branch : Object
1048     {
1049         public Gtk.CellRendererText el;
1050         private Clones  _this;
1051
1052
1053             // my vars (def)
1054
1055         // ctor
1056         public Xcls_cr_current_branch(Clones _owner )
1057         {
1058             _this = _owner;
1059             _this.cr_current_branch = this;
1060             this.el = new Gtk.CellRendererText();
1061
1062             // my vars (dec)
1063
1064             // set gobject values
1065         }
1066
1067         // user defined functions
1068     }
1069
1070
1071     public class Xcls_tv_last_updated : Object
1072     {
1073         public Gtk.TreeViewColumn el;
1074         private Clones  _this;
1075
1076
1077             // my vars (def)
1078
1079         // ctor
1080         public Xcls_tv_last_updated(Clones _owner )
1081         {
1082             _this = _owner;
1083             _this.tv_last_updated = this;
1084             this.el = new Gtk.TreeViewColumn();
1085
1086             // my vars (dec)
1087
1088             // set gobject values
1089             this.el.title = "Last updated";
1090             this.el.min_width = 50;
1091             var child_0 = new Xcls_cr_last_updated( _this );
1092             child_0.ref();
1093             this.el.pack_start (  child_0.el , false );
1094
1095             // init method
1096
1097             this.el.add_attribute(_this.cr_last_updated.el , "markup", 3 );
1098         }
1099
1100         // user defined functions
1101     }
1102     public class Xcls_cr_last_updated : Object
1103     {
1104         public Gtk.CellRendererText el;
1105         private Clones  _this;
1106
1107
1108             // my vars (def)
1109
1110         // ctor
1111         public Xcls_cr_last_updated(Clones _owner )
1112         {
1113             _this = _owner;
1114             _this.cr_last_updated = this;
1115             this.el = new Gtk.CellRendererText();
1116
1117             // my vars (dec)
1118
1119             // set gobject values
1120         }
1121
1122         // user defined functions
1123     }
1124
1125
1126     public class Xcls_tv_all_branches : Object
1127     {
1128         public Gtk.TreeViewColumn el;
1129         private Clones  _this;
1130
1131
1132             // my vars (def)
1133
1134         // ctor
1135         public Xcls_tv_all_branches(Clones _owner )
1136         {
1137             _this = _owner;
1138             _this.tv_all_branches = this;
1139             this.el = new Gtk.TreeViewColumn();
1140
1141             // my vars (dec)
1142
1143             // set gobject values
1144             this.el.title = "All Branches";
1145             this.el.min_width = 50;
1146             this.el.resizable = false;
1147             var child_0 = new Xcls_cr_all_branches( _this );
1148             child_0.ref();
1149             this.el.pack_start (  child_0.el , false );
1150
1151             // init method
1152
1153             this.el.add_attribute(_this.cr_all_branches.el , "markup", 2 );
1154         }
1155
1156         // user defined functions
1157     }
1158     public class Xcls_cr_all_branches : Object
1159     {
1160         public Gtk.CellRendererText el;
1161         private Clones  _this;
1162
1163
1164             // my vars (def)
1165
1166         // ctor
1167         public Xcls_cr_all_branches(Clones _owner )
1168         {
1169             _this = _owner;
1170             _this.cr_all_branches = this;
1171             this.el = new Gtk.CellRendererText();
1172
1173             // my vars (dec)
1174
1175             // set gobject values
1176         }
1177
1178         // user defined functions
1179     }
1180
1181
1182
1183
1184
1185     public class Xcls_ok_button : Object
1186     {
1187         public Gtk.Button el;
1188         private Clones  _this;
1189
1190
1191             // my vars (def)
1192
1193         // ctor
1194         public Xcls_ok_button(Clones _owner )
1195         {
1196             _this = _owner;
1197             _this.ok_button = this;
1198             this.el = new Gtk.Button();
1199
1200             // my vars (dec)
1201
1202             // set gobject values
1203             this.el.expand = false;
1204             this.el.label = "Close";
1205         }
1206
1207         // user defined functions
1208     }
1209
1210 }