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_path path;
19 public Xcls_base_template base_template;
20 public Xcls_base_template_cellrenderer base_template_cellrenderer;
21 public Xcls_base_template_model base_template_model;
22 public Xcls_rootURL rootURL;
23 public Xcls_html_gen html_gen;
24 public Xcls_html_gen_cellrenderer html_gen_cellrenderer;
25 public Xcls_html_gen_model html_gen_model;
26 public Xcls_view view;
27 public Xcls_database_DBTYPE database_DBTYPE;
28 public Xcls_database_DBNAME database_DBNAME;
29 public Xcls_database_DBUSERNAME database_DBUSERNAME;
30 public Xcls_database_DBPASSWORD database_DBPASSWORD;
31 public Xcls_database_ERROR database_ERROR;
34 public signal void buttonPressed (string btn);
35 public Gtk.PositionType position;
36 public uint border_width;
38 public Project.Roo project;
42 public Xcls_RooProjectSettings()
45 this.el = new Gtk.Window();
48 this.position = Gtk.PositionType.RIGHT;
49 this.border_width = 0;
51 this.autohide = false;
54 this.el.title = "Edit Project settings";
56 var child_1 = new Xcls_Box2( _this );
58 this.el.set_child ( child_1.el );
59 var child_2 = new Xcls_HeaderBar38( _this );
60 this.el.titlebar = child_2.el;
63 // user defined functions
64 public void show (Gtk.Window pwin, Project.Roo project) {
67 _this.project = project;
68 _this.path.el.label = project.path;
69 // get the active project.
70 var lm = GtkSource.LanguageManager.get_default();
72 ((GtkSource.Buffer)(_this.view.el.get_buffer())) .set_language(
73 lm.get_language("html")
77 //project.runhtml = project.runhtml || '';
78 _this.view.el.get_buffer().set_text(project.runhtml);
81 _this.rootURL.el.set_text( _this.project.rootURL );
83 _this.html_gen_model.loadData(_this.project.html_gen);
85 _this.base_template_model.loadData();
87 //var js = _this.project;
88 _this.database_DBTYPE.el.set_text( _this.project.DBTYPE );
89 _this.database_DBNAME.el.set_text( _this.project.DBNAME );
90 _this.database_DBUSERNAME.el.set_text( _this.project.DBUSERNAME );
91 _this.database_DBPASSWORD.el.set_text( _this.project.DBPASSWORD );
93 //console.log('show all');
96 this.el.set_transient_for(pwin);
98 print("SHOWALL - POPIP\n");
100 this.el.set_size_request(800,600);
101 this.view.el.grab_focus();
104 //this.el.show_all();
106 public void save () {
107 var buf = _this.view.el.get_buffer();
110 buf.get_start_iter(out s);
111 buf.get_end_iter(out e);
112 _this.project.runhtml = buf.get_text(s,e,true);
114 _this.project.rootURL = _this.rootURL.el.get_text();
119 _this.html_gen.el.get_active_iter(out iter);
120 _this.html_gen_model.el.get_value (iter, 0, out html_gen_val);
122 _this.project.html_gen = (string)html_gen_val;
124 // set by event changed...
125 //_this.project.base_template = _this.base_template.el.get_text();
127 var js = _this.project;
128 js.DBTYPE = _this.database_DBTYPE.el.get_text();
129 js.DBNAME= _this.database_DBNAME.el.get_text();
130 js.DBUSERNAME= _this.database_DBUSERNAME.el.get_text();
131 js.DBPASSWORD= _this.database_DBPASSWORD.el.get_text();
132 // _this.project.set_string_member("DBHOST", _this.DBTYPE.el.get_text());
134 // need to re-init the database
136 _this.project.initDatabase();
140 public class Xcls_Box2 : Object
143 private Xcls_RooProjectSettings _this;
149 public Xcls_Box2(Xcls_RooProjectSettings _owner )
152 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
156 // set gobject values
157 this.el.homogeneous = false;
158 var child_1 = new Xcls_Notebook3( _this );
160 this.el.append( child_1.el );
163 // user defined functions
165 public class Xcls_Notebook3 : Object
167 public Gtk.Notebook el;
168 private Xcls_RooProjectSettings _this;
174 public Xcls_Notebook3(Xcls_RooProjectSettings _owner )
177 this.el = new Gtk.Notebook();
181 // set gobject values
182 new Xcls_label_global( _this );
183 new Xcls_label_database( _this );
184 var child_3 = new Xcls_Box6( _this );
186 this.el.append_page ( child_3.el , _this.label_global.el );
187 var child_4 = new Xcls_Box24( _this );
189 this.el.append_page ( child_4.el , _this.label_database.el );
192 // user defined functions
194 public class Xcls_label_global : Object
197 private Xcls_RooProjectSettings _this;
203 public Xcls_label_global(Xcls_RooProjectSettings _owner )
206 _this.label_global = this;
207 this.el = new Gtk.Label( "Global" );
211 // set gobject values
214 // user defined functions
217 public class Xcls_label_database : Object
220 private Xcls_RooProjectSettings _this;
226 public Xcls_label_database(Xcls_RooProjectSettings _owner )
229 _this.label_database = this;
230 this.el = new Gtk.Label( "Database" );
234 // set gobject values
237 // user defined functions
240 public class Xcls_Box6 : Object
243 private Xcls_RooProjectSettings _this;
249 public Xcls_Box6(Xcls_RooProjectSettings _owner )
252 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
256 // set gobject values
257 this.el.homogeneous = false;
258 new Xcls_grid( _this );
259 this.el.append( _this.grid.el );
260 var child_2 = new Xcls_Label20( _this );
262 this.el.append( child_2.el );
263 var child_3 = new Xcls_ScrolledWindow21( _this );
265 this.el.append( child_3.el );
268 // user defined functions
270 public class Xcls_grid : Object
273 private Xcls_RooProjectSettings _this;
279 public Xcls_grid(Xcls_RooProjectSettings _owner )
283 this.el = new Gtk.Grid();
287 // set gobject values
288 this.el.margin_end = 4;
289 this.el.margin_start = 4;
290 this.el.row_spacing = 2;
291 var child_1 = new Xcls_Label8( _this );
293 this.el.attach ( child_1.el , 0,0,1,1 );
294 new Xcls_path( _this );
295 this.el.attach ( _this.path.el , 1,0,1,1 );
296 var child_3 = new Xcls_Label10( _this );
298 this.el.attach ( child_3.el , 0,1,1,1 );
299 new Xcls_base_template( _this );
300 this.el.attach ( _this.base_template.el , 1,1,1,1 );
301 var child_5 = new Xcls_Label14( _this );
303 this.el.attach ( child_5.el , 0,2,1,1 );
304 new Xcls_rootURL( _this );
305 this.el.attach ( _this.rootURL.el , 1,2,1,1 );
306 var child_7 = new Xcls_Label16( _this );
308 this.el.attach ( child_7.el , 0,3,1,1 );
309 new Xcls_html_gen( _this );
310 this.el.attach ( _this.html_gen.el , 1,3,1,1 );
313 // user defined functions
315 public class Xcls_Label8 : Object
318 private Xcls_RooProjectSettings _this;
324 public Xcls_Label8(Xcls_RooProjectSettings _owner )
327 this.el = new Gtk.Label( "Filename" );
331 // set gobject values
332 this.el.margin_end = 3;
333 this.el.margin_start = 3;
335 this.el.margin_bottom = 3;
336 this.el.margin_top = 3;
339 // user defined functions
342 public class Xcls_path : Object
345 private Xcls_RooProjectSettings _this;
351 public Xcls_path(Xcls_RooProjectSettings _owner )
355 this.el = new Gtk.Label( "filename" );
359 // set gobject values
360 this.el.margin_end = 3;
361 this.el.margin_start = 3;
363 this.el.margin_bottom = 3;
364 this.el.margin_top = 3;
367 // user defined functions
370 public class Xcls_Label10 : Object
373 private Xcls_RooProjectSettings _this;
379 public Xcls_Label10(Xcls_RooProjectSettings _owner )
382 this.el = new Gtk.Label( "HTML template file" );
386 // set gobject values
387 this.el.margin_end = 3;
388 this.el.margin_start = 3;
389 this.el.margin_bottom = 3;
390 this.el.margin_top = 3;
393 // user defined functions
396 public class Xcls_base_template : Object
398 public Gtk.ComboBox el;
399 private Xcls_RooProjectSettings _this;
406 public Xcls_base_template(Xcls_RooProjectSettings _owner )
409 _this.base_template = this;
410 this.el = new Gtk.ComboBox();
413 this.loading = false;
415 // set gobject values
416 new Xcls_base_template_cellrenderer( _this );
417 this.el.pack_start ( _this.base_template_cellrenderer.el , true );
418 new Xcls_base_template_model( _this );
419 this.el.set_model ( _this.base_template_model.el );
423 this.el.add_attribute(_this.base_template_cellrenderer.el , "markup", 0 );
426 this.el.changed.connect( () => {
429 // this get's called when we are filling in the data... ???
435 if (this.el.get_active_iter(out iter)) {
437 _this.base_template_model.el.get_value (iter, 0, out vfname);
438 _this.project.base_template = ((string)vfname) ;
440 print("\nSET base template to %s\n", _this.project.base_template );
441 // is_bjs = ((string)vfname) == "bjs";
445 // directory is only available for non-bjs
452 // user defined functions
454 public class Xcls_base_template_cellrenderer : Object
456 public Gtk.CellRendererText el;
457 private Xcls_RooProjectSettings _this;
463 public Xcls_base_template_cellrenderer(Xcls_RooProjectSettings _owner )
466 _this.base_template_cellrenderer = this;
467 this.el = new Gtk.CellRendererText();
471 // set gobject values
474 // user defined functions
477 public class Xcls_base_template_model : Object
479 public Gtk.ListStore el;
480 private Xcls_RooProjectSettings _this;
486 public Xcls_base_template_model(Xcls_RooProjectSettings _owner )
489 _this.base_template_model = this;
490 this.el = new Gtk.ListStore.newv( { typeof(string) } );
494 // set gobject values
497 // user defined functions
498 public void loadData () {
499 _this.base_template.loading = true;
505 /// el.append(out iter);
509 el.set_value(iter, 0, "roo.builder.html");
510 _this.base_template.el.set_active_iter(iter);
511 if (_this.project.base_template == "roo.builder.html") {
512 _this.base_template.el.set_active_iter(iter);
516 el.set_value(iter, 0, "bootstrap.builder.html");
518 print("\ncur template = %s\n", _this.project.base_template);
520 if (_this.project.base_template == "bootstrap.builder.html") {
521 _this.base_template.el.set_active_iter(iter);
524 el.set_value(iter, 0, "bootstrap4.builder.html");
525 if (_this.project.base_template == "bootstrap4.builder.html") {
526 _this.base_template.el.set_active_iter(iter);
531 el.set_value(iter, 0, "mailer.builder.html");
533 if (_this.project.base_template == "mailer.builder.html") {
534 _this.base_template.el.set_active_iter(iter);
536 _this.base_template.loading = false;
542 public class Xcls_Label14 : Object
545 private Xcls_RooProjectSettings _this;
551 public Xcls_Label14(Xcls_RooProjectSettings _owner )
554 this.el = new Gtk.Label( "root URL" );
558 // set gobject values
559 this.el.margin_end = 3;
560 this.el.margin_start = 3;
561 this.el.margin_bottom = 3;
562 this.el.margin_top = 3;
565 // user defined functions
568 public class Xcls_rootURL : Object
571 private Xcls_RooProjectSettings _this;
577 public Xcls_rootURL(Xcls_RooProjectSettings _owner )
580 _this.rootURL = this;
581 this.el = new Gtk.Entry();
585 // set gobject values
588 // user defined functions
591 public class Xcls_Label16 : Object
594 private Xcls_RooProjectSettings _this;
600 public Xcls_Label16(Xcls_RooProjectSettings _owner )
603 this.el = new Gtk.Label( "Generate HTML in" );
607 // set gobject values
610 // user defined functions
613 public class Xcls_html_gen : Object
615 public Gtk.ComboBox el;
616 private Xcls_RooProjectSettings _this;
622 public Xcls_html_gen(Xcls_RooProjectSettings _owner )
625 _this.html_gen = this;
626 this.el = new Gtk.ComboBox();
630 // set gobject values
631 new Xcls_html_gen_cellrenderer( _this );
632 this.el.pack_start ( _this.html_gen_cellrenderer.el , true );
633 new Xcls_html_gen_model( _this );
634 this.el.set_model ( _this.html_gen_model.el );
638 this.el.add_attribute(_this.html_gen_cellrenderer.el , "markup", 1 );
641 // user defined functions
643 public class Xcls_html_gen_cellrenderer : Object
645 public Gtk.CellRendererText el;
646 private Xcls_RooProjectSettings _this;
652 public Xcls_html_gen_cellrenderer(Xcls_RooProjectSettings _owner )
655 _this.html_gen_cellrenderer = this;
656 this.el = new Gtk.CellRendererText();
660 // set gobject values
663 // user defined functions
666 public class Xcls_html_gen_model : Object
668 public Gtk.ListStore el;
669 private Xcls_RooProjectSettings _this;
675 public Xcls_html_gen_model(Xcls_RooProjectSettings _owner )
678 _this.html_gen_model = this;
679 this.el = new Gtk.ListStore.newv( { typeof(string),typeof(string) } );
683 // set gobject values
686 // user defined functions
687 public void loadData (string cur) {
696 el.set_value(iter, 0, "");
697 el.set_value(iter, 1, "Do not Generate");
698 _this.html_gen.el.set_active_iter(iter);
702 el.set_value(iter, 0, "bjs");
703 el.set_value(iter, 1, "same directory as BJS file");
705 _this.html_gen.el.set_active_iter(iter);
712 el.set_value(iter, 0, "templates");
713 el.set_value(iter, 1, "in templates subdirectory");
715 if (cur == "template") {
716 _this.html_gen.el.set_active_iter(iter);
725 public class Xcls_Label20 : Object
728 private Xcls_RooProjectSettings _this;
734 public Xcls_Label20(Xcls_RooProjectSettings _owner )
737 this.el = new Gtk.Label( "HTML To insert at end of <HEAD>" );
741 // set gobject values
744 // user defined functions
747 public class Xcls_ScrolledWindow21 : Object
749 public Gtk.ScrolledWindow el;
750 private Xcls_RooProjectSettings _this;
756 public Xcls_ScrolledWindow21(Xcls_RooProjectSettings _owner )
759 this.el = new Gtk.ScrolledWindow();
763 // set gobject values
764 this.el.vexpand = true;
765 new Xcls_view( _this );
766 this.el.set_child ( _this.view.el );
769 // user defined functions
771 public class Xcls_view : Object
773 public GtkSource.View el;
774 private Xcls_RooProjectSettings _this;
778 public Gtk.CssProvider css;
781 public Xcls_view(Xcls_RooProjectSettings _owner )
785 this.el = new GtkSource.View();
789 // set gobject values
790 this.el.name = "roo-project-settings-view";
791 var child_1 = new Xcls_EventControllerKey23( _this );
793 this.el.add_controller( child_1.el );
797 this.css = new Gtk.CssProvider();
799 this.css.load_from_string(
800 "#roo-project-settings-view{ font: 10px monospace;}"
803 //this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
805 Gtk.StyleContext.add_provider_for_display(
806 Gdk.Display.get_default(),
808 Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
812 // user defined functions
814 public class Xcls_EventControllerKey23 : Object
816 public Gtk.EventControllerKey el;
817 private Xcls_RooProjectSettings _this;
823 public Xcls_EventControllerKey23(Xcls_RooProjectSettings _owner )
826 this.el = new Gtk.EventControllerKey();
830 // set gobject values
833 this.el.key_released.connect( (keyval, keycode, state) => {
840 if ( (state & Gdk.ModifierType.CONTROL_MASK ) < 1 ) {
843 var buf = _this.view.el.get_buffer();
846 buf.get_start_iter(out s);
847 buf.get_end_iter(out e);
848 _this.project.runhtml = buf.get_text(s,e,true);
851 _this.buttonPressed("save");
858 // user defined functions
864 public class Xcls_Box24 : Object
867 private Xcls_RooProjectSettings _this;
873 public Xcls_Box24(Xcls_RooProjectSettings _owner )
876 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
880 // set gobject values
881 this.el.homogeneous = false;
882 var child_1 = new Xcls_Label25( _this );
884 this.el.append( child_1.el );
885 new Xcls_database_DBTYPE( _this );
886 this.el.append( _this.database_DBTYPE.el );
887 var child_3 = new Xcls_Label28( _this );
889 this.el.append( child_3.el );
890 new Xcls_database_DBNAME( _this );
891 this.el.append( _this.database_DBNAME.el );
892 var child_5 = new Xcls_Label31( _this );
894 this.el.append( child_5.el );
895 new Xcls_database_DBUSERNAME( _this );
896 this.el.append( _this.database_DBUSERNAME.el );
897 var child_7 = new Xcls_Label34( _this );
899 this.el.append( child_7.el );
900 new Xcls_database_DBPASSWORD( _this );
901 this.el.append( _this.database_DBPASSWORD.el );
902 var child_9 = new Xcls_Button36( _this );
904 this.el.append( child_9.el );
905 new Xcls_database_ERROR( _this );
906 this.el.append( _this.database_ERROR.el );
909 // user defined functions
911 public class Xcls_Label25 : Object
914 private Xcls_RooProjectSettings _this;
920 public Xcls_Label25(Xcls_RooProjectSettings _owner )
923 this.el = new Gtk.Label( "Type (eg. MySQL or PostgreSQL)" );
927 // set gobject values
931 // user defined functions
934 public class Xcls_database_DBTYPE : Object
937 private Xcls_RooProjectSettings _this;
943 public Xcls_database_DBTYPE(Xcls_RooProjectSettings _owner )
946 _this.database_DBTYPE = this;
947 this.el = new Gtk.Entry();
951 // set gobject values
952 var child_1 = new Xcls_EventControllerKey27( _this );
954 this.el.add_controller( child_1.el );
957 // user defined functions
959 public class Xcls_EventControllerKey27 : Object
961 public Gtk.EventControllerKey el;
962 private Xcls_RooProjectSettings _this;
968 public Xcls_EventControllerKey27(Xcls_RooProjectSettings _owner )
971 this.el = new Gtk.EventControllerKey();
975 // set gobject values
978 this.el.key_pressed.connect( (keyval, keycode, state) => {
979 if (keyval == Gdk.Key.Tab) {
980 _this.database_DBNAME.el.grab_focus();
989 // user defined functions
993 public class Xcls_Label28 : Object
996 private Xcls_RooProjectSettings _this;
1002 public Xcls_Label28(Xcls_RooProjectSettings _owner )
1005 this.el = new Gtk.Label( "Name" );
1009 // set gobject values
1010 this.el.xalign = 0f;
1013 // user defined functions
1016 public class Xcls_database_DBNAME : Object
1018 public Gtk.Entry el;
1019 private Xcls_RooProjectSettings _this;
1025 public Xcls_database_DBNAME(Xcls_RooProjectSettings _owner )
1028 _this.database_DBNAME = this;
1029 this.el = new Gtk.Entry();
1033 // set gobject values
1034 var child_1 = new Xcls_EventControllerKey30( _this );
1036 this.el.add_controller( child_1.el );
1039 // user defined functions
1041 public class Xcls_EventControllerKey30 : Object
1043 public Gtk.EventControllerKey el;
1044 private Xcls_RooProjectSettings _this;
1050 public Xcls_EventControllerKey30(Xcls_RooProjectSettings _owner )
1053 this.el = new Gtk.EventControllerKey();
1057 // set gobject values
1060 this.el.key_pressed.connect( (keyval, keycode, state) => {
1061 if (keyval == Gdk.Key.Tab) {
1062 _this.database_DBUSERNAME.el.grab_focus();
1072 // user defined functions
1076 public class Xcls_Label31 : Object
1078 public Gtk.Label el;
1079 private Xcls_RooProjectSettings _this;
1085 public Xcls_Label31(Xcls_RooProjectSettings _owner )
1088 this.el = new Gtk.Label( "Username" );
1092 // set gobject values
1093 this.el.xalign = 0f;
1096 // user defined functions
1099 public class Xcls_database_DBUSERNAME : Object
1101 public Gtk.Entry el;
1102 private Xcls_RooProjectSettings _this;
1108 public Xcls_database_DBUSERNAME(Xcls_RooProjectSettings _owner )
1111 _this.database_DBUSERNAME = this;
1112 this.el = new Gtk.Entry();
1116 // set gobject values
1117 var child_1 = new Xcls_EventControllerKey33( _this );
1119 this.el.add_controller( child_1.el );
1122 // user defined functions
1124 public class Xcls_EventControllerKey33 : Object
1126 public Gtk.EventControllerKey el;
1127 private Xcls_RooProjectSettings _this;
1133 public Xcls_EventControllerKey33(Xcls_RooProjectSettings _owner )
1136 this.el = new Gtk.EventControllerKey();
1140 // set gobject values
1143 this.el.key_pressed.connect( (keyval, keycode, state) => {
1144 if (keyval == Gdk.Key.Tab) {
1145 _this.database_DBPASSWORD.el.grab_focus();
1156 // user defined functions
1160 public class Xcls_Label34 : Object
1162 public Gtk.Label el;
1163 private Xcls_RooProjectSettings _this;
1169 public Xcls_Label34(Xcls_RooProjectSettings _owner )
1172 this.el = new Gtk.Label( "Password" );
1176 // set gobject values
1177 this.el.xalign = 0f;
1180 // user defined functions
1183 public class Xcls_database_DBPASSWORD : Object
1185 public Gtk.Entry el;
1186 private Xcls_RooProjectSettings _this;
1192 public Xcls_database_DBPASSWORD(Xcls_RooProjectSettings _owner )
1195 _this.database_DBPASSWORD = this;
1196 this.el = new Gtk.Entry();
1200 // set gobject values
1203 // user defined functions
1206 public class Xcls_Button36 : Object
1208 public Gtk.Button el;
1209 private Xcls_RooProjectSettings _this;
1215 public Xcls_Button36(Xcls_RooProjectSettings _owner )
1218 this.el = new Gtk.Button();
1222 // set gobject values
1223 this.el.label = "Check Connection";
1226 this.el.clicked.connect( () => {
1229 _this.database_ERROR.el.label = "";
1233 // assumes localhost...
1234 cnc = Gda.Connection.open_from_string (
1235 _this.database_DBTYPE.el.get_text(),
1236 "DB_NAME=" + _this.database_DBNAME.el.get_text(),
1237 "USERNAME=" + _this.database_DBUSERNAME.el.get_text() +
1238 ";PASSWORD=" + _this.database_DBPASSWORD.el.get_text(),
1239 Gda.ConnectionOptions.NONE
1241 //} catch (Gda.ConnectionError ce) {
1242 // _this.database_ERROR.el.label = ce.message;
1243 } catch(GLib.Error ue) {
1244 _this.database_ERROR.el.label = ue.message;
1247 _this.database_ERROR.el.label = "Connection Succeeded";
1253 // user defined functions
1256 public class Xcls_database_ERROR : Object
1258 public Gtk.Label el;
1259 private Xcls_RooProjectSettings _this;
1265 public Xcls_database_ERROR(Xcls_RooProjectSettings _owner )
1268 _this.database_ERROR = this;
1269 this.el = new Gtk.Label( " " );
1273 // set gobject values
1274 this.el.xalign = 0f;
1277 // user defined functions
1283 public class Xcls_HeaderBar38 : Object
1285 public Gtk.HeaderBar el;
1286 private Xcls_RooProjectSettings _this;
1292 public Xcls_HeaderBar38(Xcls_RooProjectSettings _owner )
1295 this.el = new Gtk.HeaderBar();
1299 // set gobject values
1300 this.el.show_title_buttons = false;
1301 var child_1 = new Xcls_Button39( _this );
1303 this.el.pack_start ( child_1.el );
1304 var child_2 = new Xcls_Button40( _this );
1306 this.el.pack_end ( child_2.el );
1309 // user defined functions
1311 public class Xcls_Button39 : Object
1313 public Gtk.Button el;
1314 private Xcls_RooProjectSettings _this;
1320 public Xcls_Button39(Xcls_RooProjectSettings _owner )
1323 this.el = new Gtk.Button();
1327 // set gobject values
1328 this.el.label = "Cancel";
1331 this.el.clicked.connect( () => {
1338 // user defined functions
1341 public class Xcls_Button40 : Object
1343 public Gtk.Button el;
1344 private Xcls_RooProjectSettings _this;
1350 public Xcls_Button40(Xcls_RooProjectSettings _owner )
1353 this.el = new Gtk.Button();
1357 // set gobject values
1358 this.el.css_classes = { "suggested-action" };
1359 this.el.label = "Save";
1362 this.el.clicked.connect( ( ) => {
1365 _this.buttonPressed("save");
1371 // hopefull this will work with bjs files..
1378 // user defined functions