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