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