src/Builder4/RooProjectSettings.bjs
[roobuilder] / src / Builder4 / RooProjectSettings.vala
1 static Xcls_ProjectSettings  _ProjectSettings;
2
3 public class Xcls_ProjectSettings : Object
4 {
5     public Gtk.Popover el;
6     private Xcls_ProjectSettings  _this;
7
8     public static Xcls_ProjectSettings singleton()
9     {
10         if (_ProjectSettings == null) {
11             _ProjectSettings= new Xcls_ProjectSettings();
12         }
13         return _ProjectSettings;
14     }
15     public Xcls_label_global label_global;
16     public Xcls_label_database label_database;
17     public Xcls_path path;
18     public Xcls_base_template base_template;
19     public Xcls_rootURL rootURL;
20     public Xcls_view view;
21     public Xcls_database_DBTYPE database_DBTYPE;
22     public Xcls_database_DBNAME database_DBNAME;
23     public Xcls_database_DBUSERNAME database_DBUSERNAME;
24     public Xcls_database_DBPASSWORD database_DBPASSWORD;
25     public Xcls_database_ERROR database_ERROR;
26
27         // my vars (def)
28     public signal void buttonPressed (string btn);
29     public Project.Project project;
30
31     // ctor
32     public Xcls_ProjectSettings()
33     {
34         _this = this;
35         this.el = new Gtk.Popover( null );
36
37         // my vars (dec)
38
39         // set gobject values
40         var child_0 = new Xcls_Box2( _this );
41         child_0.ref();
42         this.el.add (  child_0.el  );
43     }
44
45     // user defined functions
46     public void show (Project.Project project) {
47         _this.project = project;
48         _this.path.el.label = project.firstPath();
49         // get the active project.
50          var lm = Gtk.SourceLanguageManager.get_default();
51                     
52         ((Gtk.SourceBuffer)(_this.view.el.get_buffer())) .set_language(
53         
54             lm.get_language("html"));
55       
56         //print (project.fn);
57         //project.runhtml = project.runhtml || '';
58         _this.view.el.get_buffer().set_text(project.runhtml);
59         
60            
61         _this.rootURL.el.set_text( _this.project.rootURL );
62         _this.base_template.el.set_text(_this.project.base_template);    
63          var js = _this.project;
64         _this.database_DBTYPE.el.set_text(     js.get_string_member("DBTYPE") );
65         _this.database_DBNAME.el.set_text(    js.get_string_member("DBNAME") );
66         _this.database_DBUSERNAME.el.set_text(    js.get_string_member("DBUSERNAME") );
67         _this.database_DBPASSWORD.el.set_text(    js.get_string_member("DBPASSWORD") );
68         //this.el.show_all();
69     }
70     public void save () {
71        var buf =    _this.view.el.get_buffer();
72        Gtk.TextIter s;
73          Gtk.TextIter e;
74         buf.get_start_iter(out s);
75         buf.get_end_iter(out e);
76           _this.project.runhtml = buf.get_text(s,e,true);
77           
78         _this.project.rootURL = _this.rootURL.el.get_text();
79         _this.project.base_template = _this.base_template.el.get_text();    
80         
81         var js = _this.project.json_project_data;
82         js.set_string_member("DBTYPE", _this.database_DBTYPE.el.get_text());
83        js.set_string_member("DBNAME", _this.database_DBNAME.el.get_text());
84         js.set_string_member("DBUSERNAME", _this.database_DBUSERNAME.el.get_text());
85         js.set_string_member("DBPASSWORD", _this.database_DBPASSWORD.el.get_text());
86     //    _this.project.set_string_member("DBHOST", _this.DBTYPE.el.get_text());    
87         
88         // need to re-init the database 
89         
90         _this.project.initRooDatabase();
91          
92         
93     }
94     public class Xcls_Box2 : Object
95     {
96         public Gtk.Box el;
97         private Xcls_ProjectSettings  _this;
98
99
100             // my vars (def)
101
102         // ctor
103         public Xcls_Box2(Xcls_ProjectSettings _owner )
104         {
105             _this = _owner;
106             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
107
108             // my vars (dec)
109
110             // set gobject values
111             this.el.homogeneous = false;
112             this.el.border_width = 5;
113             var child_0 = new Xcls_Box3( _this );
114             child_0.ref();
115             this.el.pack_start (  child_0.el , false,false,0 );
116             var child_1 = new Xcls_Notebook6( _this );
117             child_1.ref();
118             this.el.pack_end (  child_1.el , true,true,0 );
119         }
120
121         // user defined functions
122     }
123     public class Xcls_Box3 : Object
124     {
125         public Gtk.Box el;
126         private Xcls_ProjectSettings  _this;
127
128
129             // my vars (def)
130
131         // ctor
132         public Xcls_Box3(Xcls_ProjectSettings _owner )
133         {
134             _this = _owner;
135             this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
136
137             // my vars (dec)
138
139             // set gobject values
140             this.el.homogeneous = true;
141             this.el.expand = false;
142             this.el.vexpand = false;
143             var child_0 = new Xcls_Button4( _this );
144             child_0.ref();
145             this.el.add (  child_0.el  );
146             var child_1 = new Xcls_Button5( _this );
147             child_1.ref();
148             this.el.add (  child_1.el  );
149         }
150
151         // user defined functions
152     }
153     public class Xcls_Button4 : Object
154     {
155         public Gtk.Button el;
156         private Xcls_ProjectSettings  _this;
157
158
159             // my vars (def)
160
161         // ctor
162         public Xcls_Button4(Xcls_ProjectSettings _owner )
163         {
164             _this = _owner;
165             this.el = new Gtk.Button();
166
167             // my vars (dec)
168
169             // set gobject values
170             this.el.label = "Apply";
171
172             //listeners
173             this.el.button_press_event.connect( () => {
174                 _this.save();
175                       
176                 _this.buttonPressed("apply");
177                     return false;
178             });
179         }
180
181         // user defined functions
182     }
183
184     public class Xcls_Button5 : Object
185     {
186         public Gtk.Button el;
187         private Xcls_ProjectSettings  _this;
188
189
190             // my vars (def)
191
192         // ctor
193         public Xcls_Button5(Xcls_ProjectSettings _owner )
194         {
195             _this = _owner;
196             this.el = new Gtk.Button();
197
198             // my vars (dec)
199
200             // set gobject values
201             this.el.label = "Save";
202
203             //listeners
204             this.el.button_press_event.connect( () => {
205                    _this.save();
206                       
207                 _this.buttonPressed("save");
208                     return false;
209             });
210         }
211
212         // user defined functions
213     }
214
215
216     public class Xcls_Notebook6 : Object
217     {
218         public Gtk.Notebook el;
219         private Xcls_ProjectSettings  _this;
220
221
222             // my vars (def)
223
224         // ctor
225         public Xcls_Notebook6(Xcls_ProjectSettings _owner )
226         {
227             _this = _owner;
228             this.el = new Gtk.Notebook();
229
230             // my vars (dec)
231
232             // set gobject values
233             var child_0 = new Xcls_label_global( _this );
234             child_0.ref();
235             var child_1 = new Xcls_label_database( _this );
236             child_1.ref();
237             var child_2 = new Xcls_Box9( _this );
238             child_2.ref();
239             this.el.append_page (  child_2.el , _this.label_global.el );
240             var child_3 = new Xcls_Box20( _this );
241             child_3.ref();
242             this.el.append_page (  child_3.el , _this.label_database.el );
243         }
244
245         // user defined functions
246     }
247     public class Xcls_label_global : Object
248     {
249         public Gtk.Label el;
250         private Xcls_ProjectSettings  _this;
251
252
253             // my vars (def)
254
255         // ctor
256         public Xcls_label_global(Xcls_ProjectSettings _owner )
257         {
258             _this = _owner;
259             _this.label_global = this;
260             this.el = new Gtk.Label( "Global" );
261
262             // my vars (dec)
263
264             // set gobject values
265         }
266
267         // user defined functions
268     }
269
270     public class Xcls_label_database : Object
271     {
272         public Gtk.Label el;
273         private Xcls_ProjectSettings  _this;
274
275
276             // my vars (def)
277
278         // ctor
279         public Xcls_label_database(Xcls_ProjectSettings _owner )
280         {
281             _this = _owner;
282             _this.label_database = this;
283             this.el = new Gtk.Label( "Database" );
284
285             // my vars (dec)
286
287             // set gobject values
288         }
289
290         // user defined functions
291     }
292
293     public class Xcls_Box9 : Object
294     {
295         public Gtk.Box el;
296         private Xcls_ProjectSettings  _this;
297
298
299             // my vars (def)
300
301         // ctor
302         public Xcls_Box9(Xcls_ProjectSettings _owner )
303         {
304             _this = _owner;
305             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
306
307             // my vars (dec)
308
309             // set gobject values
310             this.el.homogeneous = false;
311             var child_0 = new Xcls_path( _this );
312             child_0.ref();
313             this.el.pack_start (  child_0.el , false,false,0 );
314             var child_1 = new Xcls_Box11( _this );
315             child_1.ref();
316             this.el.pack_start (  child_1.el , false,false,0 );
317             var child_2 = new Xcls_Box14( _this );
318             child_2.ref();
319             this.el.pack_start (  child_2.el , false,false,0 );
320             var child_3 = new Xcls_Label17( _this );
321             child_3.ref();
322             this.el.pack_start (  child_3.el , false,false,0 );
323             var child_4 = new Xcls_ScrolledWindow18( _this );
324             child_4.ref();
325             this.el.pack_start (  child_4.el , true,true,0 );
326         }
327
328         // user defined functions
329     }
330     public class Xcls_path : Object
331     {
332         public Gtk.Label el;
333         private Xcls_ProjectSettings  _this;
334
335
336             // my vars (def)
337
338         // ctor
339         public Xcls_path(Xcls_ProjectSettings _owner )
340         {
341             _this = _owner;
342             _this.path = this;
343             this.el = new Gtk.Label( "filename" );
344
345             // my vars (dec)
346
347             // set gobject values
348             this.el.margin = 3;
349             this.el.xalign = 0f;
350         }
351
352         // user defined functions
353     }
354
355     public class Xcls_Box11 : Object
356     {
357         public Gtk.Box el;
358         private Xcls_ProjectSettings  _this;
359
360
361             // my vars (def)
362
363         // ctor
364         public Xcls_Box11(Xcls_ProjectSettings _owner )
365         {
366             _this = _owner;
367             this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
368
369             // my vars (dec)
370
371             // set gobject values
372             this.el.homogeneous = false;
373             this.el.expand = false;
374             var child_0 = new Xcls_Label12( _this );
375             child_0.ref();
376             this.el.pack_start (  child_0.el , false,false,0 );
377             var child_1 = new Xcls_base_template( _this );
378             child_1.ref();
379             this.el.add (  child_1.el  );
380         }
381
382         // user defined functions
383     }
384     public class Xcls_Label12 : Object
385     {
386         public Gtk.Label el;
387         private Xcls_ProjectSettings  _this;
388
389
390             // my vars (def)
391
392         // ctor
393         public Xcls_Label12(Xcls_ProjectSettings _owner )
394         {
395             _this = _owner;
396             this.el = new Gtk.Label( "HTML template file" );
397
398             // my vars (dec)
399
400             // set gobject values
401             this.el.margin = 3;
402         }
403
404         // user defined functions
405     }
406
407     public class Xcls_base_template : Object
408     {
409         public Gtk.Entry el;
410         private Xcls_ProjectSettings  _this;
411
412
413             // my vars (def)
414
415         // ctor
416         public Xcls_base_template(Xcls_ProjectSettings _owner )
417         {
418             _this = _owner;
419             _this.base_template = this;
420             this.el = new Gtk.Entry();
421
422             // my vars (dec)
423
424             // set gobject values
425         }
426
427         // user defined functions
428     }
429
430
431     public class Xcls_Box14 : Object
432     {
433         public Gtk.Box el;
434         private Xcls_ProjectSettings  _this;
435
436
437             // my vars (def)
438
439         // ctor
440         public Xcls_Box14(Xcls_ProjectSettings _owner )
441         {
442             _this = _owner;
443             this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
444
445             // my vars (dec)
446
447             // set gobject values
448             this.el.homogeneous = false;
449             this.el.expand = false;
450             var child_0 = new Xcls_Label15( _this );
451             child_0.ref();
452             this.el.pack_start (  child_0.el , false,false,0 );
453             var child_1 = new Xcls_rootURL( _this );
454             child_1.ref();
455             this.el.add (  child_1.el  );
456         }
457
458         // user defined functions
459     }
460     public class Xcls_Label15 : Object
461     {
462         public Gtk.Label el;
463         private Xcls_ProjectSettings  _this;
464
465
466             // my vars (def)
467
468         // ctor
469         public Xcls_Label15(Xcls_ProjectSettings _owner )
470         {
471             _this = _owner;
472             this.el = new Gtk.Label( "root URL" );
473
474             // my vars (dec)
475
476             // set gobject values
477             this.el.margin = 3;
478         }
479
480         // user defined functions
481     }
482
483     public class Xcls_rootURL : Object
484     {
485         public Gtk.Entry el;
486         private Xcls_ProjectSettings  _this;
487
488
489             // my vars (def)
490
491         // ctor
492         public Xcls_rootURL(Xcls_ProjectSettings _owner )
493         {
494             _this = _owner;
495             _this.rootURL = this;
496             this.el = new Gtk.Entry();
497
498             // my vars (dec)
499
500             // set gobject values
501         }
502
503         // user defined functions
504     }
505
506
507     public class Xcls_Label17 : Object
508     {
509         public Gtk.Label el;
510         private Xcls_ProjectSettings  _this;
511
512
513             // my vars (def)
514
515         // ctor
516         public Xcls_Label17(Xcls_ProjectSettings _owner )
517         {
518             _this = _owner;
519             this.el = new Gtk.Label( "HTML To insert at end of <HEAD>" );
520
521             // my vars (dec)
522
523             // set gobject values
524         }
525
526         // user defined functions
527     }
528
529     public class Xcls_ScrolledWindow18 : Object
530     {
531         public Gtk.ScrolledWindow el;
532         private Xcls_ProjectSettings  _this;
533
534
535             // my vars (def)
536
537         // ctor
538         public Xcls_ScrolledWindow18(Xcls_ProjectSettings _owner )
539         {
540             _this = _owner;
541             this.el = new Gtk.ScrolledWindow( null, null );
542
543             // my vars (dec)
544
545             // set gobject values
546             var child_0 = new Xcls_view( _this );
547             child_0.ref();
548             this.el.add (  child_0.el  );
549         }
550
551         // user defined functions
552     }
553     public class Xcls_view : Object
554     {
555         public Gtk.SourceView el;
556         private Xcls_ProjectSettings  _this;
557
558
559             // my vars (def)
560
561         // ctor
562         public Xcls_view(Xcls_ProjectSettings _owner )
563         {
564             _this = _owner;
565             _this.view = this;
566             this.el = new Gtk.SourceView();
567
568             // my vars (dec)
569
570             // init method
571
572             var description =   Pango.FontDescription.from_string("monospace");
573                 description.set_size(9000);
574                 this.el.override_font(description);
575
576             //listeners
577             this.el.key_release_event.connect( ( event) =>{
578                 if (event.keyval != 115) {
579                     return false;
580                      
581                 }
582                 if   ( (event.state & Gdk.ModifierType.CONTROL_MASK ) < 1 ) {
583                     return false;
584                 }
585                  var buf =    this.el.get_buffer();
586                 Gtk.TextIter s;
587                 Gtk.TextIter e;
588                 buf.get_start_iter(out s);
589                 buf.get_end_iter(out e);
590                 _this.project.runhtml = buf.get_text(s,e,true);
591                 
592                       
593                 _this.buttonPressed("save");
594                  
595                 return false;
596                      
597             });
598         }
599
600         // user defined functions
601     }
602
603
604
605     public class Xcls_Box20 : Object
606     {
607         public Gtk.Box el;
608         private Xcls_ProjectSettings  _this;
609
610
611             // my vars (def)
612
613         // ctor
614         public Xcls_Box20(Xcls_ProjectSettings _owner )
615         {
616             _this = _owner;
617             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
618
619             // my vars (dec)
620
621             // set gobject values
622             this.el.homogeneous = false;
623             var child_0 = new Xcls_Label21( _this );
624             child_0.ref();
625             this.el.pack_start (  child_0.el , false,false,0 );
626             var child_1 = new Xcls_database_DBTYPE( _this );
627             child_1.ref();
628             this.el.pack_start (  child_1.el , false,false,0 );
629             var child_2 = new Xcls_Label23( _this );
630             child_2.ref();
631             this.el.pack_start (  child_2.el , false,false,0 );
632             var child_3 = new Xcls_database_DBNAME( _this );
633             child_3.ref();
634             this.el.pack_start (  child_3.el , false,false,0 );
635             var child_4 = new Xcls_Label25( _this );
636             child_4.ref();
637             this.el.pack_start (  child_4.el , false,false,0 );
638             var child_5 = new Xcls_database_DBUSERNAME( _this );
639             child_5.ref();
640             this.el.pack_start (  child_5.el , false,false,0 );
641             var child_6 = new Xcls_Label27( _this );
642             child_6.ref();
643             this.el.pack_start (  child_6.el , false,false,0 );
644             var child_7 = new Xcls_database_DBPASSWORD( _this );
645             child_7.ref();
646             this.el.pack_start (  child_7.el , false,false,0 );
647             var child_8 = new Xcls_Button29( _this );
648             child_8.ref();
649             this.el.pack_start (  child_8.el , false,false,0 );
650             var child_9 = new Xcls_database_ERROR( _this );
651             child_9.ref();
652             this.el.pack_start (  child_9.el , false,false,0 );
653         }
654
655         // user defined functions
656     }
657     public class Xcls_Label21 : Object
658     {
659         public Gtk.Label el;
660         private Xcls_ProjectSettings  _this;
661
662
663             // my vars (def)
664
665         // ctor
666         public Xcls_Label21(Xcls_ProjectSettings _owner )
667         {
668             _this = _owner;
669             this.el = new Gtk.Label( "Type (eg. MySQL or PostgreSQL)" );
670
671             // my vars (dec)
672
673             // set gobject values
674             this.el.xalign = 0f;
675         }
676
677         // user defined functions
678     }
679
680     public class Xcls_database_DBTYPE : Object
681     {
682         public Gtk.Entry el;
683         private Xcls_ProjectSettings  _this;
684
685
686             // my vars (def)
687
688         // ctor
689         public Xcls_database_DBTYPE(Xcls_ProjectSettings _owner )
690         {
691             _this = _owner;
692             _this.database_DBTYPE = this;
693             this.el = new Gtk.Entry();
694
695             // my vars (dec)
696
697             // set gobject values
698
699             //listeners
700             this.el.key_press_event.connect( (ev) => {
701             
702                 if (ev.keyval == Gdk.Key.Tab) {
703                     _this.database_DBNAME.el.grab_focus();
704                     return true;
705                 }
706             
707             
708                 return false;
709             });
710         }
711
712         // user defined functions
713     }
714
715     public class Xcls_Label23 : Object
716     {
717         public Gtk.Label el;
718         private Xcls_ProjectSettings  _this;
719
720
721             // my vars (def)
722
723         // ctor
724         public Xcls_Label23(Xcls_ProjectSettings _owner )
725         {
726             _this = _owner;
727             this.el = new Gtk.Label( "Name" );
728
729             // my vars (dec)
730
731             // set gobject values
732             this.el.xalign = 0f;
733         }
734
735         // user defined functions
736     }
737
738     public class Xcls_database_DBNAME : Object
739     {
740         public Gtk.Entry el;
741         private Xcls_ProjectSettings  _this;
742
743
744             // my vars (def)
745
746         // ctor
747         public Xcls_database_DBNAME(Xcls_ProjectSettings _owner )
748         {
749             _this = _owner;
750             _this.database_DBNAME = this;
751             this.el = new Gtk.Entry();
752
753             // my vars (dec)
754
755             // set gobject values
756
757             //listeners
758             this.el.key_press_event.connect( (ev) => {
759             
760                 if (ev.keyval == Gdk.Key.Tab) {
761                     _this.database_DBUSERNAME.el.grab_focus();
762                     return true;
763                 }
764             
765             
766                 return false;
767             });
768         }
769
770         // user defined functions
771     }
772
773     public class Xcls_Label25 : Object
774     {
775         public Gtk.Label el;
776         private Xcls_ProjectSettings  _this;
777
778
779             // my vars (def)
780
781         // ctor
782         public Xcls_Label25(Xcls_ProjectSettings _owner )
783         {
784             _this = _owner;
785             this.el = new Gtk.Label( "Username" );
786
787             // my vars (dec)
788
789             // set gobject values
790             this.el.xalign = 0f;
791         }
792
793         // user defined functions
794     }
795
796     public class Xcls_database_DBUSERNAME : Object
797     {
798         public Gtk.Entry el;
799         private Xcls_ProjectSettings  _this;
800
801
802             // my vars (def)
803
804         // ctor
805         public Xcls_database_DBUSERNAME(Xcls_ProjectSettings _owner )
806         {
807             _this = _owner;
808             _this.database_DBUSERNAME = this;
809             this.el = new Gtk.Entry();
810
811             // my vars (dec)
812
813             // set gobject values
814
815             //listeners
816             this.el.key_press_event.connect( (ev) => {
817             
818                 if (ev.keyval == Gdk.Key.Tab) {
819                     _this.database_DBPASSWORD.el.grab_focus();
820                     return true;
821                 }
822             
823             
824                 return false;
825             });
826         }
827
828         // user defined functions
829     }
830
831     public class Xcls_Label27 : Object
832     {
833         public Gtk.Label el;
834         private Xcls_ProjectSettings  _this;
835
836
837             // my vars (def)
838
839         // ctor
840         public Xcls_Label27(Xcls_ProjectSettings _owner )
841         {
842             _this = _owner;
843             this.el = new Gtk.Label( "Password" );
844
845             // my vars (dec)
846
847             // set gobject values
848             this.el.xalign = 0f;
849         }
850
851         // user defined functions
852     }
853
854     public class Xcls_database_DBPASSWORD : Object
855     {
856         public Gtk.Entry el;
857         private Xcls_ProjectSettings  _this;
858
859
860             // my vars (def)
861
862         // ctor
863         public Xcls_database_DBPASSWORD(Xcls_ProjectSettings _owner )
864         {
865             _this = _owner;
866             _this.database_DBPASSWORD = this;
867             this.el = new Gtk.Entry();
868
869             // my vars (dec)
870
871             // set gobject values
872         }
873
874         // user defined functions
875     }
876
877     public class Xcls_Button29 : Object
878     {
879         public Gtk.Button el;
880         private Xcls_ProjectSettings  _this;
881
882
883             // my vars (def)
884
885         // ctor
886         public Xcls_Button29(Xcls_ProjectSettings _owner )
887         {
888             _this = _owner;
889             this.el = new Gtk.Button();
890
891             // my vars (dec)
892
893             // set gobject values
894             this.el.label = "Check Connection";
895
896             //listeners
897             this.el.clicked.connect( () => {
898             
899             
900               _this.database_ERROR.el.label    = "";
901                 Gda.Connection cnc;
902                 try {
903                     // assumes localhost...
904                      cnc = Gda.Connection.open_from_string (
905                                 _this.database_DBTYPE.el.get_text(),
906                                 "DB_NAME=" + _this.database_DBNAME.el.get_text(), 
907                                 "USERNAME=" + _this.database_DBUSERNAME.el.get_text() + 
908                                 ";PASSWORD=" + _this.database_DBPASSWORD.el.get_text(),
909                                 Gda.ConnectionOptions.NONE
910                         );
911                //} catch (Gda.ConnectionError ce) { 
912                //   _this.database_ERROR.el.label = ce.message;        
913                } catch(Gda.ConnectionError ue) {
914                   _this.database_ERROR.el.label = ue.message;
915                     return;
916                }  catch(Gda.ConfigError ue) {
917                   _this.database_ERROR.el.label = ue.message;
918                     return;
919                }
920               _this.database_ERROR.el.label = "Connection Succeeded";
921                cnc.close();
922             });
923         }
924
925         // user defined functions
926     }
927
928     public class Xcls_database_ERROR : Object
929     {
930         public Gtk.Label el;
931         private Xcls_ProjectSettings  _this;
932
933
934             // my vars (def)
935
936         // ctor
937         public Xcls_database_ERROR(Xcls_ProjectSettings _owner )
938         {
939             _this = _owner;
940             _this.database_ERROR = this;
941             this.el = new Gtk.Label( " " );
942
943             // my vars (dec)
944
945             // set gobject values
946             this.el.margin = 3;
947             this.el.xalign = 0f;
948         }
949
950         // user defined functions
951     }
952
953
954
955
956 }