d5e291839bf80b497081cde73c64987e7d400b6c
[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.git_working_dir );  
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               
717                 Gtk.TreeIter iter;
718                 _this.reposStore.el.get_iter_from_string(out iter, path);
719                 
720                 GLib.Value val;
721                 GLib.Value rval;
722                 _this.reposStore.el.get_value(iter, 4, out val);
723                 _this.reposStore.el.get_value(iter, 6, out rval);
724                 
725                 var repopath = (string)rval;
726                 var bval = (bool)val;
727                 _this.reposStore.el.set_value(iter, 4, !bval);
728                 GLib.debug("got repopath? %s", repopath);
729                 
730                 var repo = GitRepo.get(repopath);
731                 repo.set_autocommit(!bval);
732                 
733                 
734                 
735               
736             });
737         }
738
739         // user defined functions
740     }
741
742
743     public class Xcls_tv_autopush : Object
744     {
745         public Gtk.TreeViewColumn el;
746         private Clones  _this;
747
748
749             // my vars (def)
750
751         // ctor
752         public Xcls_tv_autopush(Clones _owner )
753         {
754             _this = _owner;
755             _this.tv_autopush = this;
756             this.el = new Gtk.TreeViewColumn();
757
758             // my vars (dec)
759
760             // set gobject values
761             this.el.title = "Auto Push";
762             this.el.min_width = 50;
763             var child_0 = new Xcls_cr_autopush( _this );
764             child_0.ref();
765             this.el.pack_start (  child_0.el , false );
766
767             // init method
768
769             this.el.add_attribute(_this.cr_autopush.el , "active", 5 );
770             //      this.items[0].el.set_activatable(true);
771         }
772
773         // user defined functions
774     }
775     public class Xcls_cr_autopush : Object
776     {
777         public Gtk.CellRendererToggle el;
778         private Clones  _this;
779
780
781             // my vars (def)
782
783         // ctor
784         public Xcls_cr_autopush(Clones _owner )
785         {
786             _this = _owner;
787             _this.cr_autopush = this;
788             this.el = new Gtk.CellRendererToggle();
789
790             // my vars (dec)
791
792             // set gobject values
793             this.el.mode = Gtk.CellRendererMode.ACTIVATABLE;
794
795             //listeners
796             this.el.toggled.connect( (self, path)  => {
797               
798                 Gtk.TreeIter iter;
799                 _this.reposStore.el.get_iter_from_string(out iter, path);
800                 
801                 GLib.Value val;
802                 GLib.Value rval;
803                 _this.reposStore.el.get_value(iter, 5, out val);
804                 _this.reposStore.el.get_value(iter, 6, out rval);
805                 
806                 var repopath = (string)rval;
807                 var bval = (bool)val;
808                 _this.reposStore.el.set_value(iter, 5, !bval);
809                 var repo = GitRepo.get(repopath);
810                 repo.set_autopush(!bval);
811                 
812                 
813                 
814               
815             });
816         }
817
818         // user defined functions
819     }
820
821
822     public class Xcls_tv_autobranch : Object
823     {
824         public Gtk.TreeViewColumn el;
825         private Clones  _this;
826
827
828             // my vars (def)
829
830         // ctor
831         public Xcls_tv_autobranch(Clones _owner )
832         {
833             _this = _owner;
834             _this.tv_autobranch = this;
835             this.el = new Gtk.TreeViewColumn();
836
837             // my vars (dec)
838
839             // set gobject values
840             this.el.title = "Auto Branch";
841             this.el.min_width = 50;
842             var child_0 = new Xcls_cr_autobranch( _this );
843             child_0.ref();
844             this.el.pack_start (  child_0.el , false );
845
846             // init method
847
848             this.el.add_attribute(_this.cr_autobranch.el , "active", 8 );
849             //      this.items[0].el.set_activatable(true);
850         }
851
852         // user defined functions
853     }
854     public class Xcls_cr_autobranch : Object
855     {
856         public Gtk.CellRendererToggle el;
857         private Clones  _this;
858
859
860             // my vars (def)
861
862         // ctor
863         public Xcls_cr_autobranch(Clones _owner )
864         {
865             _this = _owner;
866             _this.cr_autobranch = this;
867             this.el = new Gtk.CellRendererToggle();
868
869             // my vars (dec)
870
871             // set gobject values
872             this.el.mode = Gtk.CellRendererMode.ACTIVATABLE;
873
874             //listeners
875             this.el.toggled.connect( (self, path)  => {
876               
877                 Gtk.TreeIter iter;
878                 _this.reposStore.el.get_iter_from_string(out iter, path);
879                 
880                 GLib.Value val;
881                 GLib.Value rval;
882                 _this.reposStore.el.get_value(iter, 8, out val);
883                 _this.reposStore.el.get_value(iter, 6, out rval);
884                 
885                 var repopath = (string)rval;
886                 var bval = (bool)val;
887                 _this.reposStore.el.set_value(iter, 8, !bval);
888                 var repo = GitRepo.get(repopath);
889                 repo.set_auto_branch(!bval);
890                 
891                 
892                 
893               
894             });
895         }
896
897         // user defined functions
898     }
899
900
901     public class Xcls_tv_repo : Object
902     {
903         public Gtk.TreeViewColumn el;
904         private Clones  _this;
905
906
907             // my vars (def)
908
909         // ctor
910         public Xcls_tv_repo(Clones _owner )
911         {
912             _this = _owner;
913             _this.tv_repo = this;
914             this.el = new Gtk.TreeViewColumn();
915
916             // my vars (dec)
917
918             // set gobject values
919             this.el.sort_column_id = 0;
920             this.el.title = "Repo";
921             this.el.min_width = 200;
922             this.el.sort_order = Gtk.SortType.ASCENDING;
923             this.el.resizable = true;
924             var child_0 = new Xcls_cr_repo( _this );
925             child_0.ref();
926             this.el.pack_start (  child_0.el , false );
927
928             // init method
929
930             this.el.add_attribute(_this.cr_repo.el , "markup", 0 );
931         }
932
933         // user defined functions
934     }
935     public class Xcls_cr_repo : Object
936     {
937         public Gtk.CellRendererText el;
938         private Clones  _this;
939
940
941             // my vars (def)
942
943         // ctor
944         public Xcls_cr_repo(Clones _owner )
945         {
946             _this = _owner;
947             _this.cr_repo = this;
948             this.el = new Gtk.CellRendererText();
949
950             // my vars (dec)
951
952             // set gobject values
953         }
954
955         // user defined functions
956     }
957
958
959     public class Xcls_tv_active_ticket : Object
960     {
961         public Gtk.TreeViewColumn el;
962         private Clones  _this;
963
964
965             // my vars (def)
966
967         // ctor
968         public Xcls_tv_active_ticket(Clones _owner )
969         {
970             _this = _owner;
971             _this.tv_active_ticket = this;
972             this.el = new Gtk.TreeViewColumn();
973
974             // my vars (dec)
975
976             // set gobject values
977             this.el.title = "Active Ticket";
978             this.el.min_width = 50;
979             var child_0 = new Xcls_cr_active_ticket( _this );
980             child_0.ref();
981             this.el.pack_start (  child_0.el , false );
982
983             // init method
984
985             this.el.add_attribute(_this.cr_active_ticket.el , "markup", 9 );
986         }
987
988         // user defined functions
989     }
990     public class Xcls_cr_active_ticket : Object
991     {
992         public Gtk.CellRendererText el;
993         private Clones  _this;
994
995
996             // my vars (def)
997
998         // ctor
999         public Xcls_cr_active_ticket(Clones _owner )
1000         {
1001             _this = _owner;
1002             _this.cr_active_ticket = this;
1003             this.el = new Gtk.CellRendererText();
1004
1005             // my vars (dec)
1006
1007             // set gobject values
1008         }
1009
1010         // user defined functions
1011     }
1012
1013
1014     public class Xcls_tv_current_branch : Object
1015     {
1016         public Gtk.TreeViewColumn el;
1017         private Clones  _this;
1018
1019
1020             // my vars (def)
1021
1022         // ctor
1023         public Xcls_tv_current_branch(Clones _owner )
1024         {
1025             _this = _owner;
1026             _this.tv_current_branch = this;
1027             this.el = new Gtk.TreeViewColumn();
1028
1029             // my vars (dec)
1030
1031             // set gobject values
1032             this.el.title = "Current Branch";
1033             this.el.min_width = 50;
1034             var child_0 = new Xcls_cr_current_branch( _this );
1035             child_0.ref();
1036             this.el.pack_start (  child_0.el , false );
1037
1038             // init method
1039
1040             this.el.add_attribute(_this.cr_current_branch.el , "markup", 1 );
1041                  this.el.add_attribute(_this.cr_current_branch.el, "cell-background", 7 );
1042         }
1043
1044         // user defined functions
1045     }
1046     public class Xcls_cr_current_branch : Object
1047     {
1048         public Gtk.CellRendererText el;
1049         private Clones  _this;
1050
1051
1052             // my vars (def)
1053
1054         // ctor
1055         public Xcls_cr_current_branch(Clones _owner )
1056         {
1057             _this = _owner;
1058             _this.cr_current_branch = this;
1059             this.el = new Gtk.CellRendererText();
1060
1061             // my vars (dec)
1062
1063             // set gobject values
1064         }
1065
1066         // user defined functions
1067     }
1068
1069
1070     public class Xcls_tv_last_updated : Object
1071     {
1072         public Gtk.TreeViewColumn el;
1073         private Clones  _this;
1074
1075
1076             // my vars (def)
1077
1078         // ctor
1079         public Xcls_tv_last_updated(Clones _owner )
1080         {
1081             _this = _owner;
1082             _this.tv_last_updated = this;
1083             this.el = new Gtk.TreeViewColumn();
1084
1085             // my vars (dec)
1086
1087             // set gobject values
1088             this.el.title = "Last updated";
1089             this.el.min_width = 50;
1090             var child_0 = new Xcls_cr_last_updated( _this );
1091             child_0.ref();
1092             this.el.pack_start (  child_0.el , false );
1093
1094             // init method
1095
1096             this.el.add_attribute(_this.cr_last_updated.el , "markup", 3 );
1097         }
1098
1099         // user defined functions
1100     }
1101     public class Xcls_cr_last_updated : Object
1102     {
1103         public Gtk.CellRendererText el;
1104         private Clones  _this;
1105
1106
1107             // my vars (def)
1108
1109         // ctor
1110         public Xcls_cr_last_updated(Clones _owner )
1111         {
1112             _this = _owner;
1113             _this.cr_last_updated = this;
1114             this.el = new Gtk.CellRendererText();
1115
1116             // my vars (dec)
1117
1118             // set gobject values
1119         }
1120
1121         // user defined functions
1122     }
1123
1124
1125     public class Xcls_tv_all_branches : Object
1126     {
1127         public Gtk.TreeViewColumn el;
1128         private Clones  _this;
1129
1130
1131             // my vars (def)
1132
1133         // ctor
1134         public Xcls_tv_all_branches(Clones _owner )
1135         {
1136             _this = _owner;
1137             _this.tv_all_branches = this;
1138             this.el = new Gtk.TreeViewColumn();
1139
1140             // my vars (dec)
1141
1142             // set gobject values
1143             this.el.title = "All Branches";
1144             this.el.min_width = 50;
1145             this.el.resizable = false;
1146             var child_0 = new Xcls_cr_all_branches( _this );
1147             child_0.ref();
1148             this.el.pack_start (  child_0.el , false );
1149
1150             // init method
1151
1152             this.el.add_attribute(_this.cr_all_branches.el , "markup", 2 );
1153         }
1154
1155         // user defined functions
1156     }
1157     public class Xcls_cr_all_branches : Object
1158     {
1159         public Gtk.CellRendererText el;
1160         private Clones  _this;
1161
1162
1163             // my vars (def)
1164
1165         // ctor
1166         public Xcls_cr_all_branches(Clones _owner )
1167         {
1168             _this = _owner;
1169             _this.cr_all_branches = this;
1170             this.el = new Gtk.CellRendererText();
1171
1172             // my vars (dec)
1173
1174             // set gobject values
1175         }
1176
1177         // user defined functions
1178     }
1179
1180
1181
1182
1183
1184     public class Xcls_ok_button : Object
1185     {
1186         public Gtk.Button el;
1187         private Clones  _this;
1188
1189
1190             // my vars (def)
1191
1192         // ctor
1193         public Xcls_ok_button(Clones _owner )
1194         {
1195             _this = _owner;
1196             _this.ok_button = this;
1197             this.el = new Gtk.Button();
1198
1199             // my vars (dec)
1200
1201             // set gobject values
1202             this.el.expand = false;
1203             this.el.label = "Close";
1204         }
1205
1206         // user defined functions
1207     }
1208
1209 }