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