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               
866                 Gtk.TreeIter iter;
867                 _this.reposStore.el.get_iter_from_string(out iter, path);
868                 
869                 GLib.Value val;
870                 GLib.Value rval;
871                 _this.reposStore.el.get_value(iter, 7, out val);
872                 _this.reposStore.el.get_value(iter, 2, out rval);
873                 
874                 bool bval = (bool)val;
875                 _this.reposStore.el.set_value(iter, 7, !bval);
876                 
877                 // get the repo from the iter...
878                 
879                 
880               
881             /*    var ret ={} ;
882                 var store = this.get('/reposStore');
883                 store.el.get_iter_from_string(ret, path);
884                                                                              
885                 var value =   store.el.get_value(ret.iter,5).value.get_boolean();
886                                                                              
887                 //print(JSON.stringify(value));
888                 store.el.set_value(ret.iter,5, !value);
889                   var path =  store.el.get_value(ret.iter, 6).value.get_string();
890                  var repo = imports.Scm.Repo.Repo.get(path);
891                  repo.autopush(!value);
892                 */
893             });
894         }
895
896         // user defined functions
897     }
898
899
900     public class Xcls_tv_repo : Object
901     {
902         public Gtk.TreeViewColumn el;
903         private Clones  _this;
904
905
906             // my vars (def)
907
908         // ctor
909         public Xcls_tv_repo(Clones _owner )
910         {
911             _this = _owner;
912             _this.tv_repo = this;
913             this.el = new Gtk.TreeViewColumn();
914
915             // my vars (dec)
916
917             // set gobject values
918             this.el.sort_column_id = 0;
919             this.el.title = "Repo";
920             this.el.min_width = 200;
921             this.el.sort_order = Gtk.SortType.ASCENDING;
922             this.el.resizable = true;
923             var child_0 = new Xcls_cr_repo( _this );
924             child_0.ref();
925             this.el.pack_start (  child_0.el , false );
926
927             // init method
928
929             this.el.add_attribute(_this.cr_repo.el , "markup", 0 );
930         }
931
932         // user defined functions
933     }
934     public class Xcls_cr_repo : Object
935     {
936         public Gtk.CellRendererText el;
937         private Clones  _this;
938
939
940             // my vars (def)
941
942         // ctor
943         public Xcls_cr_repo(Clones _owner )
944         {
945             _this = _owner;
946             _this.cr_repo = this;
947             this.el = new Gtk.CellRendererText();
948
949             // my vars (dec)
950
951             // set gobject values
952         }
953
954         // user defined functions
955     }
956
957
958     public class Xcls_tv_active_ticket : Object
959     {
960         public Gtk.TreeViewColumn el;
961         private Clones  _this;
962
963
964             // my vars (def)
965
966         // ctor
967         public Xcls_tv_active_ticket(Clones _owner )
968         {
969             _this = _owner;
970             _this.tv_active_ticket = this;
971             this.el = new Gtk.TreeViewColumn();
972
973             // my vars (dec)
974
975             // set gobject values
976             this.el.title = "Active Ticket";
977             this.el.min_width = 50;
978             var child_0 = new Xcls_cr_active_ticket( _this );
979             child_0.ref();
980             this.el.pack_start (  child_0.el , false );
981
982             // init method
983
984             this.el.add_attribute(_this.cr_active_ticket.el , "markup", 9 );
985         }
986
987         // user defined functions
988     }
989     public class Xcls_cr_active_ticket : Object
990     {
991         public Gtk.CellRendererText el;
992         private Clones  _this;
993
994
995             // my vars (def)
996
997         // ctor
998         public Xcls_cr_active_ticket(Clones _owner )
999         {
1000             _this = _owner;
1001             _this.cr_active_ticket = this;
1002             this.el = new Gtk.CellRendererText();
1003
1004             // my vars (dec)
1005
1006             // set gobject values
1007         }
1008
1009         // user defined functions
1010     }
1011
1012
1013     public class Xcls_tv_current_branch : Object
1014     {
1015         public Gtk.TreeViewColumn el;
1016         private Clones  _this;
1017
1018
1019             // my vars (def)
1020
1021         // ctor
1022         public Xcls_tv_current_branch(Clones _owner )
1023         {
1024             _this = _owner;
1025             _this.tv_current_branch = this;
1026             this.el = new Gtk.TreeViewColumn();
1027
1028             // my vars (dec)
1029
1030             // set gobject values
1031             this.el.title = "Current Branch";
1032             this.el.min_width = 50;
1033             var child_0 = new Xcls_cr_current_branch( _this );
1034             child_0.ref();
1035             this.el.pack_start (  child_0.el , false );
1036
1037             // init method
1038
1039             this.el.add_attribute(_this.cr_current_branch.el , "markup", 1 );
1040                  this.el.add_attribute(_this.cr_current_branch.el, "cell-background", 7 );
1041         }
1042
1043         // user defined functions
1044     }
1045     public class Xcls_cr_current_branch : Object
1046     {
1047         public Gtk.CellRendererText el;
1048         private Clones  _this;
1049
1050
1051             // my vars (def)
1052
1053         // ctor
1054         public Xcls_cr_current_branch(Clones _owner )
1055         {
1056             _this = _owner;
1057             _this.cr_current_branch = this;
1058             this.el = new Gtk.CellRendererText();
1059
1060             // my vars (dec)
1061
1062             // set gobject values
1063         }
1064
1065         // user defined functions
1066     }
1067
1068
1069     public class Xcls_tv_last_updated : Object
1070     {
1071         public Gtk.TreeViewColumn el;
1072         private Clones  _this;
1073
1074
1075             // my vars (def)
1076
1077         // ctor
1078         public Xcls_tv_last_updated(Clones _owner )
1079         {
1080             _this = _owner;
1081             _this.tv_last_updated = this;
1082             this.el = new Gtk.TreeViewColumn();
1083
1084             // my vars (dec)
1085
1086             // set gobject values
1087             this.el.title = "Last updated";
1088             this.el.min_width = 50;
1089             var child_0 = new Xcls_cr_last_updated( _this );
1090             child_0.ref();
1091             this.el.pack_start (  child_0.el , false );
1092
1093             // init method
1094
1095             this.el.add_attribute(_this.cr_last_updated.el , "markup", 3 );
1096         }
1097
1098         // user defined functions
1099     }
1100     public class Xcls_cr_last_updated : Object
1101     {
1102         public Gtk.CellRendererText el;
1103         private Clones  _this;
1104
1105
1106             // my vars (def)
1107
1108         // ctor
1109         public Xcls_cr_last_updated(Clones _owner )
1110         {
1111             _this = _owner;
1112             _this.cr_last_updated = this;
1113             this.el = new Gtk.CellRendererText();
1114
1115             // my vars (dec)
1116
1117             // set gobject values
1118         }
1119
1120         // user defined functions
1121     }
1122
1123
1124     public class Xcls_tv_all_branches : Object
1125     {
1126         public Gtk.TreeViewColumn el;
1127         private Clones  _this;
1128
1129
1130             // my vars (def)
1131
1132         // ctor
1133         public Xcls_tv_all_branches(Clones _owner )
1134         {
1135             _this = _owner;
1136             _this.tv_all_branches = this;
1137             this.el = new Gtk.TreeViewColumn();
1138
1139             // my vars (dec)
1140
1141             // set gobject values
1142             this.el.title = "All Branches";
1143             this.el.min_width = 50;
1144             this.el.resizable = false;
1145             var child_0 = new Xcls_cr_all_branches( _this );
1146             child_0.ref();
1147             this.el.pack_start (  child_0.el , false );
1148
1149             // init method
1150
1151             this.el.add_attribute(_this.cr_all_branches.el , "markup", 2 );
1152         }
1153
1154         // user defined functions
1155     }
1156     public class Xcls_cr_all_branches : Object
1157     {
1158         public Gtk.CellRendererText el;
1159         private Clones  _this;
1160
1161
1162             // my vars (def)
1163
1164         // ctor
1165         public Xcls_cr_all_branches(Clones _owner )
1166         {
1167             _this = _owner;
1168             _this.cr_all_branches = this;
1169             this.el = new Gtk.CellRendererText();
1170
1171             // my vars (dec)
1172
1173             // set gobject values
1174         }
1175
1176         // user defined functions
1177     }
1178
1179
1180
1181
1182
1183     public class Xcls_ok_button : Object
1184     {
1185         public Gtk.Button el;
1186         private Clones  _this;
1187
1188
1189             // my vars (def)
1190
1191         // ctor
1192         public Xcls_ok_button(Clones _owner )
1193         {
1194             _this = _owner;
1195             _this.ok_button = this;
1196             this.el = new Gtk.Button();
1197
1198             // my vars (dec)
1199
1200             // set gobject values
1201             this.el.expand = false;
1202             this.el.label = "Close";
1203         }
1204
1205         // user defined functions
1206     }
1207
1208 }