1 static Xcls_RooProjectSettings _RooProjectSettings;
3 public class Xcls_RooProjectSettings : Object
6 private Xcls_RooProjectSettings _this;
8 public static Xcls_RooProjectSettings singleton()
10 if (_RooProjectSettings == null) {
11 _RooProjectSettings= new Xcls_RooProjectSettings();
13 return _RooProjectSettings;
15 public Xcls_label_global label_global;
16 public Xcls_label_database label_database;
17 public Xcls_grid grid;
18 public Xcls_filetypelbl filetypelbl;
19 public Xcls_filetype filetype;
20 public Xcls_ftdbcellrenderer ftdbcellrenderer;
21 public Xcls_ftdbmodel ftdbmodel;
23 public Xcls_dircellrenderer dircellrenderer;
24 public Xcls_dirmodel dirmodel;
25 public Xcls_path path;
26 public Xcls_base_template base_template;
27 public Xcls_base_template_cellrenderer base_template_cellrenderer;
28 public Xcls_base_template_model base_template_model;
29 public Xcls_rootURL rootURL;
30 public Xcls_view view;
31 public Xcls_database_DBTYPE database_DBTYPE;
32 public Xcls_database_DBNAME database_DBNAME;
33 public Xcls_database_DBUSERNAME database_DBUSERNAME;
34 public Xcls_database_DBPASSWORD database_DBPASSWORD;
35 public Xcls_database_ERROR database_ERROR;
38 public signal void buttonPressed (string btn);
39 public Project.Project project;
42 public Xcls_RooProjectSettings()
45 this.el = new Gtk.Popover( null );
50 this.el.border_width = 0;
52 this.el.position = Gtk.PositionType.RIGHT;
53 var child_0 = new Xcls_Box2( _this );
55 this.el.add ( child_0.el );
58 // user defined functions
59 public void show (Gtk.Widget btn, Project.Project project) {
60 _this.project = project;
61 _this.path.el.label = project.firstPath();
62 // get the active project.
63 var lm = Gtk.SourceLanguageManager.get_default();
65 ((Gtk.SourceBuffer)(_this.view.el.get_buffer())) .set_language(
66 lm.get_language("html")
70 //project.runhtml = project.runhtml || '';
71 _this.view.el.get_buffer().set_text(project.runhtml);
74 _this.rootURL.el.set_text( _this.project.rootURL );
77 _this.base_template_model.loadData();
79 var js = _this.project;
80 _this.database_DBTYPE.el.set_text( js.get_string_member("DBTYPE") );
81 _this.database_DBNAME.el.set_text( js.get_string_member("DBNAME") );
82 _this.database_DBUSERNAME.el.set_text( js.get_string_member("DBUSERNAME") );
83 _this.database_DBPASSWORD.el.set_text( js.get_string_member("DBPASSWORD") );
85 //console.log('show all');
86 this.el.set_modal(true);
87 this.el.set_relative_to(btn);
89 this.el.set_position(Gtk.PositionType.RIGHT);
92 print("SHOWALL - POPIP\n");
94 this.el.set_size_request(800,500);
95 this.view.el.grab_focus();
100 public void save () {
101 var buf = _this.view.el.get_buffer();
104 buf.get_start_iter(out s);
105 buf.get_end_iter(out e);
106 _this.project.runhtml = buf.get_text(s,e,true);
108 _this.project.rootURL = _this.rootURL.el.get_text();
109 // set by event changed...
110 //_this.project.base_template = _this.base_template.el.get_text();
112 var js = _this.project.json_project_data;
113 js.set_string_member("DBTYPE", _this.database_DBTYPE.el.get_text());
114 js.set_string_member("DBNAME", _this.database_DBNAME.el.get_text());
115 js.set_string_member("DBUSERNAME", _this.database_DBUSERNAME.el.get_text());
116 js.set_string_member("DBPASSWORD", _this.database_DBPASSWORD.el.get_text());
117 // _this.project.set_string_member("DBHOST", _this.DBTYPE.el.get_text());
119 // need to re-init the database
121 _this.project.initRooDatabase();
125 public class Xcls_Box2 : Object
128 private Xcls_RooProjectSettings _this;
134 public Xcls_Box2(Xcls_RooProjectSettings _owner )
137 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
141 // set gobject values
142 this.el.homogeneous = false;
143 this.el.border_width = 5;
144 var child_0 = new Xcls_Notebook3( _this );
146 this.el.pack_start ( child_0.el , true,true,0 );
147 var child_1 = new Xcls_Box38( _this );
149 this.el.pack_end ( child_1.el , false,false,0 );
152 // user defined functions
154 public class Xcls_Notebook3 : Object
156 public Gtk.Notebook el;
157 private Xcls_RooProjectSettings _this;
163 public Xcls_Notebook3(Xcls_RooProjectSettings _owner )
166 this.el = new Gtk.Notebook();
170 // set gobject values
171 var child_0 = new Xcls_label_global( _this );
173 var child_1 = new Xcls_label_database( _this );
175 var child_2 = new Xcls_Box6( _this );
177 this.el.append_page ( child_2.el , _this.label_global.el );
178 var child_3 = new Xcls_Box27( _this );
180 this.el.append_page ( child_3.el , _this.label_database.el );
183 // user defined functions
185 public class Xcls_label_global : Object
188 private Xcls_RooProjectSettings _this;
194 public Xcls_label_global(Xcls_RooProjectSettings _owner )
197 _this.label_global = this;
198 this.el = new Gtk.Label( "Global" );
202 // set gobject values
205 // user defined functions
208 public class Xcls_label_database : Object
211 private Xcls_RooProjectSettings _this;
217 public Xcls_label_database(Xcls_RooProjectSettings _owner )
220 _this.label_database = this;
221 this.el = new Gtk.Label( "Database" );
225 // set gobject values
228 // user defined functions
231 public class Xcls_Box6 : Object
234 private Xcls_RooProjectSettings _this;
240 public Xcls_Box6(Xcls_RooProjectSettings _owner )
243 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
247 // set gobject values
248 this.el.homogeneous = false;
249 var child_0 = new Xcls_grid( _this );
251 this.el.pack_start ( child_0.el , false,false,4 );
252 var child_1 = new Xcls_Label24( _this );
254 this.el.pack_start ( child_1.el , false,false,0 );
255 var child_2 = new Xcls_ScrolledWindow25( _this );
257 this.el.pack_start ( child_2.el , true,true,0 );
260 // user defined functions
262 public class Xcls_grid : Object
265 private Xcls_RooProjectSettings _this;
271 public Xcls_grid(Xcls_RooProjectSettings _owner )
275 this.el = new Gtk.Grid();
279 // set gobject values
280 this.el.margin_right = 4;
281 this.el.margin_left = 4;
282 this.el.row_spacing = 2;
283 var child_0 = new Xcls_filetypelbl( _this );
285 this.el.attach ( child_0.el , 0,0,1,1 );
286 var child_1 = new Xcls_filetype( _this );
288 this.el.attach ( child_1.el , 1,0,1,1 );
289 var child_2 = new Xcls_Label12( _this );
291 this.el.attach ( child_2.el , 0,8,1,1 );
292 var child_3 = new Xcls_dir( _this );
294 this.el.attach ( child_3.el , 1,8,1,1 );
295 var child_4 = new Xcls_Label16( _this );
297 this.el.attach ( child_4.el , 0,0,1,1 );
298 var child_5 = new Xcls_path( _this );
300 this.el.attach ( child_5.el , 1,0,1,1 );
301 var child_6 = new Xcls_Label18( _this );
303 this.el.attach ( child_6.el , 0,1,1,1 );
304 var child_7 = new Xcls_base_template( _this );
306 this.el.attach ( child_7.el , 1,1,1,1 );
307 var child_8 = new Xcls_Label22( _this );
309 this.el.pack_start ( child_8.el , false,false,0 );
310 var child_9 = new Xcls_rootURL( _this );
312 this.el.add ( child_9.el );
315 // user defined functions
317 public class Xcls_filetypelbl : Object
320 private Xcls_RooProjectSettings _this;
326 public Xcls_filetypelbl(Xcls_RooProjectSettings _owner )
329 _this.filetypelbl = this;
330 this.el = new Gtk.Label( "File type" );
334 // set gobject values
335 this.el.justify = Gtk.Justification.RIGHT;
336 this.el.xalign = 0.900000f;
339 // user defined functions
342 public class Xcls_filetype : Object
344 public Gtk.ComboBox el;
345 private Xcls_RooProjectSettings _this;
351 public Xcls_filetype(Xcls_RooProjectSettings _owner )
354 _this.filetype = this;
355 this.el = new Gtk.ComboBox();
359 // set gobject values
360 var child_0 = new Xcls_ftdbcellrenderer( _this );
362 this.el.pack_start ( child_0.el , true );
363 var child_1 = new Xcls_ftdbmodel( _this );
365 this.el.set_model ( child_1.el );
369 this.el.add_attribute(_this.ftdbcellrenderer.el , "markup", 1 );
372 this.el.changed.connect( () => {
375 if (this.el.get_active_iter(out iter)) {
377 _this.ftdbmodel.el.get_value (iter, 0, out vfname);
378 is_bjs = ((string)vfname) == "bjs";
382 // directory is only available for non-bjs
383 this.showhide(is_bjs);
389 // user defined functions
390 public void showhide (bool is_bjs) {
391 for (var i = 2; i < 9;i++) {
392 var el = _this.grid.el.get_child_at(0,i);
394 var showhide= is_bjs;
396 showhide = !showhide;
404 el = _this.grid.el.get_child_at(1,i);
411 // load up the directories
412 //??? why can we not create bjs files in other directories??
413 if (!is_bjs && _this.file.path.length < 1) {
414 _this.dirmodel.loadData();
422 public class Xcls_ftdbcellrenderer : Object
424 public Gtk.CellRendererText el;
425 private Xcls_RooProjectSettings _this;
431 public Xcls_ftdbcellrenderer(Xcls_RooProjectSettings _owner )
434 _this.ftdbcellrenderer = this;
435 this.el = new Gtk.CellRendererText();
439 // set gobject values
442 // user defined functions
445 public class Xcls_ftdbmodel : Object
447 public Gtk.ListStore el;
448 private Xcls_RooProjectSettings _this;
454 public Xcls_ftdbmodel(Xcls_RooProjectSettings _owner )
457 _this.ftdbmodel = this;
458 this.el = new Gtk.ListStore( 2, typeof(string),typeof(string) );
462 // set gobject values
465 // user defined functions
466 public void loadData (string cur) {
471 /// el.append(out iter);
474 // el.set_value(iter, 0, "");
475 // el.set_value(iter, 1, "aaa - Just add Element - aaa");
480 el.set_value(iter, 0, "bjs");
481 el.set_value(iter, 1, "User Interface File (bjs)");
482 _this.filetype.el.set_active_iter(iter);
486 el.set_value(iter, 0, "vala");
487 el.set_value(iter, 1, "Vala");
489 _this.filetype.el.set_active_iter(iter);
496 el.set_value(iter, 0, "js");
497 el.set_value(iter, 1, "Javascript");
500 _this.filetype.el.set_active_iter(iter);
505 el.set_value(iter, 0, "css");
506 el.set_value(iter, 1, "CSS");
509 _this.filetype.el.set_active_iter(iter);
516 public class Xcls_Label12 : Object
519 private Xcls_RooProjectSettings _this;
525 public Xcls_Label12(Xcls_RooProjectSettings _owner )
528 this.el = new Gtk.Label( "Directory" );
532 // set gobject values
533 this.el.justify = Gtk.Justification.RIGHT;
534 this.el.xalign = 0.900000f;
535 this.el.visible = true;
538 // user defined functions
541 public class Xcls_dir : Object
543 public Gtk.ComboBox el;
544 private Xcls_RooProjectSettings _this;
550 public Xcls_dir(Xcls_RooProjectSettings _owner )
554 this.el = new Gtk.ComboBox();
558 // set gobject values
559 var child_0 = new Xcls_dircellrenderer( _this );
561 this.el.pack_start ( child_0.el , true );
562 var child_1 = new Xcls_dirmodel( _this );
564 this.el.set_model ( child_1.el );
568 this.el.add_attribute(_this.dircellrenderer.el , "markup", 1 );
571 // user defined functions
573 public class Xcls_dircellrenderer : Object
575 public Gtk.CellRendererText el;
576 private Xcls_RooProjectSettings _this;
582 public Xcls_dircellrenderer(Xcls_RooProjectSettings _owner )
585 _this.dircellrenderer = this;
586 this.el = new Gtk.CellRendererText();
590 // set gobject values
593 // user defined functions
596 public class Xcls_dirmodel : Object
598 public Gtk.ListStore el;
599 private Xcls_RooProjectSettings _this;
605 public Xcls_dirmodel(Xcls_RooProjectSettings _owner )
608 _this.dirmodel = this;
609 this.el = new Gtk.ListStore( 2, typeof(string),typeof(string) );
613 // set gobject values
616 // user defined functions
617 public void loadData () {
623 if (!(_this.project is Project.Gtk)) {
626 var sd = ((Project.Gtk)_this.project).sourcedirs();
631 /// el.append(out iter);
634 // el.set_value(iter, 0, "");
635 // el.set_value(iter, 1, "aaa - Just add Element - aaa");
637 // el.append(out iter);
640 // el.set_value(iter, 0, "");
641 // el.set_value(iter, 1, "-- select a directoyr --");
642 //_this.build_module.el.set_active_iter(iter);
644 for (var i = 0; i < sd.length;i++) {
649 el.set_value(iter, 0, sd[i]);
650 el.set_value(iter, 1, sd[i]);
652 //if (data.get(i) == cur) {
653 // _this.build_module.el.set_active_iter(iter);
657 // this.el.set_sort_column_id(0, Gtk.SortType.ASCENDING);
663 public class Xcls_Label16 : Object
666 private Xcls_RooProjectSettings _this;
672 public Xcls_Label16(Xcls_RooProjectSettings _owner )
675 this.el = new Gtk.Label( "Filename" );
679 // set gobject values
684 // user defined functions
687 public class Xcls_path : Object
690 private Xcls_RooProjectSettings _this;
696 public Xcls_path(Xcls_RooProjectSettings _owner )
700 this.el = new Gtk.Label( "filename" );
704 // set gobject values
709 // user defined functions
712 public class Xcls_Label18 : Object
715 private Xcls_RooProjectSettings _this;
721 public Xcls_Label18(Xcls_RooProjectSettings _owner )
724 this.el = new Gtk.Label( "HTML template file" );
728 // set gobject values
732 // user defined functions
735 public class Xcls_base_template : Object
737 public Gtk.ComboBox el;
738 private Xcls_RooProjectSettings _this;
745 public Xcls_base_template(Xcls_RooProjectSettings _owner )
748 _this.base_template = this;
749 this.el = new Gtk.ComboBox();
752 this.loading = false;
754 // set gobject values
755 var child_0 = new Xcls_base_template_cellrenderer( _this );
757 this.el.pack_start ( child_0.el , true );
758 var child_1 = new Xcls_base_template_model( _this );
760 this.el.set_model ( child_1.el );
764 this.el.add_attribute(_this.base_template_cellrenderer.el , "markup", 0 );
767 this.el.changed.connect( () => {
770 // this get's called when we are filling in the data... ???
776 if (this.el.get_active_iter(out iter)) {
778 _this.base_template_model.el.get_value (iter, 0, out vfname);
779 _this.project.base_template = ((string)vfname) ;
781 print("\nSET base template to %s\n", _this.project.base_template );
782 // is_bjs = ((string)vfname) == "bjs";
786 // directory is only available for non-bjs
793 // user defined functions
795 public class Xcls_base_template_cellrenderer : Object
797 public Gtk.CellRendererText el;
798 private Xcls_RooProjectSettings _this;
804 public Xcls_base_template_cellrenderer(Xcls_RooProjectSettings _owner )
807 _this.base_template_cellrenderer = this;
808 this.el = new Gtk.CellRendererText();
812 // set gobject values
815 // user defined functions
818 public class Xcls_base_template_model : Object
820 public Gtk.ListStore el;
821 private Xcls_RooProjectSettings _this;
827 public Xcls_base_template_model(Xcls_RooProjectSettings _owner )
830 _this.base_template_model = this;
831 this.el = new Gtk.ListStore( 1, typeof(string) );
835 // set gobject values
838 // user defined functions
839 public void loadData () {
840 _this.base_template.loading = true;
846 /// el.append(out iter);
850 el.set_value(iter, 0, "roo.builder.html");
851 _this.base_template.el.set_active_iter(iter);
852 if (_this.project.base_template == "roo.builder.html") {
853 _this.base_template.el.set_active_iter(iter);
857 el.set_value(iter, 0, "bootstrap.builder.html");
859 print("\ncur template = %s\n", _this.project.base_template);
861 if (_this.project.base_template == "bootstrap.builder.html") {
862 _this.base_template.el.set_active_iter(iter);
866 el.set_value(iter, 0, "mailer.builder.html");
868 if (_this.project.base_template == "mailer.builder.html") {
869 _this.base_template.el.set_active_iter(iter);
871 _this.base_template.loading = false;
877 public class Xcls_Label22 : Object
880 private Xcls_RooProjectSettings _this;
886 public Xcls_Label22(Xcls_RooProjectSettings _owner )
889 this.el = new Gtk.Label( "root URL" );
893 // set gobject values
897 // user defined functions
900 public class Xcls_rootURL : Object
903 private Xcls_RooProjectSettings _this;
909 public Xcls_rootURL(Xcls_RooProjectSettings _owner )
912 _this.rootURL = this;
913 this.el = new Gtk.Entry();
917 // set gobject values
920 // user defined functions
924 public class Xcls_Label24 : Object
927 private Xcls_RooProjectSettings _this;
933 public Xcls_Label24(Xcls_RooProjectSettings _owner )
936 this.el = new Gtk.Label( "HTML To insert at end of <HEAD>" );
940 // set gobject values
943 // user defined functions
946 public class Xcls_ScrolledWindow25 : Object
948 public Gtk.ScrolledWindow el;
949 private Xcls_RooProjectSettings _this;
955 public Xcls_ScrolledWindow25(Xcls_RooProjectSettings _owner )
958 this.el = new Gtk.ScrolledWindow( null, null );
962 // set gobject values
963 var child_0 = new Xcls_view( _this );
965 this.el.add ( child_0.el );
968 // user defined functions
970 public class Xcls_view : Object
972 public Gtk.SourceView el;
973 private Xcls_RooProjectSettings _this;
979 public Xcls_view(Xcls_RooProjectSettings _owner )
983 this.el = new Gtk.SourceView();
989 var description = Pango.FontDescription.from_string("monospace");
990 description.set_size(9000);
991 this.el.override_font(description);
994 this.el.key_release_event.connect( ( event) =>{
995 if (event.keyval != 115) {
999 if ( (event.state & Gdk.ModifierType.CONTROL_MASK ) < 1 ) {
1002 var buf = this.el.get_buffer();
1005 buf.get_start_iter(out s);
1006 buf.get_end_iter(out e);
1007 _this.project.runhtml = buf.get_text(s,e,true);
1010 _this.buttonPressed("save");
1017 // user defined functions
1022 public class Xcls_Box27 : Object
1025 private Xcls_RooProjectSettings _this;
1031 public Xcls_Box27(Xcls_RooProjectSettings _owner )
1034 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
1038 // set gobject values
1039 this.el.homogeneous = false;
1040 var child_0 = new Xcls_Label28( _this );
1042 this.el.pack_start ( child_0.el , false,false,0 );
1043 var child_1 = new Xcls_database_DBTYPE( _this );
1045 this.el.pack_start ( child_1.el , false,false,0 );
1046 var child_2 = new Xcls_Label30( _this );
1048 this.el.pack_start ( child_2.el , false,false,0 );
1049 var child_3 = new Xcls_database_DBNAME( _this );
1051 this.el.pack_start ( child_3.el , false,false,0 );
1052 var child_4 = new Xcls_Label32( _this );
1054 this.el.pack_start ( child_4.el , false,false,0 );
1055 var child_5 = new Xcls_database_DBUSERNAME( _this );
1057 this.el.pack_start ( child_5.el , false,false,0 );
1058 var child_6 = new Xcls_Label34( _this );
1060 this.el.pack_start ( child_6.el , false,false,0 );
1061 var child_7 = new Xcls_database_DBPASSWORD( _this );
1063 this.el.pack_start ( child_7.el , false,false,0 );
1064 var child_8 = new Xcls_Button36( _this );
1066 this.el.pack_start ( child_8.el , false,false,0 );
1067 var child_9 = new Xcls_database_ERROR( _this );
1069 this.el.pack_start ( child_9.el , false,false,0 );
1072 // user defined functions
1074 public class Xcls_Label28 : Object
1076 public Gtk.Label el;
1077 private Xcls_RooProjectSettings _this;
1083 public Xcls_Label28(Xcls_RooProjectSettings _owner )
1086 this.el = new Gtk.Label( "Type (eg. MySQL or PostgreSQL)" );
1090 // set gobject values
1091 this.el.xalign = 0f;
1094 // user defined functions
1097 public class Xcls_database_DBTYPE : Object
1099 public Gtk.Entry el;
1100 private Xcls_RooProjectSettings _this;
1106 public Xcls_database_DBTYPE(Xcls_RooProjectSettings _owner )
1109 _this.database_DBTYPE = this;
1110 this.el = new Gtk.Entry();
1114 // set gobject values
1117 this.el.key_press_event.connect( (ev) => {
1119 if (ev.keyval == Gdk.Key.Tab) {
1120 _this.database_DBNAME.el.grab_focus();
1129 // user defined functions
1132 public class Xcls_Label30 : Object
1134 public Gtk.Label el;
1135 private Xcls_RooProjectSettings _this;
1141 public Xcls_Label30(Xcls_RooProjectSettings _owner )
1144 this.el = new Gtk.Label( "Name" );
1148 // set gobject values
1149 this.el.xalign = 0f;
1152 // user defined functions
1155 public class Xcls_database_DBNAME : Object
1157 public Gtk.Entry el;
1158 private Xcls_RooProjectSettings _this;
1164 public Xcls_database_DBNAME(Xcls_RooProjectSettings _owner )
1167 _this.database_DBNAME = this;
1168 this.el = new Gtk.Entry();
1172 // set gobject values
1175 this.el.key_press_event.connect( (ev) => {
1177 if (ev.keyval == Gdk.Key.Tab) {
1178 _this.database_DBUSERNAME.el.grab_focus();
1187 // user defined functions
1190 public class Xcls_Label32 : Object
1192 public Gtk.Label el;
1193 private Xcls_RooProjectSettings _this;
1199 public Xcls_Label32(Xcls_RooProjectSettings _owner )
1202 this.el = new Gtk.Label( "Username" );
1206 // set gobject values
1207 this.el.xalign = 0f;
1210 // user defined functions
1213 public class Xcls_database_DBUSERNAME : Object
1215 public Gtk.Entry el;
1216 private Xcls_RooProjectSettings _this;
1222 public Xcls_database_DBUSERNAME(Xcls_RooProjectSettings _owner )
1225 _this.database_DBUSERNAME = this;
1226 this.el = new Gtk.Entry();
1230 // set gobject values
1233 this.el.key_press_event.connect( (ev) => {
1235 if (ev.keyval == Gdk.Key.Tab) {
1236 _this.database_DBPASSWORD.el.grab_focus();
1245 // user defined functions
1248 public class Xcls_Label34 : Object
1250 public Gtk.Label el;
1251 private Xcls_RooProjectSettings _this;
1257 public Xcls_Label34(Xcls_RooProjectSettings _owner )
1260 this.el = new Gtk.Label( "Password" );
1264 // set gobject values
1265 this.el.xalign = 0f;
1268 // user defined functions
1271 public class Xcls_database_DBPASSWORD : Object
1273 public Gtk.Entry el;
1274 private Xcls_RooProjectSettings _this;
1280 public Xcls_database_DBPASSWORD(Xcls_RooProjectSettings _owner )
1283 _this.database_DBPASSWORD = this;
1284 this.el = new Gtk.Entry();
1288 // set gobject values
1291 // user defined functions
1294 public class Xcls_Button36 : Object
1296 public Gtk.Button el;
1297 private Xcls_RooProjectSettings _this;
1303 public Xcls_Button36(Xcls_RooProjectSettings _owner )
1306 this.el = new Gtk.Button();
1310 // set gobject values
1311 this.el.label = "Check Connection";
1314 this.el.clicked.connect( () => {
1317 _this.database_ERROR.el.label = "";
1320 // assumes localhost...
1321 cnc = Gda.Connection.open_from_string (
1322 _this.database_DBTYPE.el.get_text(),
1323 "DB_NAME=" + _this.database_DBNAME.el.get_text(),
1324 "USERNAME=" + _this.database_DBUSERNAME.el.get_text() +
1325 ";PASSWORD=" + _this.database_DBPASSWORD.el.get_text(),
1326 Gda.ConnectionOptions.NONE
1328 //} catch (Gda.ConnectionError ce) {
1329 // _this.database_ERROR.el.label = ce.message;
1330 } catch(Gda.ConnectionError ue) {
1331 _this.database_ERROR.el.label = ue.message;
1333 } catch(Gda.ConfigError ue) {
1334 _this.database_ERROR.el.label = ue.message;
1337 _this.database_ERROR.el.label = "Connection Succeeded";
1342 // user defined functions
1345 public class Xcls_database_ERROR : Object
1347 public Gtk.Label el;
1348 private Xcls_RooProjectSettings _this;
1354 public Xcls_database_ERROR(Xcls_RooProjectSettings _owner )
1357 _this.database_ERROR = this;
1358 this.el = new Gtk.Label( " " );
1362 // set gobject values
1364 this.el.xalign = 0f;
1367 // user defined functions
1372 public class Xcls_Box38 : Object
1375 private Xcls_RooProjectSettings _this;
1381 public Xcls_Box38(Xcls_RooProjectSettings _owner )
1384 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
1388 // set gobject values
1389 this.el.homogeneous = true;
1390 this.el.expand = false;
1391 this.el.vexpand = false;
1392 var child_0 = new Xcls_Button39( _this );
1394 this.el.add ( child_0.el );
1395 var child_1 = new Xcls_Button40( _this );
1397 this.el.add ( child_1.el );
1400 // user defined functions
1402 public class Xcls_Button39 : Object
1404 public Gtk.Button el;
1405 private Xcls_RooProjectSettings _this;
1411 public Xcls_Button39(Xcls_RooProjectSettings _owner )
1414 this.el = new Gtk.Button();
1418 // set gobject values
1419 this.el.label = "Apply";
1422 this.el.button_press_event.connect( () => {
1425 _this.buttonPressed("apply");
1430 // user defined functions
1433 public class Xcls_Button40 : Object
1435 public Gtk.Button el;
1436 private Xcls_RooProjectSettings _this;
1442 public Xcls_Button40(Xcls_RooProjectSettings _owner )
1445 this.el = new Gtk.Button();
1449 // set gobject values
1450 this.el.label = "Save";
1453 this.el.button_press_event.connect( () => {
1456 _this.buttonPressed("save");
1461 // user defined functions