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